I was using the “default” maven release plugin to do a release build (which tags my Perforce SCM as part of its process), and I got the following error:
‘login’ not necessary, no password set for this user
Then, if I supplied my username and password I got:
You don’t have permission for this operation
But my Perforce user doesn’t have a password, so I tried leaving it blank, which gave me:
password is required for the perforce scm plugin.
I “fixed” it by explicitly referencing version 2.0 of the release plugin in my pom:
<build>
<plugins>
…
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
</plugin>
…
</plugins>
</build>