Problem with "mvn package" for hdbpp-configurator
|
|
---|---|
Need help! clone from https://github.com/tango-controls-hdbpp/hdbpp-configurator.git running "mvn package" got this problem that I need help with. is there a place that I can download the latest jar file for hdbpp-configurator? osboxes@osboxes:~/TangoProjects/hdbpp-configurator$ mvn package [INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for org.tango.hdb:hdbpp-configurator:jar:3.26 [WARNING] 'dependencies.dependency.version' for org.tango:jhdbviewer:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 78, column 22 [WARNING] 'dependencies.dependency.version' for org.tango:Jive:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 83, column 22 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 39, column 21 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 57, column 21 [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.tango.hdb:hdbpp-configurator >—————— [INFO] Building hdbpp-configurator 3.26 [INFO] ——————————–[ jar ]——————————— Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom [INFO] ———————————————————————— [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 0.777 s [INFO] Finished at: 2021-10-28T19:52:40-07:00 [INFO] ———————————————————————— [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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/PluginResolutionException osboxes@osboxes:~/TangoProjects/hdbpp-configurator$ |
|
|
---|---|
Hi, You need to fiddle with maven-resources-plugin version, try to change it in your pom.xml:
|
|
|
---|---|
Thanks Igor for your response. I added a section as recommended to pom.xml (attached) but the problem still persisted. osboxes@osboxes:~/TangoProjects/hdbpp-configurator$ mvn package [INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for org.tango.hdb:hdbpp-configurator:jar:3.27-SNAPSHOT [WARNING] 'dependencies.dependency.version' for org.tango:jhdbviewer:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 87, column 22 [WARNING] 'dependencies.dependency.version' for org.tango:Jive:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 92, column 22 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 47, column 21 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 66, column 21 [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.tango.hdb:hdbpp-configurator >—————— [INFO] Building hdbpp-configurator 3.27-SNAPSHOT [INFO] ——————————–[ jar ]——————————— Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/3.2.0/maven-resources-plugin-3.2.0.pom [INFO] ———————————————————————— [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 0.927 s [INFO] Finished at: 2021-10-31T03:49:59-07:00 [INFO] ———————————————————————— [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:3.2.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.2.0: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:3.2.0 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/3.2.0/maven-resources-plugin-3.2.0.pom: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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/PluginResolutionException |
|
|
---|---|
Hm… Try to delete local maven repository, it is usually in ${HOME}/.m2 folder and re-run with -U flag (this forces maven to update). Otherwise try this answer from SO: link |