deployment - maven release:prepare with artifactory deploy substep fails -
after researching days , close suicidal tendencies here problem , really hope stupid find problem myself ....
setup: windows7 / maven 3.2.3 / jdk 1.7.0_60 (64bit) / artifactory 3.5.0 problem: - mvn clean install deploy --> works - mvn release:prepare --> works - mvn release:perform fails in substep deploy (which works standalone mentioned before) - pom.xml , settings.xml (for testing took pregenerated 1 artifactory) me. attached them further down.... thnx in advance help!
cheers j.
log:
..... [info] [info] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ apps.hr --- [info] uploading: http://vm-local-repo.fernbach-lu.dom:8081/artifactory/libs-release-local/com/fernbach/apps.hr/0.1.4/apps.hr-0.1.4.war [info] 2/75918 kb [info] 4/75918 kb [info] 6/75918 kb [info] 8/75918 kb .... [info] 60/75918 kb [info] apr 01, 2015 4:56:30 pm org.apache.maven.wagon.providers.http.httpclient.impl.execchain.retryexec execute [info] 62/75918 kb [info] info: i/o exception (java.net.socketexception) caught when processing request: connection reset peer: socket write error [info] 64/75918 kb [info] apr 01, 2015 4:56:30 pm org.apache.maven.wagon.providers.http.httpclient.impl.execchain.retryexec execute [info] info: retrying request [info] 66/75918 kb [info] apr 01, 2015 4:56:30 pm org.apache.maven.wagon.providers.http.httpclient.impl.execchain.retryexec execute [info] 68/75918 kb ..... ..... [info] 390/75918 kb [info] 392/75918 kb [info] [info] uploading: http://vm-local-repo.fernbach-lu.dom:8081/artifactory/libs-release-local/com/fernbach/apps.hr/0.1.4/apps.hr-0.1.4.pom [info] 2/2 kb [info] [info] [info] ------------------------------------------------------------------------ [info] [info] build failure [info] [info] ------------------------------------------------------------------------ [info] [info] total time: 23.043 s [info] [info] finished at: 2015-04-01t16:56:30+02:00 [info] [info] final memory: 47m/366m [info] [info] ------------------------------------------------------------------------ [info] [error] failed execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project apps.hr: failed deploy artifacts: not transfer artifact com.fernbach:apps.hr:war:0.1.4 from/to fs-releases (http://vm-local-repo.fernbach-lu.dom:8081 /artifactory/libs-release-local): connection reset peer: socket write error -> [help 1] ...
settings.xml
?xml version="1.0" encoding="utf-8"?> <settings xsi:schemalocation="http://maven.apache.org/settings/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/settings/1.1.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <localrepository>d:/fr4/maven/repo</localrepository> <servers> <server> <username>jus</username> <password>ap6xtryupnmvbxfnzp9bopsdp66</password> <id>central</id> </server> <server> <username>jus</username> <password>ap6xtryupnmvbxfnzp9bopsdp66</password> <id>snapshots</id> </server> </servers> <profiles> <profile> <repositories> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>libs-release</name> <url>http://vm-local-repo:8081/artifactory/libs-release</url> </repository> <repository> <snapshots /> <id>snapshots</id> <name>libs-snapshot</name> <url>http://vm-local-repo:8081/artifactory/libs-snapshot</url> </repository> </repositories> <pluginrepositories> <pluginrepository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>plugins-release</name> <url>http://vm-local-repo:8081/artifactory/plugins-release</url> </pluginrepository> <pluginrepository> <snapshots /> <id>snapshots</id> <name>plugins-snapshot</name> <url>http://vm-local-repo:8081/artifactory/plugins-snapshot</url> </pluginrepository> </pluginrepositories> <id>artifactory</id> </profile> </profiles> <activeprofiles> <activeprofile>artifactory</activeprofile> </activeprofiles> </settings>
pom.xml
http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0
<parent> <groupid>com.fernbach</groupid> <artifactid>fernbach.parent</artifactid> <version>1.0.0</version> </parent> <artifactid>apps.hr</artifactid> <version>0.1.5-snapshot</version> <packaging>war</packaging> <name>hr</name> <properties> <foundation.version>1.0.0</foundation.version> </properties> <dependencies> <dependency> <groupid>com.fernbach</groupid> <artifactid>foundation.core</artifactid> <version>${foundation.version}</version> </dependency> <dependency> <groupid>com.fernbach</groupid> <artifactid>foundation.web</artifactid> <version>${foundation.version}</version> </dependency> </dependencies> <scm> <developerconnection>scm:svn:http://vm-uranus1.fernbach-lu.dom/svn/fernbach-r4/apps/hr/branches/branch_0.1.1</developerconnection> <url>scm:svn:http://vm-uranus1.fernbach-lu.dom/svn/fernbach-r4/apps/hr/branches/branch_0.1.1</url> </scm> </project>
i found solution in comment of maven bug had been reported version 3.2.3.
here's bug: https://issues.apache.org/jira/browse/mng-5684
the problem maven-source-plugin used attach source jars project. more it's no-fork goals cause behavior. using these goals deploy plugin tries upload source jars twice fails due repository restrictions.
the solution can either omitting source-plugin (but won't have attached sources anymore) or using forked goals (jar , test-jar) instead.
i use forked goals maven 3.3.3 , i'm able release projects again.
Comments
Post a Comment