kku*_*udi 6 maven-3 maven maven-release-plugin
我正在使用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"
Run Code Online (Sandbox Code Playgroud)
使用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"
Run Code Online (Sandbox Code Playgroud)
有什么想法吗?此外,似乎在使用Maven 2时,在标记开始之前正在下载几个工件.Maven 3不是这种情况.
没有你的 pom.xml,很难知道问题出在哪里。
最明显的错误配置可能是 ins scm,正如 Wemu 所说;:
<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>
Run Code Online (Sandbox Code Playgroud)
这是版本以及我如何使用这个插件:
<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>
Run Code Online (Sandbox Code Playgroud)
当您使用 Maven 发布插件时,这将修改您的 scm 配置以指向标签。如果这真的是 Maven 3 的问题,我从来没有注意到它。
您能否将 pom.xml (和 settings.xml)发布以供进一步分析?
| 归档时间: |
|
| 查看次数: |
1435 次 |
| 最近记录: |