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

 

posted @ 2018-07-06 15:45  lily_z  阅读(404)  评论(0编辑  收藏  举报