簡體   English   中英

maven-release-plugin和maven 3.0.3

[英]maven-release-plugin and maven 3.0.3

我正在使用maven發布插件來執行以下maven-3.0.3

mvn發布:准備

一切似乎都很順利,除了它在SVN中創建標簽時,它會使用正確的標簽從tags文件夾復制以前的版本。 有什么想法嗎?

如果我切換回maven-2.2.1,標記是正確的,標記的內容是預期的。

使用Maven 2.2.1:

[INFO] Tagging release with the label crcib-6.8.5...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive copy --file c:\DOCUME~1\markand\LOCALS~1\Temp\maven-scm-1593649573.commit . <url>/svn/repos/crcib/tags/crcib-6.8.5"

使用Maven 3.0.3:

[INFO] Tagging release with the label crcib-6.8.5...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive copy --file c:\DOCUME~1\markand\LOCALS~1\Temp\maven-scm-2047728233.commit --revision 6331 <url>/svn/repos/crcib/tags/crcib-6.8.2 <url>/svn/repos/crcib/tags/crcib-6.8.5"

有什么想法嗎? 此外,似乎在使用Maven 2時,在標記開始之前正在下載幾個工件。 Maven 3不是這種情況。

沒有你的pom.xml,很難知道是什么問題。

Wemu說,最明顯的錯誤配置可能就是scm。

<scm>
    <!-- Base URL of repository (trunk/tags/branches independant)-->
    <url>scm:svn:http://svn.my.company.com/repository</url>

    <!-- Current working url (NOT TAG ONE) -->
    <connection>scm:svn:http://svn.my.company.com/repository/trunk/my-project</connection>
    <!-- Current working url -->
    <developerConnection>scm:svn:http://svn.my.company.com/repository/trunk/my-project</developerConnection>
</scm>

這是我使用此插件的版本和方式:

 <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-release-plugin</artifactId>
      <version>2.2.2</version>
      <configuration>
            <tagBase>svn.my.company.com/repository/tags</tagBase>
      </configuration>
</plugin>

當您使用maven發布插件時,這將修改您的scm配置以指向標簽。 如果它真的是一個maven 3問題,我從來沒有注意到它。

請你發貼pom.xml(和settings.xml)進行進一步分析嗎?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM