`

maven中,从依赖库中导出项目依赖包插件配置

阅读更多

maven中,从依赖库中导出项目依赖包插件配置参数

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <executions>
          <execution>
            <id>copy-dependencies</id>
            <phase>package</phase>
            <goals>
                  <goal>copy-dependencies</goal>
            </goals>
            <configuration>
                  <outputDirectory>${project.build.directory}/alternateLocation</outputDirectory>
                  <overWriteReleases>false</overWriteReleases>
                  <overWriteSnapshots>false</overWriteSnapshots>
                  <overWriteIfNewer>true</overWriteIfNewer>
            </configuration>
          </execution>
    </executions>
</plugin>
 


使用命令: mvn dependency:copy-dependencies

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics