|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Unable to deploy 'release' artifact, snapshot worksHi,
I am unable to deploy a release WAR on nexus, while the snapshot version works just fine. The war file is around 30 MB, if that matters by any chance. Any hints would be appreciated. Thanks, Robert settings.xml snippet: <server> <id>central</id> <username>robert</username> <password>...</password> </server> <server> <id>nexus</id> <username>robert</username> <password>...</password> </server> pom.xml snippet: <distributionManagement> <repository> <id>central</id> <name>Nexus repository</name> <url>http://dev.vpn/nexus/content/repositories/releases</url> </repository> <snapshotRepository> <id>central</id> <name>Nexus snapshot repository</name> <url>http://dev.vpn/nexus/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> mvn command line output: [INFO] Error deploying artifact: Error transferring file Error writing to server mvn -v output: Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300) Java version: 1.6.0_0 Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.27.29-0.1-pae" arch: "i386" Family: "unix" Apache access log for release artifact 10.25.0.10 - - [21/Sep/2009:23:38:32 +0300] "PUT /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci-web-1.2.11.war HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:39:02 +0300] "PUT /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci-web-1.2.11.war HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" Apache access log for snapshot artifact 10.25.0.10 - - [21/Sep/2009:23:26:55 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war HTTP/1.1" 401 379 "-" " Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:27:25 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war HTTP/1.1" 401 379 "-" " Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:27:56 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war HTTP/1.1" 401 379 "-" " Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 ( Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:28:24 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war HTTP/1.1" 201 - "-" "Ap ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.md5 HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.sha1 HTTP/1.1" 201 - "- " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "GET /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Ja va 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml.md5 HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1" 201 - "-" "Apache-Maven/2. 2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml HTTP/1.1" 404 275 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linu x 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml.md5 HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml.sha1 HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom HTTP/1.1" 201 - "-" "Ap ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT /nexus/content/repositories/snapshots/rcom/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.md5 HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.sha1 HTTP/1.1" 201 - "- " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" nexus.log : 2009-09-21 23:35:44 INFO [TP-Processor7 ] - o.s.n.s.f.a.NexusSe~ - Successfully authenticated user [robert] from address/host [10.25.0.10/10.25.0.10] 2009-09-21 23:47:29 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ - Successfully authenticated user [robert] from address/host [10.25.0.10/10.25.0.10] 2009-09-21 23:48:46 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ - Successfully authenticated user [robert] from address/host [10.25.0.10/10.25.0.10] 2009-09-21 23:48:49 INFO [TP-Processor1 ] - o.s.n.s.f.a.NexusSe~ - Successfully authenticated user [robert] from address/host [10.25.0.10/10.25.0.10] |
|
|
Re: Unable to deploy 'release' artifact, snapshot worksHi Robert,
Can you try running maven with "-X"? Maybe there will be more information. Also I'm not sure if OpenJDK will work with Maven or Nexus. Can you try this again with the Sun JDK to see if the situation changes? Rich On Sep 21, 2009, at 2:07 PM, Robert Munteanu wrote: > > Hi, > > I am unable to deploy a release WAR on nexus, while the snapshot > version > works just fine. The war file is around 30 MB, if that matters by any > chance. > > Any hints would be appreciated. > > Thanks, > > Robert > > settings.xml snippet: > > <server> > <id>central</id> > <username>robert</username> > <password>...</password> > </server> > <server> > <id>nexus</id> > <username>robert</username> > <password>...</password> > </server> > > pom.xml snippet: > > <distributionManagement> > <repository> > <id>central</id> > <name>Nexus repository</name> > > <url>http://dev.vpn/nexus/content/repositories/releases</url> > </repository> > <snapshotRepository> > <id>central</id> > <name>Nexus snapshot repository</name> > > <url>http://dev.vpn/nexus/content/repositories/snapshots</url> > </snapshotRepository> > </distributionManagement> > > mvn command line output: > > [INFO] Error deploying artifact: Error transferring file > > Error writing to server > > mvn -v output: > > Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300) > Java version: 1.6.0_0 > Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux" version: "2.6.27.29-0.1-pae" arch: "i386" Family: > "unix" > > Apache access log for release artifact > > 10.25.0.10 - - [21/Sep/2009:23:38:32 +0300] "PUT > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci- > web-1.2.11.war > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:39:02 +0300] "PUT > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci- > web-1.2.11.war > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > Apache access log for snapshot artifact > > 10.25.0.10 - - [21/Sep/2009:23:26:55 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:27:25 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:27:56 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:24 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war > HTTP/1.1" 201 - "-" "Ap > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven- > artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.md5 > HTTP/1.1" 201 - "-" > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.sha1 > HTTP/1.1" 201 - "- > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Ja > va 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml.md5 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 > (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml.sha1 > HTTP/1.1" 201 - "-" "Apache-Maven/2. > 2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml > HTTP/1.1" 404 275 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linu > x 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml.md5 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml.sha1 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom > HTTP/1.1" 201 - "-" "Ap > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven- > artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/rcom/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.md5 > HTTP/1.1" 201 - "-" > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.sha1 > HTTP/1.1" 201 - "- > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > > nexus.log : > 2009-09-21 23:35:44 INFO [TP-Processor7 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:47:29 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:48:46 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:48:49 INFO [TP-Processor1 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > > -- > View this message in context: http://www.nabble.com/Unable-to-deploy-%27release%27-artifact%2C-snapshot-works-tp25530481p25530481.html > Sent from the Nexus Maven Repository Manager Users List mailing list > archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@... > For additional commands, e-mail: nexus-user-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Unable to deploy 'release' artifact, snapshot worksHi Rich, thanks for your answer.
I've tried with java version "1.6.0_15" Java(TM) SE Runtime Environment (build 1.6.0_15-b03) Java HotSpot(TM) Server VM (build 14.1-b02, mixed mode) and the result is the same. The log is quite verbose, please find below some some snippets I find relevant. Thanks, Robert (Right before uploading) [INFO] [deploy:deploy {execution: default-deploy}] [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] not adding permissions to wagon connection (Right after uploading) java.io.IOException: Error writing to server at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:468) at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:480) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1070) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:185) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Error transferring file Error writing to server [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Error transferring file at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Error transferring file at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Error transferring file at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173) ... 19 more Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:213) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) ... 20 more Caused by: java.io.IOException: Error writing to server at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:468) at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:480) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1070) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:185) ... 27 more On Sep 21, 2009, at 2:07 PM, Robert Munteanu wrote: > > Hi, > > I am unable to deploy a release WAR on nexus, while the snapshot > version > works just fine. The war file is around 30 MB, if that matters by any > chance. > > Any hints would be appreciated. > > Thanks, > > Robert > > settings.xml snippet: > > <server> > <id>central</id> > <username>robert</username> > <password>...</password> > </server> > <server> > <id>nexus</id> > <username>robert</username> > <password>...</password> > </server> > > pom.xml snippet: > > <distributionManagement> > <repository> > <id>central</id> > <name>Nexus repository</name> > > <url>http://dev.vpn/nexus/content/repositories/releases</url> > </repository> > <snapshotRepository> > <id>central</id> > <name>Nexus snapshot repository</name> > > <url>http://dev.vpn/nexus/content/repositories/snapshots</url> > </snapshotRepository> > </distributionManagement> > > mvn command line output: > > [INFO] Error deploying artifact: Error transferring file > > Error writing to server > > mvn -v output: > > Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300) > Java version: 1.6.0_0 > Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux" version: "2.6.27.29-0.1-pae" arch: "i386" Family: > "unix" > > Apache access log for release artifact > > 10.25.0.10 - - [21/Sep/2009:23:38:32 +0300] "PUT > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci- > web-1.2.11.war > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:39:02 +0300] "PUT > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci- > web-1.2.11.war > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > Apache access log for snapshot artifact > > 10.25.0.10 - - [21/Sep/2009:23:26:55 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:27:25 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:27:56 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:24 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war > HTTP/1.1" 201 - "-" "Ap > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven- > artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.md5 > HTTP/1.1" 201 - "-" > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.sha1 > HTTP/1.1" 201 - "- > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Ja > va 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml.md5 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 > (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/maven-metadata.xml.sha1 > HTTP/1.1" 201 - "-" "Apache-Maven/2. > 2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml > HTTP/1.1" 404 275 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linu > x 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml.md5 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > metadata.xml.sha1 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom > HTTP/1.1" 201 - "-" "Ap > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven- > artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/rcom/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.md5 > HTTP/1.1" 201 - "-" > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.sha1 > HTTP/1.1" 201 - "- > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > > nexus.log : > 2009-09-21 23:35:44 INFO [TP-Processor7 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:47:29 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:48:46 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:48:49 INFO [TP-Processor1 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > > -- > View this message in context: http://www.nabble.com/Unable-to-deploy-%27release%27-artifact%2C-snapshot-works-tp25530481p25530481.html > Sent from the Nexus Maven Repository Manager Users List mailing list > archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@sonatype.org > For additional commands, e-mail: nexus-user-help@sonatype.org > --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@sonatype.org For additional commands, e-mail: nexus-user-help@sonatype.org |
|
|
Re: Unable to deploy 'release' artifact, snapshot worksWhat version of Nexus are you running? Is this the war file version or the embedded? If the former, what container are you running in? Also, could you double check that "Allow Deployment' is set to true in your releases repository, and that the "Repository Policy" is set to "Release"? Rich On Thu, Sep 24, 2009 at 1:04 PM, Robert Munteanu <robert.munteanu@...> wrote:
-- Sonatype (the Maven Company) http://sonatype.com/solutions/support |
|
|
Re: Unable to deploy 'release' artifact, snapshot worksI'm running 1.3.6 OSS, war file deployed in Apache Tomcat 6.0.18 proxied with Apache - behind mod_proxy_ajp. I've checked and allow deployment is true and policy is release. Thanks, Robert On Thu, Sep 24, 2009 at 1:04 PM, Robert Munteanu <robert.munteanu@gmail.com>wrote: > > Hi Rich, thanks for your answer. > > > Rich Seddon wrote: > > Also I'm not sure if OpenJDK will work with Maven or Nexus. Can you > > try this again with the Sun JDK to see if the situation changes? > > I've tried with > > java version "1.6.0_15" > Java(TM) SE Runtime Environment (build 1.6.0_15-b03) > Java HotSpot(TM) Server VM (build 14.1-b02, mixed mode) > > and the result is the same. > > > Rich Seddon wrote: > > > > Can you try running maven with "-X"? Maybe there will be more > > information. > > > > The log is quite verbose, please find below some some snippets I find > relevant. > > Thanks, > > Robert > > (Right before uploading) > > [INFO] [deploy:deploy {execution: default-deploy}] > [DEBUG] Using Wagon implementation lightweight from default mapping for > protocol http > [DEBUG] Checking for pre-existing User-Agent configuration. > [DEBUG] Adding User-Agent configuration. > [DEBUG] not adding permissions to wagon connection > > (Right after uploading) > > java.io.IOException: Error writing to server > at > > sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:468) > at > > sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:480) > at > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1070) > at > java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373) > at > > org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:185) > at > org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) > at > org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) > at > org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) > at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) > at > > org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) > at > > org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) > at > > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) > at > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173) > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > [DEBUG] Using Wagon implementation lightweight from default mapping for > protocol http > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error deploying artifact: Error transferring file > > Error writing to server > [INFO] > ------------------------------------------------------------------------ > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying > artifact: Error transferring file > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying > artifact: Error transferring file > at > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195) > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > ... 17 more > Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: > Error deploying artifact: Error transferring file > at > > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121) > at > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173) > ... 19 more > Caused by: org.apache.maven.wagon.TransferFailedException: Error > transferring file > at > > org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:213) > at > org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) > at > org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) > at > org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) > at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) > at > > org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) > at > > org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) > at > > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) > ... 20 more > Caused by: java.io.IOException: Error writing to server > at > > sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:468) > at > > sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:480) > at > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1070) > at > java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373) > at > > org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:185) > ... 27 more > > > On Sep 21, 2009, at 2:07 PM, Robert Munteanu wrote: > > > > > Hi, > > > > I am unable to deploy a release WAR on nexus, while the snapshot > > version > > works just fine. The war file is around 30 MB, if that matters by any > > chance. > > > > Any hints would be appreciated. > > > > Thanks, > > > > Robert > > > > settings.xml snippet: > > > > <server> > > <id>central</id> > > <username>robert</username> > > <password>...</password> > > </server> > > <server> > > <id>nexus</id> > > <username>robert</username> > > <password>...</password> > > </server> > > > > pom.xml snippet: > > > > <distributionManagement> > > <repository> > > <id>central</id> > > <name>Nexus repository</name> > > > > <url>http://dev.vpn/nexus/content/repositories/releases</url> > > </repository> > > <snapshotRepository> > > <id>central</id> > > <name>Nexus snapshot repository</name> > > > > <url>http://dev.vpn/nexus/content/repositories/snapshots</url> > > </snapshotRepository> > > </distributionManagement> > > > > mvn command line output: > > > > [INFO] Error deploying artifact: Error transferring file > > > > Error writing to server > > > > mvn -v output: > > > > Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300) > > Java version: 1.6.0_0 > > Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre > > Default locale: en_US, platform encoding: UTF-8 > > OS name: "linux" version: "2.6.27.29-0.1-pae" arch: "i386" Family: > > "unix" > > > > Apache access log for release artifact > > > > 10.25.0.10 - - [21/Sep/2009:23:38:32 +0300] "PUT > > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci- > > web-1.2.11.war > > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:39:02 +0300] "PUT > > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci- > > web-1.2.11.war > > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > > > Apache access log for snapshot artifact > > > > 10.25.0.10 - - [21/Sep/2009:23:26:55 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > > HTTP/1.1" 401 379 "-" " > > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > > maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:27:25 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > > HTTP/1.1" 401 379 "-" " > > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > > maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:27:56 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > > HTTP/1.1" 401 379 "-" " > > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > > maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/maven-metadata.xml > > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 ( > > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/maven-metadata.xml > > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:28:24 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war > > HTTP/1.1" 201 - "-" "Ap > > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven- > > artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.md5 > > HTTP/1.1" 201 - "-" > > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > > maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.sha1 > > HTTP/1.1" 201 - "- > > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > > maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "GET > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/maven-metadata.xml > > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/maven-metadata.xml > > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Ja > > va 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/maven-metadata.xml.md5 > > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 > > (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/maven-metadata.xml.sha1 > > HTTP/1.1" 201 - "-" "Apache-Maven/2. > > 2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > > metadata.xml > > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > > metadata.xml > > HTTP/1.1" 404 275 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > > metadata.xml > > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linu > > x 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > > metadata.xml.md5 > > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/maven- > > metadata.xml.sha1 > > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom > > HTTP/1.1" 201 - "-" "Ap > > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven- > > artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > > /nexus/content/repositories/snapshots/rcom/example/jci-web/1.2.11- > > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.md5 > > HTTP/1.1" 201 - "-" > > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > > maven-artifact/2.2.1" > > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11- > > SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.sha1 > > HTTP/1.1" 201 - "- > > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > > maven-artifact/2.2.1" > > > > nexus.log : > > 2009-09-21 23:35:44 INFO [TP-Processor7 ] - o.s.n.s.f.a.NexusSe~ > > - Successfully authenticated user [robert] from address/host > > [10.25.0.10/10.25.0.10] > > 2009-09-21 23:47:29 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > > - Successfully authenticated user [robert] from address/host > > [10.25.0.10/10.25.0.10] > > 2009-09-21 23:48:46 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > > - Successfully authenticated user [robert] from address/host > > [10.25.0.10/10.25.0.10] > > 2009-09-21 23:48:49 INFO [TP-Processor1 ] - o.s.n.s.f.a.NexusSe~ > > - Successfully authenticated user [robert] from address/host > > [10.25.0.10/10.25.0.10] > > > > -- > > View this message in context: > > > http://www.nabble.com/Unable-to-deploy-%27release%27-artifact%2C-snapshot-works-tp25530481p25530481.html > > Sent from the Nexus Maven Repository Manager Users List mailing list > > archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: nexus-user-unsubscribe@sonatype.org > > For additional commands, e-mail: nexus-user-help@sonatype.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@sonatype.org > For additional commands, e-mail: nexus-user-help@sonatype.org > > > > > -- > View this message in context: > http://www.nabble.com/Unable-to-deploy-%27release%27-artifact%2C-snapshot-works-tp25530481p25583123.html > Sent from the Nexus Maven Repository Manager Users List mailing list > archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@sonatype.org > For additional commands, e-mail: nexus-user-help@sonatype.org > > -- Sonatype (the Maven Company) http://sonatype.com/solutions/support |
|
|
Re: Unable to deploy 'release' artifact, snapshot worksYou're getting 401, are you sure you have configured the server and
distributionManagement sections correctly? Can you send them along so I can see? On Mon, Sep 21, 2009 at 2:07 PM, Robert Munteanu <robert.munteanu@...> wrote: > > Hi, > > I am unable to deploy a release WAR on nexus, while the snapshot version > works just fine. The war file is around 30 MB, if that matters by any > chance. > > Any hints would be appreciated. > > Thanks, > > Robert > > settings.xml snippet: > > <server> > <id>central</id> > <username>robert</username> > <password>...</password> > </server> > <server> > <id>nexus</id> > <username>robert</username> > <password>...</password> > </server> > > pom.xml snippet: > > <distributionManagement> > <repository> > <id>central</id> > <name>Nexus repository</name> > > <url>http://dev.vpn/nexus/content/repositories/releases</url> > </repository> > <snapshotRepository> > <id>central</id> > <name>Nexus snapshot repository</name> > > <url>http://dev.vpn/nexus/content/repositories/snapshots</url> > </snapshotRepository> > </distributionManagement> > > mvn command line output: > > [INFO] Error deploying artifact: Error transferring file > > Error writing to server > > mvn -v output: > > Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300) > Java version: 1.6.0_0 > Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux" version: "2.6.27.29-0.1-pae" arch: "i386" Family: "unix" > > Apache access log for release artifact > > 10.25.0.10 - - [21/Sep/2009:23:38:32 +0300] "PUT > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci-web-1.2.11.war > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:39:02 +0300] "PUT > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci-web-1.2.11.war > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > Apache access log for snapshot artifact > > 10.25.0.10 - - [21/Sep/2009:23:26:55 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:27:25 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:27:56 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:24 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war > HTTP/1.1" 201 - "-" "Ap > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.md5 > HTTP/1.1" 201 - "-" > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.sha1 > HTTP/1.1" 201 - "- > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Ja > va 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml.md5 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 > (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml.sha1 > HTTP/1.1" 201 - "-" "Apache-Maven/2. > 2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml > HTTP/1.1" 404 275 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linu > x 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml.md5 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml.sha1 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom > HTTP/1.1" 201 - "-" "Ap > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/rcom/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.md5 > HTTP/1.1" 201 - "-" > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.sha1 > HTTP/1.1" 201 - "- > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > > nexus.log : > 2009-09-21 23:35:44 INFO [TP-Processor7 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:47:29 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:48:46 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:48:49 INFO [TP-Processor1 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > > -- > View this message in context: http://www.nabble.com/Unable-to-deploy-%27release%27-artifact%2C-snapshot-works-tp25530481p25530481.html > Sent from the Nexus Maven Repository Manager Users List mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@... > For additional commands, e-mail: nexus-user-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Unable to deploy 'release' artifact, snapshot worksPlease find below: <distributionManagement> <repository> <id>central</id> <name>Nexus repository</name> <url>http://dev.vpn/nexus/content/repositories/releases</url> </repository> <snapshotRepository> <id>central</id> <name>Nexus snapshot repository</name> <url>http://dev.vpn/nexus/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> <server> <id>central</id> <username>robert</username> <password>...</password> </server> Thanks, Robert On Mon, Sep 21, 2009 at 2:07 PM, Robert Munteanu <robert.munteanu@gmail.com> wrote: > > Hi, > > I am unable to deploy a release WAR on nexus, while the snapshot version > works just fine. The war file is around 30 MB, if that matters by any > chance. > > Any hints would be appreciated. > > Thanks, > > Robert > > settings.xml snippet: > > <server> > <id>central</id> > <username>robert</username> > <password>...</password> > </server> > <server> > <id>nexus</id> > <username>robert</username> > <password>...</password> > </server> > > pom.xml snippet: > > <distributionManagement> > <repository> > <id>central</id> > <name>Nexus repository</name> > > <url>http://dev.vpn/nexus/content/repositories/releases</url> > </repository> > <snapshotRepository> > <id>central</id> > <name>Nexus snapshot repository</name> > > <url>http://dev.vpn/nexus/content/repositories/snapshots</url> > </snapshotRepository> > </distributionManagement> > > mvn command line output: > > [INFO] Error deploying artifact: Error transferring file > > Error writing to server > > mvn -v output: > > Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300) > Java version: 1.6.0_0 > Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux" version: "2.6.27.29-0.1-pae" arch: "i386" Family: "unix" > > Apache access log for release artifact > > 10.25.0.10 - - [21/Sep/2009:23:38:32 +0300] "PUT > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci-web-1.2.11.war > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:39:02 +0300] "PUT > /nexus/content/repositories/releases/com/example/jci-web/1.2.11/jci-web-1.2.11.war > HTTP/1.1" 401 954 "-" "Apache-Maven/2.2 (Java 1.6.0 > _0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > > Apache access log for snapshot artifact > > 10.25.0.10 - - [21/Sep/2009:23:26:55 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:27:25 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:27:56 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203601-1.war > HTTP/1.1" 401 379 "-" " > Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:22 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:28:24 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war > HTTP/1.1" 201 - "-" "Ap > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.md5 > HTTP/1.1" 201 - "-" > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.war.sha1 > HTTP/1.1" 201 - "- > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:40 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml > HTTP/1.1" 404 272 "-" "Apache-Maven/2.2 ( > Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Ja > va 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml.md5 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 > (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/maven-metadata.xml.sha1 > HTTP/1.1" 201 - "-" "Apache-Maven/2. > 2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml > HTTP/1.1" 401 379 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "GET > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml > HTTP/1.1" 404 275 "-" "Apache-Maven/2.2 (Java 1.6.0_0; Li > nux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:41 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; Linu > x 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml.md5 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/maven-metadata.xml.sha1 > HTTP/1.1" 201 - "-" "Apache-Maven/2.2 (Java 1.6.0_0; > Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom > HTTP/1.1" 201 - "-" "Ap > ache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/rcom/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.md5 > HTTP/1.1" 201 - "-" > "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > 10.25.0.10 - - [21/Sep/2009:23:29:42 +0300] "PUT > /nexus/content/repositories/snapshots/com/example/jci-web/1.2.11-SNAPSHOT/jci-web-1.2.11-20090921.203759-1.pom.sha1 > HTTP/1.1" 201 - "- > " "Apache-Maven/2.2 (Java 1.6.0_0; Linux 2.6.27.29-0.1-pae) > maven-artifact/2.2.1" > > nexus.log : > 2009-09-21 23:35:44 INFO [TP-Processor7 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:47:29 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:48:46 INFO [TP-Processor8 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > 2009-09-21 23:48:49 INFO [TP-Processor1 ] - o.s.n.s.f.a.NexusSe~ > - Successfully authenticated user [robert] from address/host > [10.25.0.10/10.25.0.10] > > -- > View this message in context: http://www.nabble.com/Unable-to-deploy-%27release%27-artifact%2C-snapshot-works-tp25530481p25530481.html > Sent from the Nexus Maven Repository Manager Users List mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: nexus-user-unsubscribe@sonatype.org > For additional commands, e-mail: nexus-user-help@sonatype.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@sonatype.org For additional commands, e-mail: nexus-user-help@sonatype.org |
| Free embeddable forum powered by Nabble | Forum Help |