maven-scm-plugin: Add a tag into Mercurial. 在Mercurial中添加一个tag
1. Add scm in pom.xml
<scm>
<connection>scm:hg:https://xxx/xxx/dev</connection>
<developerConnection>scm:hg:https://xxx/xxx/dev</developerConnection>
</scm>
2. Add new profile for the tag
<profile>
<id>tag</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.9.5</version>
</plugin>
</plugins>
</build>
</profile>
3. Run the command
mvn scm:tag -Dusername=USERNAME -Dpassword=PASSWORD -Dtag=TagName -Ptag

浙公网安备 33010602011771号