How to force the version of the Maven SCM Perforce provider?

I am trying to reproduce an existing maven environment on another computer, and when I try to use the release plugin, it gives me "the password is required for the scmfor scm plugin"

Honestly, I have not made any changes to pom.xml.

I found this error report: http://jira.codehaus.org/browse/SCM-415

Interestingly, I am using maven-scm-provider-perforce 1.1, so this may be exactly my problem.

So this leads to my current problem. I can not get my project to use the latest version of the service provider.

I tried adding 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> 

But he still uses 1.1

I also tried to get it to use version 1.3 of the maven-scm plugin, but it still uses 1.1 perforce providers.

How do I update my repo so that it pulls version 1.3 of the perforce provider?

Note. At the highest level, I invoke this command:

 mvn --batch-mode -Dgoals=install release:prepare 
0
source share
1 answer

Ok, it seems I found a problem.

I used the old version of the release plugin (which works on another computer?), So I needed to add this to pluginManagement:

  <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.0</version> </plugin> 

It pulled out a 2.0 release plugin that updated everything else and pulled out 1.3 of all scm providers

+1
source

Source: https://habr.com/ru/post/1342393/


All Articles