You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Myrna van Lunteren <m....@gmail.com> on 2013/01/10 12:17:56 UTC

mvn deploy of 10.8.3 artifacts is failing...

Hi,

I'm trying to deploy the 10.8.3 artifacts to the maven repository
following the instructions in
https://svn.apache.org/repos/asf/db/derby/code/branches/10.8/maven2/README.txt
& the ReleasePublication page.

I managed to get a successful mvn clean install (which took some doing
as various tools/versions of same (cygwin, maven2.2.1) complained
about non-alpha characters in my passphrase), by using a DOS command
prompt window and maven 3.(0.3).
But the deploy fails with the following:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy
(default-deploy) on project derby-project: Failed to deploy artifacts:
Could not transfer artifact
org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
Return code is: 401 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy
(default-deploy) on project derby-project: Failed to deploy artifacts:
Could not transfer artifact
org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
Return code is: 401
	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:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	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
org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
Return code is: 401
	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:192)
	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
org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
Return code is: 401
	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)
	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148)
	... 21 more
Caused by: org.sonatype.aether.deployment.DeploymentException: Failed
to deploy artifacts: Could not transfer artifact
org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
Return code is: 401
	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)
	... 22 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException:
Could not transfer artifact
org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
Return code is: 401
	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)
	... 25 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
Return code is: 401
	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)
	... 26 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

The help is not heling me...
Anyone any suggestions?

I do notice towards the top of the output that it says this:
[INFO] Scanning for projects...
[DEBUG] Extension realms for project
org.apache.derby:derby-project:pom:10.8.3.0: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from
ClassRealm[plexus.core, parent: null]
[DEBUG] Extension realms for project org.apache.derby:derby:jar:10.8.3.0: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from
ClassRealm[plexus.core, parent: null]
[DEBUG] Extension realms for project
org.apache.derby:derbynet:jar:10.8.3.0: (none)
[etc for each jar]
Could this be the reason?

Suggestions are welcome.

Thx,
Myrna

Re: mvn deploy of 10.8.3 artifacts is failing...

Posted by Myrna van Lunteren <m....@gmail.com>.
On Tue, Jan 15, 2013 at 7:07 AM, Kristian Waagan
<kr...@oracle.com> wrote:
> On 10.01.2013 12:17, Myrna van Lunteren wrote:
>>
>> Hi,
>>
>> I'm trying to deploy the 10.8.3 artifacts to the maven repository
>> following the instructions in
>>
>> https://svn.apache.org/repos/asf/db/derby/code/branches/10.8/maven2/README.txt
>> &  the ReleasePublication page.
>
>
> Hi Myrna,
>
> Did you specify the server-tag in settings.xml? I updated the README with
> some additional information in revision 1433353, such that people don't have
> to consult the parent POM to get the correct id.
> Does this help you, or is something else wrong?
> I see HTTP 401 errors in your output below, which suggests that
> authentication didn't work.
>
> I was able to deploy to Nexus from Windows using the Windows command prompt,
> and it also worked in Cygwin. In case you want to use it, I've left the
> staging repos in Nexus. You can either verify the contents (i.e. verify that
> the JARs actually are the 10.8.3. JARs) and publish it, or you can drop it
> and use your own if you get things working.
>
>
> Regards,
> --
> Kristian
>
>
Hi Kristian,

I finally got back to this - and indeed, I had not correctly modified
settings.xml.
Rather than fiddle more with it at this late time, I decided to check
on the contents of what you had staged in nexus, and as it looked good
to me (following the expected contents from the README.txt and
comparing with 10.9.1.0 entries), I released the staging version for
10.8.3.0.
It has not shown up yet in the central Maven repository
(http://repo1.maven.org/maven2/org/apache/derby/), so I hope I did
this correctly.

Myrna

Re: mvn deploy of 10.8.3 artifacts is failing...

Posted by Kristian Waagan <kr...@oracle.com>.
On 10.01.2013 12:17, Myrna van Lunteren wrote:
> Hi,
>
> I'm trying to deploy the 10.8.3 artifacts to the maven repository
> following the instructions in
> https://svn.apache.org/repos/asf/db/derby/code/branches/10.8/maven2/README.txt
> &  the ReleasePublication page.

Hi Myrna,

Did you specify the server-tag in settings.xml? I updated the README 
with some additional information in revision 1433353, such that people 
don't have to consult the parent POM to get the correct id.
Does this help you, or is something else wrong?
I see HTTP 401 errors in your output below, which suggests that 
authentication didn't work.

I was able to deploy to Nexus from Windows using the Windows command 
prompt, and it also worked in Cygwin. In case you want to use it, I've 
left the staging repos in Nexus. You can either verify the contents 
(i.e. verify that the JARs actually are the 10.8.3. JARs) and publish 
it, or you can drop it and use your own if you get things working.


Regards,
-- 
Kristian

>
> I managed to get a successful mvn clean install (which took some doing
> as various tools/versions of same (cygwin, maven2.2.1) complained
> about non-alpha characters in my passphrase), by using a DOS command
> prompt window and maven 3.(0.3).
> But the deploy fails with the following:
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy
> (default-deploy) on project derby-project: Failed to deploy artifacts:
> Could not transfer artifact
> org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
> Return code is: 401 ->  [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy
> (default-deploy) on project derby-project: Failed to deploy artifacts:
> Could not transfer artifact
> org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
> Return code is: 401
> 	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:60)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> 	at java.lang.reflect.Method.invoke(Method.java:611)
> 	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
> org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
> Return code is: 401
> 	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:192)
> 	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
> org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
> Return code is: 401
> 	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)
> 	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148)
> 	... 21 more
> Caused by: org.sonatype.aether.deployment.DeploymentException: Failed
> to deploy artifacts: Could not transfer artifact
> org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
> Return code is: 401
> 	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)
> 	... 22 more
> Caused by: org.sonatype.aether.transfer.ArtifactTransferException:
> Could not transfer artifact
> org.apache.derby:derby-project:pom:10.8.3.0 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/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
> Return code is: 401
> 	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)
> 	... 25 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
> transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/derby/derby-project/10.8.3.0/derby-project-10.8.3.0.pom.
> Return code is: 401
> 	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)
> 	... 26 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> The help is not heling me...
> Anyone any suggestions?
>
> I do notice towards the top of the output that it says this:
> [INFO] Scanning for projects...
> [DEBUG] Extension realms for project
> org.apache.derby:derby-project:pom:10.8.3.0: (none)
> [DEBUG] Looking up lifecyle mappings for packaging pom from
> ClassRealm[plexus.core, parent: null]
> [DEBUG] Extension realms for project org.apache.derby:derby:jar:10.8.3.0: (none)
> [DEBUG] Looking up lifecyle mappings for packaging jar from
> ClassRealm[plexus.core, parent: null]
> [DEBUG] Extension realms for project
> org.apache.derby:derbynet:jar:10.8.3.0: (none)
> [etc for each jar]
> Could this be the reason?
>
> Suggestions are welcome.
>
> Thx,
> Myrna