我正在使用Maven 3.0.3和Git。当我运行我的标准
mvn clean deploy -P qa
将构建部署到我们的QA环境,我想用“qa_release”标记标记代码的部署版本。问题是,如果我之前已经标记过代码,那么第二次标记它将无法正常工作。如何删除标签然后重新应用?目前,我正在使用maven-scm-plugin进行标记,但它似乎无法删除标记......
<profile>
<id>qa</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
<version>1.0</version>
<configuration>
<tag>qa_release</tag>
<connectionType>connection</connectionType>
</configuration>
<executions>
<execution>
<id>tag</id>
<phase>deploy</phase>
<goals>
<goal>tag</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
谢谢, - 戴夫