GeoNetwork : mvn build failed because artefact
GeoNetwork : mvn build failed because artefact
Playbook failed at task TASK [geonetwork : maven check source ~ 30min] *********************************
When I ssh onto aidmoit-geonetwork and cli the command : mvn -f /root/ansible-dl/geonetwork-3-6 clean install -DskipTests -Dmaven.artifact.threads=30 -Djava.net.preferIPv4Stack=true with 2 more option :
- -Dmaven.artifact.threads=30 : download artefact using 30 connections (cf : https://stackoverflow.com/questions/9974311/is-it-possible-to-speed-up-maven-artifacts-downloading)
- -Djava.net.preferIPv4Stack=true : force use of IPv4 (cf : https://issues.apache.org/jira/browse/MNG-5162)
See below error : (last lines)
INFO] ------------------------------------------------------------------------ Downloading: http://repo.maven.apache.org/maven2/org/springframework/spring-core/3.2.11.RELEASE/spring-core-3.2.11.RELEASE.pom Downloading: https://repo.maven.apache.org/maven2/org/springframework/spring-core/3.2.11.RELEASE/spring-core-3.2.11.RELEASE.pom [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] GeoNetwork opensource .............................. SUCCESS [ 0.418 s] [INFO] common utils ....................................... SUCCESS [ 2.138 s] [INFO] Caching xslt module ................................ SUCCESS [ 0.086 s] [INFO] ArcSDE module (dummy-api) .......................... SUCCESS [ 0.115 s] [INFO] GeoNetwork domain .................................. SUCCESS [ 3.206 s] [INFO] Oaipmh modules ..................................... SUCCESS [ 0.211 s] [INFO] GeoNetwork Events .................................. SUCCESS [ 0.093 s] [INFO] GeoNetwork schema plugins .......................... SUCCESS [ 0.004 s] [INFO] GeoNetwork schema plugins core ..................... SUCCESS [ 0.106 s] [INFO] GeoNetwork schema plugin for ISO19139/119 standards SUCCESS [ 0.094 s] [INFO] GeoNetwork index using Elasticsearch ............... SUCCESS [ 0.003 s] [INFO] GeoNetwork index Elasticsearch client .............. SUCCESS [ 0.047 s] [INFO] GeoNetwork core .................................... SUCCESS [ 3.565 s] [INFO] GeoNetwork schema plugin for Dublin Core records retrieved by CSW SUCCESS [ 0.022 s] [INFO] GeoNetwork schema plugin for Dublin Core standard .. SUCCESS [ 0.057 s] [INFO] GeoNetwork schema plugin for ISO19110 standard ..... SUCCESS [ 0.080 s] [INFO] GeoNetwork CSW server .............................. SUCCESS [ 0.455 s] [INFO] GeoNetwork harvesters .............................. SUCCESS [ 0.740 s] [INFO] GeoNetwork health monitor .......................... SUCCESS [ 0.204 s] [INFO] GeoNetwork Digital Object Identifier (DOI) client .. SUCCESS [ 0.143 s] [INFO] GeoNetwork services ................................ SUCCESS [ 2.819 s] [INFO] Geonetwork Web Resources 4 Java .................... SUCCESS [ 0.724 s] [INFO] GeoNetwork INSPIRE Atom ............................ SUCCESS [ 0.746 s] [INFO] GeoNetwork dashboard app based on Kibana ........... SUCCESS [ 0.014 s] [INFO] Release module ..................................... SUCCESS [ 0.035 s] [INFO] messaging .......................................... SUCCESS [ 0.078 s] [INFO] workers ............................................ SUCCESS [ 0.005 s] [INFO] WFS features harvester ............................. FAILURE [30:00 min] [INFO] Tests for schema plugins ........................... SKIPPED [INFO] GeoNetwork user interface module ................... SKIPPED [INFO] JS API and Service documentation ................... SKIPPED [INFO] GeoNetwork Web module .............................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 30:16 min [INFO] Finished at: 2020-02-13T09:19:36-08:00 [INFO] Final Memory: 87M/298M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project wfsfeature-harvester: Could not resolve dependencies for project org.geonetwork-opensource:wfsfeature-harvester:jar:3.6.1-SNAPSHOT: Failed to collect dependencies at org.apache.camel:camel-spring:jar:2.14.4 -> org.springframework:spring-aop:jar:3.2.11.RELEASE -> org.springframework:spring-beans:jar:3.2.11.RELEASE -> org.springframework:spring-core:jar:3.2.11.RELEASE: Failed to read artifact descriptor for org.springframework:spring-core:jar:3.2.11.RELEASE: Could not transfer artifact org.springframework:spring-core:pom:3.2.11.RELEASE from/to maven2 (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/springframework/spring-core/3.2.11.RELEASE/spring-core-3.2.11.RELEASE.pom. Return code is: 501, ReasonPhrase: HTTPS Required. -> [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :wfsfeature-harvester