<!-- 本地解析nc代码jar包 --> <dependency> <groupId>com.company</groupId> <artifactId>artifact</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/thirdlibs/xxx.jar</systemPath> </dependency>
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.10</version> <executions> <execution> <id>copy-dependencies</id> <phase>compile</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</outputDirectory> <includeScope>system</includeScope> </configuration> </execution> </executions> </plugin>