Maven release plugin does not work when creating a tag

I am trying to use the Maven 2.0 release plugin to tag the version and hopefully deploy the resulting jar file to the repository.

I am stuck with release:preparegetting this cryptic error:

[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file C:\Users\ME~1\AppData\Local\Temp\maven-scm-950614965.commit --targets C:\Users\ME~1\AppData\Local\Temp\maven-scm-35306-targets"
[INFO] Working directory: c:\workspace\release-test-trunk
[INFO] Tagging release with the label release-test-1.3.0...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive copy --file C:\Users\ME~1\AppData\Local\Temp\maven-scm-829250416.commit --revision 1885 http://myserver/myproject/sandbox/release-test/trunk http://myserver/myproject/sandbox/release-test/tags/release-test-1.3.0"
[INFO] Working directory: c:\workspace\release-test-trunk
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: OPTIONS of 'http://myserver/myproject/sandbox/release-test': 200 OK (http://myserver)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20 seconds
[INFO] Finished at: Tue Aug 24 19:31:55 GMT 2010
[INFO] Final Memory: 14M/56M
[INFO] ------------------------------------------------------------------------
  • The tag folder exists and is empty.
  • I ran a command mvn clean release:clean release:prepareto make sure you have a new launch
  • Every time I received an error message, I did it mvn release:rollbackso that everything returned to normal.
  • This does not seem to be a credential issue, the pom file is effectively committed to -SNAPSHOTand the information -SNAPSHOTswitches to the tag folder.

, , pom, pom, settings.xml, maven

, , folder already exist . , .

- ?

.

: @Colin svn://myserver/myproject/sandbox/release-test, , , tortoise svn, . , http://myserver/myproject/sandbox/release-test Firefox, . , , pom . scm pom:

<scm>
    <connection>scm:svn:http://myserver/myproject/sandbox/release-test/tags/release-test-1.3.0</connection>
    <developerConnection>scm:svn:http://myserver/myproject/sandbox/release-test/tags/release-test-1.3.0</developerConnection>
    <url>http://myserver/myproject/sandbox/release-test/tags/release-test-1.3.0</url>
</scm>

"http:", .

+4
1

, . svn. Maven , svn :

svn: http://myserver/myproject/sandbox/release-test ': 200 OK (http://myserver)

http://myserver/myproject/sandbox/release-test?

http://myserver/myproject/sandbox/release-test , svn . http:// svn://

<scm>
    <connection>scm:svn:svn://myserver/myproject/sandbox/release-test/tags/release-test-1.3.0</connection>
    <developerConnection>scm:svn:svn://myserver/myproject/sandbox/release-test/tags/release-test-1.3.0</developerConnection>
    <url>svn://myserver/myproject/sandbox/release-test/tags/release-test-1.3.0</url>
</scm>

:
svnforum.org
SVN (200 OK) -
Subversion tortoise svn

+4

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


All Articles