Hi,

I have injected some preliminary packaging for google-api-client-java
into salsa[1].  When trying to build I get:


...
   dh_auto_build
        /usr/lib/jvm/default-java/bin/java -noverify -cp 
/usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven 
-Dmaven.multiModuleProjectDirectory=/build/google-api-client-java-1.30.9 
-Dclassworlds.conf=/etc/maven/m2-debian.conf 
org.codehaus.plexus.classworlds.launcher.Launcher 
-s/etc/maven/settings-debian.xml 
-Ddebian.dir=/build/google-api-client-java-1.30.9/debian 
-Dmaven.repo.local=/build/google-api-client-java-1.30.9/debian/maven-repo 
package -DskipTests -Dnotimestamp=true -Dlocale=en_US
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
com.google.inject.internal.cglib.core.$ReflectUtils$1 
(file:/usr/share/maven/lib/guice.jar) to method 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of 
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Cannot access central 
(https://repo.maven.apache.org/maven2) in offline mode and the artifact 
com.google.http-client:google-http-client-bom:pom:debian has not been 
downloaded from it before. @ line 105, column 16
[ERROR] Non-resolvable import POM: Cannot access central 
(https://repo.maven.apache.org/maven2) in offline mode and the artifact 
com.google.oauth-client:google-oauth-client-bom:pom:debian has not been 
downloaded from it before. @ line 112, column 16
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.google.api-client:google-api-client-parent:1.30.9 
(/build/google-api-client-java-1.30.9/pom.xml) has 2 errors
[ERROR]     Non-resolvable import POM: Cannot access central 
(https://repo.maven.apache.org/maven2) in offline mode and the artifact 
com.google.http-client:google-http-client-bom:pom:debian has not been 
downloaded from it before. @ line 105, column 16 -> [Help 2]
[ERROR]     Non-resolvable import POM: Cannot access central 
(https://repo.maven.apache.org/maven2) in offline mode and the artifact 
com.google.oauth-client:google-oauth-client-bom:pom:debian has not been 
downloaded from it before. @ line 112, column 16 -> [Help 2]


I have added libgoogle-http-client-java that is carrying the classes in
question but it seems I need to do some more magic to make maven finding
it.  It would be great if somebody would refresh my mind how to do this.

Kind regards

        Andreas.

[1] https://salsa.debian.org/java-team/google-api-client-java

-- 
http://fam-tille.de

Reply via email to