在WEB-INT裏面加入了lib文件夾,把個人jar包放在文件夾裏。而且在pom.xml裏面加入瞭如下語句:java
1web 2apache 3app 4webapp 5maven 6spa 7插件 8code |
<!-- 阿里大於JAR--> xml < dependency > < groupId >my-jar</ groupId > <!-- 本身隨便取--> < artifactId >my-jar</ artifactId > <!-- 本身隨便取--> < version >1.0</ version > <!-- 本身隨便取--> < scope >system</ scope > < systemPath >${project.basedir}/src/main/webapp/WEB-INF/lib/taobao-sdk-java-auto_1455552377940-20160607.jar</ systemPath > </ dependency > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<!-- 本地倉添加 插件 --> < plugin > < groupId >org.apache.maven.plugins</ groupId > < artifactId >maven-shade-plugin</ artifactId > < executions > < execution > < id >make-assembly</ id > < phase >package</ phase > < goals > < goal >shade</ goal > </ goals > < configuration > < descriptorRefs > < descriptorRef >jar-with-dependencies</ descriptorRef > </ descriptorRefs > < finalName >xxx-jar-with-dependencies</ finalName > </ configuration > </ execution > </ executions > </ plugin > |