You can specify arguments to the forked maven instance on the command line:
mvn release:prepare -Darguments="-DskipTests"
mvn release:perform -Darguments="-DskipTests"
or specify a maven-release-plugin configuration in your pom, perhaps under pluginManagement:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<arguments>-DskipTests</arguments>
</configuration>
</plugin>
本文介绍如何通过命令行参数或在pom文件中配置maven-release-plugin来跳过测试,实现Maven项目的自动化发布流程。
1636

被折叠的 条评论
为什么被折叠?



