commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [io] error running mvn deploy -Prelease
Date Tue, 27 Sep 2011 20:06:18 GMT
On Tue, Sep 27, 2011 at 7:09 AM, sebb <sebbaz@gmail.com> wrote:

> On 27 September 2011 02:46, Gary Gregory <garydgregory@gmail.com> wrote:
> > Hi All:
> >
> > I've deployed a successful SNAPSHOT with Maven (mvn deploy -Prelease)
> here:
> >
> https://repository.apache.org/content/repositories/snapshots/commons-io/commons-io/2.1-SNAPSHOT/
> >
> > I get the following error when I run "mvn deploy -Prelease" after
> removing
> > "-SNAPSHOT" from the POM. See tag
> >
> https://svn.apache.org/repos/asf/commons/proper/io/tags/commons-io-2.1-RC1
> >
> > I entered the same password for both runs on the command line as prompted
> by
> > Maven.
> >
> > My set up is:
> >
> > Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
> > Maven home: C:\Java\apache-maven-3.0.3\bin\..
> > Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> > Java home: C:\Program Files\Java\jdk1.6.0_24\jre
> > Default locale: en_US, platform encoding: Cp1252
> > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> >
>
> Can you try the same command with Maven 2.2.1?
>

Same kind of problem with M2:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file:
https://repository.apache.org/service/local/staging/deploy/maven2/commons-io/commons-io/2.1/commons-io
-2.1.jar. Return code is: 400

Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_24
Java home: C:\Program Files\Java\jdk1.6.0_24\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"

Gary

>
> Maybe there's some POM tweaking needed for use with M3.
>
> I just tried "mvn deploy" on  trunk with both 2.2.1 and 3.0.3 and they
> both worked, but maybe 2.2.1 will work for you when 3.0.3 does not.
>
> > [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ commons-io
> ---
> > [DEBUG] org.apache.maven.plugins:maven-deploy-plugin:jar:2.7:
> > [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.6:compile
> > [DEBUG]    org.apache.maven:maven-project:jar:2.0.6:compile
> > [DEBUG]       org.apache.maven:maven-settings:jar:2.0.6:compile
> > [DEBUG]       org.apache.maven:maven-profile:jar:2.0.6:compile
> > [DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
> > [DEBUG]
> > org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
> > [DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
> > [DEBUG]
> >
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
> > [DEBUG]          junit:junit:jar:3.8.1:compile
> > [DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
> > [DEBUG]    org.apache.maven:maven-model:jar:2.0.6:compile
> > [DEBUG]    org.apache.maven:maven-artifact:jar:2.0.6:compile
> > [DEBUG]    org.codehaus.plexus:plexus-utils:jar:1.5.6:compile
> > [DEBUG] Created new class realm
> > plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7
> > [DEBUG] Importing foreign packages into class realm
> > plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7
> > [DEBUG]   Imported:  < maven.api
> > [DEBUG] Populating class realm
> > plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7
> > [DEBUG]   Included: org.apache.maven.plugins:maven-deploy-plugin:jar:2.7
> > [DEBUG]   Included: junit:junit:jar:3.8.1
> > [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.6
> > [DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
> > [DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.6
> > [DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.6
> > [DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.6
> > [DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
> > [DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
> > [DEBUG]   Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
> > [DEBUG]   Excluded:
> > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
> > [DEBUG]   Excluded: classworlds:classworlds:jar:1.1-alpha-2
> > [DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.0.6
> > [DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.0.6
> > [DEBUG] Configuring mojo
> > org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy from plugin realm
> > ClassRealm[plugin>org.apache.maven.plugins:maven-deploy-plugi
> > n:2.7, parent: sun.misc.Launcher$AppClassLoader@77cde100]
> > [DEBUG] Configuring mojo
> > 'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy' with basic
> > configurator -->
> > [DEBUG]   (f) artifact = commons-io:commons-io:jar:2.1
> > [DEBUG]   (f) attachedArtifacts =
> > [commons-io:commons-io:java-source:sources:2.1,
> > commons-io:commons-io:javadoc:javadoc:2.1,
> > commons-io:commons-io:tar.gz:bin:2.
> > 1, commons-io:commons-io:zip:bin:2.1,
> commons-io:commons-io:tar.gz:src:2.1,
> > commons-io:commons-io:zip:src:2.1, commons-io:commons-io:jar.asc:2.1,
> > commons-io:com
> > mons-io:pom.asc:2.1, commons-io:commons-io:jar.asc:sources:2.1,
> > commons-io:commons-io:jar.asc:javadoc:2.1,
> > commons-io:commons-io:tar.gz.asc:bin:2.1, commons-io:
> > commons-io:zip.asc:bin:2.1, commons-io:commons-io:tar.gz.asc:src:2.1,
> > commons-io:commons-io:zip.asc:src:2.1]
> > [DEBUG]   (s) localRepository =        id: local
> >      url: file:///C:/Users/ggregory/.m2/repository/
> >   layout: none
> >
> > [DEBUG]   (f) offline = false
> > [DEBUG]   (f) packaging = jar
> > [DEBUG]   (f) pomFile =
> C:\svn\org\apache\commons\trunks-proper\io\pom.xml
> > [DEBUG]   (f) project = MavenProject: commons-io:commons-io:2.1 @
> > C:\svn\org\apache\commons\trunks-proper\io\pom.xml
> > [DEBUG]   (f) retryFailedDeploymentCount = 1
> > [DEBUG]   (f) skip = false
> > [DEBUG]   (f) updateReleaseInfo = false
> > [DEBUG] -- end configuration --
> > [DEBUG] Using connector WagonRepositoryConnector with priority 0 for
> > https://repository.apache.org/service/local/staging/deploy/maven2 as
> > ggregory
> > Uploading:
> >
> https://repository.apache.org/service/local/staging/deploy/maven2/commons-io/commons-io/2.1/commons-io-2.1.jar
> > Uploading:
> >
> https://repository.apache.org/service/local/staging/deploy/maven2/commons-io/commons-io/2.1/commons-io-2.1.pom
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 3:45.411s
> > [INFO] Finished at: Mon Sep 26 21:44:42 EDT 2011
> > [INFO] Final Memory: 24M/127M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy)
> on
> > project commons-io: Failed to deploy artifacts: Could
> >  not transfer artifact commons-io:commons-io:jar:2.1 from/to
> > apache.releases.https (
> > https://repository.apache.org/service/local/staging/deploy/maven2):
> Failed t
> > o transfer file:
> >
> https://repository.apache.org/service/local/staging/deploy/maven2/commons-io/commons-io/2.1/commons-io-2.1.jar
> .
> > Return code is: 400 -> [Help 1]
> >
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> > goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy
> > (default-deploy) on proje
> > ct commons-io: Failed to deploy artifacts: Could not transfer artifact
> > commons-io:commons-io:jar:2.1 from/to apache.releases.https (
> > https://repository.apache.or
> > g/service/local/staging/deploy/maven2): Failed to transfer file:
> >
> https://repository.apache.org/service/local/staging/deploy/maven2/commons-io/commons-io/2.1/com
> > mons-io-2.1.jar. Return code is: 400
> >        at
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> >        at
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> >        at
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> >        at
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> >        at
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> >        at
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> >        at
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> >        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> >        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> >        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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> >        at
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> >        at
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> > Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
> deploy
> > artifacts: Could not transfer artifact commons-io:commons-io:jar:2.1
> from/to
> > apache.
> > releases.https (
> > https://repository.apache.org/service/local/staging/deploy/maven2):
> Failed
> > to transfer file: https://repository.apache.org/service/local/staging
> > /deploy/maven2/commons-io/commons-io/2.1/commons-io-2.1.jar. Return code
> is:
> > 400
> >        at
> > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:193)
> >        at
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> >        at
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> >        ... 19 more
> > Caused by:
> org.apache.maven.artifact.deployer.ArtifactDeploymentException:
> > Failed to deploy artifacts: Could not transfer artifact
> > commons-io:commons-io:jar:2.1
> >  from/to apache.releases.https (
> > https://repository.apache.org/service/local/staging/deploy/maven2):
> Failed
> > to transfer file: https://repository.apache.org/servi
> >
> ce/local/staging/deploy/maven2/commons-io/commons-io/2.1/commons-io-2.1.jar.
> > Return code is: 400
> >        at
> >
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)
> >        at
> >
> org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167)
> >        at
> > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:157)
> >        ... 21 more
> > Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to
> > deploy artifacts: Could not transfer artifact
> commons-io:commons-io:jar:2.1
> > from/to apa
> > che.releases.https (
> > https://repository.apache.org/service/local/staging/deploy/maven2):
> Failed
> > to transfer file: https://repository.apache.org/service/local/sta
> > ging/deploy/maven2/commons-io/commons-io/2.1/commons-io-2.1.jar. Return
> code
> > is: 400
> >        at
> >
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284)
> >        at
> >
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215)
> >        at
> >
> org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480)
> >        at
> >
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137)
> >        ... 23 more
> > Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could
> not
> > transfer artifact commons-io:commons-io:jar:2.1 from/to
> > apache.releases.https (http
> > s://repository.apache.org/service/local/staging/deploy/maven2): Failed
> to
> > transfer file:
> > https://repository.apache.org/service/local/staging/deploy/maven2/commo
> > ns-io/commons-io/2.1/commons-io-2.1.jar. Return code is: 400
> >        at
> >
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949)
> >        at
> >
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)
> >        at
> >
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864)
> >        at
> >
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466)
> >        at
> >
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278)
> >        ... 26 more
> > Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
> > transfer file:
> >
> https://repository.apache.org/service/local/staging/deploy/maven2/commons-io
> > /commons-io/2.1/commons-io-2.1.jar. Return code is: 400
> >        at
> >
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205)
> >        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.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825)
> >        at
> >
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465)
> >        ... 27 more
> >
> > Thank you,
> > Gary
> > --
> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> > Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message