glycoinfo / GlycanBuilder2

7 stars 5 forks source link

mvn clean compile fails due to an expired certificate #51

Closed lukaszsobala closed 1 year ago

lukaszsobala commented 2 years ago

Hello,

I tried to build and update my glycanbuilder and initially it failed with the following error:

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.eurocarbdb.glycanbuilder:glycanbuilder2:jar:1.18.1
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-deploy-plugin @ line 132, column 12
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:exec-maven-plugin is missing. @ line 77, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] ------------< org.eurocarbdb.glycanbuilder:glycanbuilder2 >-------------
[INFO] Building GlycanBuilder WURCS extened 1.18.1
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from glycoinfo: https://nexus.glycoinfo.org/content/groups/public/org/eurocarbdb/MolecularFramework/0.1-b37-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.eurocarbdb:MolecularFramework:0.1-b37-SNAPSHOT/maven-metadata.xml from/to glycoinfo (https://nexus.glycoinfo.org/content/groups/public): Transfer failed for https://nexus.glycoinfo.org/content/groups/public/org/eurocarbdb/MolecularFramework/0.1-b37-SNAPSHOT/maven-metadata.xml
[WARNING] Failure to transfer org.eurocarbdb:MolecularFramework:0.1-b37-SNAPSHOT/maven-metadata.xml from https://nexus.glycoinfo.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of glycoinfo has elapsed or updates are forced. Original error: Could not transfer metadata org.eurocarbdb:MolecularFramework:0.1-b37-SNAPSHOT/maven-metadata.xml from/to glycoinfo (https://nexus.glycoinfo.org/content/groups/public): Transfer failed for https://nexus.glycoinfo.org/content/groups/public/org/eurocarbdb/MolecularFramework/0.1-b37-SNAPSHOT/maven-metadata.xml
Downloading from glycoinfo: https://nexus.glycoinfo.org/content/groups/public/org/glycoinfo/convert/glycanformatconverter/2.7.0/glycanformatconverter-2.7.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.485 s
[INFO] Finished at: 2022-06-01T10:06:16+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project glycanbuilder2: Could not resolve dependencies for project org.eurocarbdb.glycanbuilder:glycanbuilder2:jar:1.18.1: Failed to collect dependencies at org.glycoinfo.convert:glycanformatconverter:jar:2.7.0: Failed to read artifact descriptor for org.glycoinfo.convert:glycanformatconverter:jar:2.7.0: Could not transfer artifact org.glycoinfo.convert:glycanformatconverter:pom:2.7.0 from/to glycoinfo (https://nexus.glycoinfo.org/content/groups/public): Transfer failed for https://nexus.glycoinfo.org/content/groups/public/org/glycoinfo/convert/glycanformatconverter/2.7.0/glycanformatconverter-2.7.0.pom: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed: NotAfter: Sun May 29 00:03:49 CEST 2022 -> [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/DependencyResolutionException

This seemed to be a certificate error. After executing this command, the build was successful: mvn clean compile -X -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true - probably the last option about the dates did the trick. I don't know much about this but it seems that a certificate needs to be updated as it expired 2 days ago.

Thanks for keeping GlycanBuilder up to date!

e15d5605 commented 2 years ago

Thank for your report. We added the means to solve problem about an expired certificate in read me document. We will update the document in the near future.