Hello,

I am trying to perform a release of the cobertura maven plugin version 2.6, however whenever I execute the command:
mvn release:perform -username=schristou88
I get the following exception:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project cobertura-maven-plugin: Failed to deploy artifacts: Could not transfer artifact org.codehaus.mojo:cobertura-maven-plugin:jar:2.6 from/to codehaus-nexus-staging (https://nexus.codehaus.org/service/local/staging/deploy/maven2/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

After doing some searching on the internet it suggests that I never installed the CA for codehaus. I followed the tutorial on https://docs.codehaus.org/display/HAUSMATES/Installing+a+new+CA+into+the+JDK to install the StartSSL-CA and StartSSL-Intermediate. I do see that a jssecacerts file is created in the $JAVA_HOME/jre/lib/security folder. I also added the following arguments to my MAVEN_OPTS: schristou88@schristou88:~/cobertura/cobertura-maven-plugin$ export MAVEN_OPTS="-Djavax.net.ssl.keyStore=$KEYSTORE \
    -Djavax.net.ssl.keyStorePassword=changeit \
    -Djavax.net.ssl.trustStore=$KEYSTORE \
    -Djavax.net.ssl.trustStorePassword=changeit"

but still no luck.

Thanks,
Steve.

Reply via email to