【发布时间】:2011-04-14 17:34:46
【问题描述】:
我需要在发布期间激活个人资料:准备。
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
<configuration>
<arguments>-Prelease</arguments>
<preparationGoals>clean validate</preparationGoals>
<goals>test-compile</goals>
</configuration>
</plugin>
</plugin>
</build>
但是当我跑步时:
mvn release:prepare -DdryRun=true help:active-profiles
它永远不会在活动列表中显示配置文件发布。当我这样做时,它不会显示在活动个人资料列表中:
mvn release:perform help:active-profiles
我不能使用<releaseProfiles>,因为我希望这个配置文件同时用于准备和执行
谢谢!
【问题讨论】:
-
第一个问题:为什么需要在 release:prepare 阶段激活配置文件?
标签: maven maven-plugin maven-3 maven-release-plugin