You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Martijn Dashorst <ma...@gmail.com> on 2013/11/01 12:05:05 UTC

Fixed: Unable to upload release artifacts to Apache's nexus

It appears that I was unable to upload a pending release to the
repository.apache.org nexus while I am able to log in to the web
interface using my credentials.

The log of maven gives as reason:

    "Peer not authenticated"

While it is probably completely clear what this descriptive message
means to a core Maven developer, it caused me some griefs (i.e. a
whole morning) to fix this issue. In order to help others that might
run into this particular problem here's what fixed it for me:

It appears that upgrading my lingering Java 6 version on  OS X to
1.6.0_65 has fixed this issue. While not 100% sure, I suspect the
updated Java has newer certificates that make the upload process work
again.

I'd like to see the error handling of Maven to be improved to make
clear that the HTTPS connection could not be established rather than
just "peer not authenticated" due to bad certificates or such.

Martijn Dashorst

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Fixed: Unable to upload release artifacts to Apache's nexus

Posted by Kristian Rosenvold <kr...@gmail.com>.
I agree totally that the focus of the output on error is just so
/wrong/. Do we know if anyone actually depends on the order/format of
these things ?

Kristian


2013/11/1 Martijn Dashorst <ma...@gmail.com>:
> My biggest gripes with Maven in this situation are two fold:
>
> 1. an error message that can be much more descriptive as the exception
> appears to be SSLPeerUnverifiedException. The message that is logged
> by Maven:
>
> [INFO] [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy
> (default-deploy) on project wicket-parent: Failed to deploy artifacts:
> Could not transfer artifact org.apache.wicket:wicket-parent:pom:6.12.0
> from/to apache.releases.https
> (https://repository.apache.org/service/local/staging/deploy/maven2):
> peer not authenticated -> [Help 1]
>
> does not convey this information. Information has been lost!
>
> 2. The excessive logging generated by Maven obscures the actual
> message, making it hard to find what exactly went wrong. Maven should
> *end* the log with the exception message (possibly including the type
> of the exception). See the following log vomit and try to discern what
> went wrong and how to fix it:
>
>
> [INFO] [INFO] --- maven-site-plugin:3.1:attach-descriptor
> (attach-descriptor) @ wicket-parent ---
> [INFO] [INFO]
> [INFO] [INFO] --- maven-gpg-plugin:1.4:sign (default) @ wicket-parent ---
> [INFO] [INFO]
> [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install)
> @ wicket-parent ---
> [INFO] [INFO] Installing
> /Workspaces/wicket/wicket-6.x/wicket/target/checkout/pom.xml to
> /Users/dashorst/.m2.wicket/repository/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0.pom
> [INFO] [INFO] Installing
> /Workspaces/wicket/wicket-6.x/wicket/target/checkout/target/wicket-parent-6.12.0-source-release.zip
> to /Users/dashorst/.m2.wicket/repository/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0-source-release.zip
> [INFO] [INFO] Installing
> /Workspaces/wicket/wicket-6.x/wicket/target/checkout/target/wicket-parent-6.12.0.pom.asc
> to /Users/dashorst/.m2.wicket/repository/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0.pom.asc
> [INFO] [INFO] Installing
> /Workspaces/wicket/wicket-6.x/wicket/target/checkout/target/wicket-parent-6.12.0-source-release.zip.asc
> to /Users/dashorst/.m2.wicket/repository/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0-source-release.zip.asc
> [INFO] [INFO]
> [INFO] [INFO] --- maven-gpg-plugin:1.4:sign (sign-artifacts) @ wicket-parent ---
> [INFO] [INFO]
> [INFO] [INFO] --- maven-deploy-plugin:2.6:deploy (default-deploy) @
> wicket-parent ---
> [INFO] Uploading:
> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0.pom
> [INFO]
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] Reactor Summary:
> [INFO] [INFO]
> [INFO] [INFO] Wicket Parent .....................................
> FAILURE [14.694s]
> [INFO] [INFO] Wicket Util ....................................... SKIPPED
> [INFO] [INFO] Wicket Request .................................... SKIPPED
> [INFO] [INFO] Wicket Core ....................................... SKIPPED
> [INFO] [INFO] Wicket ............................................ SKIPPED
> [INFO] [INFO] Wicket Date/Time .................................. SKIPPED
> [INFO] [INFO] Wicket Extensions ................................. SKIPPED
> [INFO] [INFO] Wicket Development Utilities ...................... SKIPPED
> [INFO] [INFO] Wicket IoC common code ............................ SKIPPED
> [INFO] [INFO] Wicket CDI Integration ............................ SKIPPED
> [INFO] [INFO] Wicket Spring Integration ......................... SKIPPED
> [INFO] [INFO] Wicket Velocity ................................... SKIPPED
> [INFO] [INFO] Wicket Auth Roles ................................. SKIPPED
> [INFO] [INFO] Wicket Guice Integration .......................... SKIPPED
> [INFO] [INFO] Wicket JMX ........................................ SKIPPED
> [INFO] [INFO] Wicket Objects Sizeof Agent ....................... SKIPPED
> [INFO] [INFO] Wicket-Experimental ............................... SKIPPED
> [INFO] [INFO] Wicket-Atmosphere ................................. SKIPPED
> [INFO] [INFO] Wicket Bean Validation ............................ SKIPPED
> [INFO] [INFO] Wicket Examples ................................... SKIPPED
> [INFO] [INFO] Wicket Native WebSocket Parent .................... SKIPPED
> [INFO] [INFO] Wicket Native WebSocket Core ...................... SKIPPED
> [INFO] [INFO] Wicket Native WebSocket Jetty ..................... SKIPPED
> [INFO] [INFO] Wicket Native WebSocket Jetty 9 ................... SKIPPED
> [INFO] [INFO] Wicket Native WebSocket Tomcat 7.x ................ SKIPPED
> [INFO] [INFO] Wicket Bootstrap .................................. SKIPPED
> [INFO] [INFO] Wicket Examples Parent ............................ SKIPPED
> [INFO] [INFO] Wicket Examples Jar ............................... SKIPPED
> [INFO] [INFO] Wicket Examples War ............................... SKIPPED
> [INFO] [INFO] Wicket Quickstart Archetype ....................... SKIPPED
> [INFO] [INFO] Wicket Common Tests ............................... SKIPPED
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] Total time: 15.704s
> [INFO] [INFO] Finished at: Fri Nov 01 11:19:50 CET 2013
> [INFO] [INFO] Final Memory: 24M/81M
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy
> (default-deploy) on project wicket-parent: Failed to deploy artifacts:
> Could not transfer artifact org.apache.wicket:wicket-parent:pom:6.12.0
> from/to apache.releases.https
> (https://repository.apache.org/service/local/staging/deploy/maven2):
> peer not authenticated -> [Help 1]
> [INFO] [ERROR]
> [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven
> with the -e switch.
> [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [INFO] [ERROR]
> [INFO] [ERROR] For more information about the errors and possible
> solutions, please read the following articles:
> [INFO] [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Wicket Parent ..................................... FAILURE [44.545s]
> [INFO] Wicket Util ....................................... SKIPPED
> [INFO] Wicket Request .................................... SKIPPED
> [INFO] Wicket Core ....................................... SKIPPED
> [INFO] Wicket ............................................ SKIPPED
> [INFO] Wicket Date/Time .................................. SKIPPED
> [INFO] Wicket Extensions ................................. SKIPPED
> [INFO] Wicket Development Utilities ...................... SKIPPED
> [INFO] Wicket IoC common code ............................ SKIPPED
> [INFO] Wicket CDI Integration ............................ SKIPPED
> [INFO] Wicket Spring Integration ......................... SKIPPED
> [INFO] Wicket Velocity ................................... SKIPPED
> [INFO] Wicket Auth Roles ................................. SKIPPED
> [INFO] Wicket Guice Integration .......................... SKIPPED
> [INFO] Wicket JMX ........................................ SKIPPED
> [INFO] Wicket Objects Sizeof Agent ....................... SKIPPED
> [INFO] Wicket-Experimental ............................... SKIPPED
> [INFO] Wicket-Atmosphere ................................. SKIPPED
> [INFO] Wicket Bean Validation ............................ SKIPPED
> [INFO] Wicket Examples ................................... SKIPPED
> [INFO] Wicket Native WebSocket Parent .................... SKIPPED
> [INFO] Wicket Native WebSocket Core ...................... SKIPPED
> [INFO] Wicket Native WebSocket Jetty ..................... SKIPPED
> [INFO] Wicket Native WebSocket Jetty 9 ................... SKIPPED
> [INFO] Wicket Native WebSocket Tomcat 7.x ................ SKIPPED
> [INFO] Wicket Bootstrap .................................. SKIPPED
> [INFO] Wicket Examples Parent ............................ SKIPPED
> [INFO] Wicket Examples Jar ............................... SKIPPED
> [INFO] Wicket Examples War ............................... SKIPPED
> [INFO] Wicket Quickstart Archetype ....................... SKIPPED
> [INFO] Wicket Common Tests ............................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 46.252s
> [INFO] Finished at: Fri Nov 01 11:19:51 CET 2013
> [INFO] Final Memory: 17M/81M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.3.2:perform
> (default-cli) on project wicket-parent: Maven execution failed, exit
> code: '1' -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Fixed: Unable to upload release artifacts to Apache's nexus

Posted by Martijn Dashorst <ma...@gmail.com>.
My biggest gripes with Maven in this situation are two fold:

1. an error message that can be much more descriptive as the exception
appears to be SSLPeerUnverifiedException. The message that is logged
by Maven:

[INFO] [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy
(default-deploy) on project wicket-parent: Failed to deploy artifacts:
Could not transfer artifact org.apache.wicket:wicket-parent:pom:6.12.0
from/to apache.releases.https
(https://repository.apache.org/service/local/staging/deploy/maven2):
peer not authenticated -> [Help 1]

does not convey this information. Information has been lost!

2. The excessive logging generated by Maven obscures the actual
message, making it hard to find what exactly went wrong. Maven should
*end* the log with the exception message (possibly including the type
of the exception). See the following log vomit and try to discern what
went wrong and how to fix it:


[INFO] [INFO] --- maven-site-plugin:3.1:attach-descriptor
(attach-descriptor) @ wicket-parent ---
[INFO] [INFO]
[INFO] [INFO] --- maven-gpg-plugin:1.4:sign (default) @ wicket-parent ---
[INFO] [INFO]
[INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install)
@ wicket-parent ---
[INFO] [INFO] Installing
/Workspaces/wicket/wicket-6.x/wicket/target/checkout/pom.xml to
/Users/dashorst/.m2.wicket/repository/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0.pom
[INFO] [INFO] Installing
/Workspaces/wicket/wicket-6.x/wicket/target/checkout/target/wicket-parent-6.12.0-source-release.zip
to /Users/dashorst/.m2.wicket/repository/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0-source-release.zip
[INFO] [INFO] Installing
/Workspaces/wicket/wicket-6.x/wicket/target/checkout/target/wicket-parent-6.12.0.pom.asc
to /Users/dashorst/.m2.wicket/repository/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0.pom.asc
[INFO] [INFO] Installing
/Workspaces/wicket/wicket-6.x/wicket/target/checkout/target/wicket-parent-6.12.0-source-release.zip.asc
to /Users/dashorst/.m2.wicket/repository/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0-source-release.zip.asc
[INFO] [INFO]
[INFO] [INFO] --- maven-gpg-plugin:1.4:sign (sign-artifacts) @ wicket-parent ---
[INFO] [INFO]
[INFO] [INFO] --- maven-deploy-plugin:2.6:deploy (default-deploy) @
wicket-parent ---
[INFO] Uploading:
https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/wicket/wicket-parent/6.12.0/wicket-parent-6.12.0.pom
[INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary:
[INFO] [INFO]
[INFO] [INFO] Wicket Parent .....................................
FAILURE [14.694s]
[INFO] [INFO] Wicket Util ....................................... SKIPPED
[INFO] [INFO] Wicket Request .................................... SKIPPED
[INFO] [INFO] Wicket Core ....................................... SKIPPED
[INFO] [INFO] Wicket ............................................ SKIPPED
[INFO] [INFO] Wicket Date/Time .................................. SKIPPED
[INFO] [INFO] Wicket Extensions ................................. SKIPPED
[INFO] [INFO] Wicket Development Utilities ...................... SKIPPED
[INFO] [INFO] Wicket IoC common code ............................ SKIPPED
[INFO] [INFO] Wicket CDI Integration ............................ SKIPPED
[INFO] [INFO] Wicket Spring Integration ......................... SKIPPED
[INFO] [INFO] Wicket Velocity ................................... SKIPPED
[INFO] [INFO] Wicket Auth Roles ................................. SKIPPED
[INFO] [INFO] Wicket Guice Integration .......................... SKIPPED
[INFO] [INFO] Wicket JMX ........................................ SKIPPED
[INFO] [INFO] Wicket Objects Sizeof Agent ....................... SKIPPED
[INFO] [INFO] Wicket-Experimental ............................... SKIPPED
[INFO] [INFO] Wicket-Atmosphere ................................. SKIPPED
[INFO] [INFO] Wicket Bean Validation ............................ SKIPPED
[INFO] [INFO] Wicket Examples ................................... SKIPPED
[INFO] [INFO] Wicket Native WebSocket Parent .................... SKIPPED
[INFO] [INFO] Wicket Native WebSocket Core ...................... SKIPPED
[INFO] [INFO] Wicket Native WebSocket Jetty ..................... SKIPPED
[INFO] [INFO] Wicket Native WebSocket Jetty 9 ................... SKIPPED
[INFO] [INFO] Wicket Native WebSocket Tomcat 7.x ................ SKIPPED
[INFO] [INFO] Wicket Bootstrap .................................. SKIPPED
[INFO] [INFO] Wicket Examples Parent ............................ SKIPPED
[INFO] [INFO] Wicket Examples Jar ............................... SKIPPED
[INFO] [INFO] Wicket Examples War ............................... SKIPPED
[INFO] [INFO] Wicket Quickstart Archetype ....................... SKIPPED
[INFO] [INFO] Wicket Common Tests ............................... SKIPPED
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 15.704s
[INFO] [INFO] Finished at: Fri Nov 01 11:19:50 CET 2013
[INFO] [INFO] Final Memory: 24M/81M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy
(default-deploy) on project wicket-parent: Failed to deploy artifacts:
Could not transfer artifact org.apache.wicket:wicket-parent:pom:6.12.0
from/to apache.releases.https
(https://repository.apache.org/service/local/staging/deploy/maven2):
peer not authenticated -> [Help 1]
[INFO] [ERROR]
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven
with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible
solutions, please read the following articles:
[INFO] [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Wicket Parent ..................................... FAILURE [44.545s]
[INFO] Wicket Util ....................................... SKIPPED
[INFO] Wicket Request .................................... SKIPPED
[INFO] Wicket Core ....................................... SKIPPED
[INFO] Wicket ............................................ SKIPPED
[INFO] Wicket Date/Time .................................. SKIPPED
[INFO] Wicket Extensions ................................. SKIPPED
[INFO] Wicket Development Utilities ...................... SKIPPED
[INFO] Wicket IoC common code ............................ SKIPPED
[INFO] Wicket CDI Integration ............................ SKIPPED
[INFO] Wicket Spring Integration ......................... SKIPPED
[INFO] Wicket Velocity ................................... SKIPPED
[INFO] Wicket Auth Roles ................................. SKIPPED
[INFO] Wicket Guice Integration .......................... SKIPPED
[INFO] Wicket JMX ........................................ SKIPPED
[INFO] Wicket Objects Sizeof Agent ....................... SKIPPED
[INFO] Wicket-Experimental ............................... SKIPPED
[INFO] Wicket-Atmosphere ................................. SKIPPED
[INFO] Wicket Bean Validation ............................ SKIPPED
[INFO] Wicket Examples ................................... SKIPPED
[INFO] Wicket Native WebSocket Parent .................... SKIPPED
[INFO] Wicket Native WebSocket Core ...................... SKIPPED
[INFO] Wicket Native WebSocket Jetty ..................... SKIPPED
[INFO] Wicket Native WebSocket Jetty 9 ................... SKIPPED
[INFO] Wicket Native WebSocket Tomcat 7.x ................ SKIPPED
[INFO] Wicket Bootstrap .................................. SKIPPED
[INFO] Wicket Examples Parent ............................ SKIPPED
[INFO] Wicket Examples Jar ............................... SKIPPED
[INFO] Wicket Examples War ............................... SKIPPED
[INFO] Wicket Quickstart Archetype ....................... SKIPPED
[INFO] Wicket Common Tests ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.252s
[INFO] Finished at: Fri Nov 01 11:19:51 CET 2013
[INFO] Final Memory: 17M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.3.2:perform
(default-cli) on project wicket-parent: Maven execution failed, exit
code: '1' -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org