如何强制Maven SCM Perforce提供程序版本? [英] How to force Maven SCM Perforce provider version?
问题描述
我正在尝试在另一台计算机上重现现有的Maven环境,当我尝试使用发布插件时,它给我一个"perforce scm插件需要密码"
I am trying to reproduce an existing maven environment on another computer and when I try to use the release plugin it gives me an "password is required for the perforce scm plugin"
奇怪的是,我没有对pom.xml进行任何更改.
The odd thing is I didn't make any changes to the pom.xml.
我发现了此错误报告: http://jira.codehaus.org/browse/SCM-415
I found this bug report: http://jira.codehaus.org/browse/SCM-415
有趣的是,我正在使用maven-scm-provider-perforce 1.1,所以这可能正是我的问题.
Interestingly I am using maven-scm-provider-perforce 1.1, so it could be exactly my problem.
所以这导致了我当前的问题.我似乎无法强迫我的项目使用最新的perforce提供程序版本.
So this this leads to my current problem. I can't seem to force my project to use the latest perforce provider version.
我尝试将其添加到< build>
I've tried add this under <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-perforce</artifactId>
<version>1.3</version>
</plugin>
</plugins>
</pluginManagement>
但它似乎仍在使用1.1
But it seems to be still using 1.1
我也曾试图强迫它使用1.3版的maven-scm-plugin,但仍使用1.1版的perforce提供程序.
I've also tried to force it to use version 1.3 of the maven-scm-plugin, but that still uses 1.1 of perforce provider.
如何更新我的存储库,以使它删除perforce提供程序的1.3版?
How do I update my repo so it pulls version 1.3 of the perforce provider?
注意:在最高级别,我正在调用此命令:
Note: At the highest level I am calling this command:
mvn --batch-mode -Dgoals=install release:prepare
推荐答案
确定我发现了问题.
我使用的是旧版本的发布插件(可以在另一台计算机上使用吗?),所以我要做的就是将其添加到pluginManagement中:
I was using an old version of the release plugin (which works on the other computer?), so all I needed to do was add this to pluginManagement:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
</plugin>
此操作释放了2.0版本的发布插件,并更新了所有其他内容,并获取了1.3个所有scm提供程序
This pulled 2.0 of the release plugin which updated everything else and pulled 1.3 of all the scm providers
这篇关于如何强制Maven SCM Perforce提供程序版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!