2011-01-31 49 views
2

這裏是我的SVN結構:標記次幹道目錄

trunk/
+- docs/
+- dev/
    +- project-parent/
    +- project-war/
releases/

我想Maven的版本插件標記/trunk/dev//releases/<release-version>

這裏是我的父母pom.xml

<build> 
    <plugins> 
     <plugin> 
      <artifactId>maven-release-plugin</artifactId> 
      <version>2.1</version> 
      <configuration> 
       <tagBase>http://svn.mycompany.com/svn/project/releases</tagBase> 
       <generateReleasePoms>false</generateReleasePoms> 
       <autoVersionSubmodules>true</autoVersionSubmodules> 
      </configuration> 
     </plugin> 
    </plugins> 
</build> 

<scm> 
    <connection>scm:svn:http://svn.mycompany.com/svn/project/trunk/dev</connection> 
    <developerConnection>scm:svn:http://svn.mycompany.com/svn/project/trunk/dev</developerConnection> 
</scm> 

的問題是,當我執行mvn release:prepare-with-pom,Maven的標籤/trunk/releases/<release-version>

有人知道如何標記/trunk/dev嗎?謝謝 !

回答

2

這裏是一個解決辦法:設置remoteTaggingfalse

<plugin> 
     <artifactId>maven-release-plugin</artifactId> 
     <version>2.1</version> 
     <configuration> 
      <tagBase>http://svn.mycompany.com/svn/project/releases</tagBase> 
      <generateReleasePoms>false</generateReleasePoms> 
      <autoVersionSubmodules>true</autoVersionSubmodules> 
      <remoteTagging>false</remoteTagging> 
     </configuration> 
    </plugin>