【发布时间】:2015-09-07 10:45:40
【问题描述】:
我想在运行命令“mvn deploy”时跳过插件执行。在下面的例子中说,我不想在'mvn deploy'中执行'properties-maven-plugin'
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${session.executionRootDirectory}/xxxx.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<tagNameFormat>@{artifactId}/@{artifactId}-@{version}</tagNameFormat>
</configuration>
</plugin>
<plugins>
【问题讨论】: