nexus-scripts icon indicating copy to clipboard operation
nexus-scripts copied to clipboard

Error grabbing grapes

Open ldevigne opened this issue 7 years ago • 3 comments

Hi, when trying to install "provision.sh", I have these errors :

General error during conversion: Error grabbing Grapes -- [unresolved dependency: org.apache.james#apache-mime4j;0.6: not found, unresolved dependency: com.sun.mail#javax.mail;1.5.6: not found, unresolved dependency: com.sun.xml.bin
d#jaxb-impl;2.2.7: not found, unresolved dependency: org.jboss.logging#jboss-logging-processor;2.0.1.Final: not found, unresolved dependency: org.jboss.logging#jboss-logging-annotations;2.0.1.Final: not found, unresolved dependency:
 net.jcip#jcip-annotations;1.0: not found, unresolved dependency: javax.activation#activation;1.1.1: not found, unresolved dependency: org.jboss.spec.javax.annotation#jboss-annotations-api_1.2_spec;1.0.0.Final: not found, unresolved
 dependency: org.jboss.spec.javax.ws.rs#jboss-jaxrs-api_2.0_spec;1.0.1.Beta1: not found, unresolved dependency: com.fasterxml.jackson.jaxrs#jackson-jaxrs-json-provider;2.8.6: not found, unresolved dependency: com.fasterxml.jackson.c
ore#jackson-annotations;2.8.6: not found, unresolved dependency: com.fasterxml.jackson.core#jackson-databind;2.8.6: not found, unresolved dependency: com.fasterxml.jackson.core#jackson-core;2.8.6: not found, unresolved dependency: o
rg.jboss.spec.javax.servlet#jboss-servlet-api_3.1_spec;1.0.0.Final: not found, unresolved dependency: org.sonatype.nexus#nexus-script;3.5.1-02: not found, unresolved dependency: org.sonatype.nexus#nexus-rest-jackson2;3.5.1-02: not f
ound, unresolved dependency: org.sonatype.nexus#nexus-rest-client;3.5.1-02: not found]

java.lang.RuntimeException: Error grabbing Grapes -- [unresolved dependency: org.apache.james#apache-mime4j;0.6: not found, unresolved dependency: com.sun.mail#javax.mail;1.5.6: not found, unresolved dependency: com.sun.xml.bind#jax
b-impl;2.2.7: not found, unresolved dependency: org.jboss.logging#jboss-logging-processor;2.0.1.Final: not found, unresolved dependency: org.jboss.logging#jboss-logging-annotations;2.0.1.Final: not found, unresolved dependency: net.
jcip#jcip-annotations;1.0: not found, unresolved dependency: javax.activation#activation;1.1.1: not found, unresolved dependency: org.jboss.spec.javax.annotation#jboss-annotations-api_1.2_spec;1.0.0.Final: not found, unresolved depe
ndency: org.jboss.spec.javax.ws.rs#jboss-jaxrs-api_2.0_spec;1.0.1.Beta1: not found, unresolved dependency: com.fasterxml.jackson.jaxrs#jackson-jaxrs-json-provider;2.8.6: not found, unresolved dependency: com.fasterxml.jackson.core#j
ackson-annotations;2.8.6: not found, unresolved dependency: com.fasterxml.jackson.core#jackson-databind;2.8.6: not found, unresolved dependency: com.fasterxml.jackson.core#jackson-core;2.8.6: not found, unresolved dependency: org.jb
oss.spec.javax.servlet#jboss-servlet-api_3.1_spec;1.0.0.Final: not found, unresolved dependency: org.sonatype.nexus#nexus-script;3.5.1-02: not found, unresolved dependency: org.sonatype.nexus#nexus-rest-jackson2;3.5.1-02: not found,
 unresolved dependency: org.sonatype.nexus#nexus-rest-client;3.5.1-02: not found]

ldevigne avatar Nov 26 '18 09:11 ldevigne

@ldevigne, what is your version of nexus?

hlavki avatar Nov 27 '18 12:11 hlavki

Hi, my version is 3.14.0.4

Le 27/11/2018 à 13:07, Michal Hlavac a écrit :

@ldevigne https://github.com/ldevigne, what is your version of nexus?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hlavki/nexus-scripts/issues/1#issuecomment-442035575, or mute the thread https://github.com/notifications/unsubscribe-auth/AHL3L9bzOp8by-HhOfXVBZOZfQmqLlmcks5uzSrugaJpZM4Yyq5G.

-- Laurent DEVIGNES https://ci.bu-dsa.si.c-s.fr BU-DSA / CIaaS 01.41.28.45.15

ldevigne avatar Nov 27 '18 12:11 ldevigne

@ldevigne and for those who are still having this error, edit the file grapeConfig.xml and add your own repository or any other public mirror repository like this and comment out localm2 and central. <ibiblio name="org" root="http://internal-repo:8080/repository/maven-public/" m2compatible="true"/>

Tested working on Nexus OSS 3.15.0-01 groovy --version Groovy Version: 3.0.4 JVM: 1.8.0_252 Vendor: AdoptOpenJDK OS: Linux

Thanks to @hlavki for sharing this script, it made grooming artifacts much easier.

j3ffrw avatar Jul 17 '20 14:07 j3ffrw