Hi,

I need to backport libguava-java to Jessie since version 19.0 is needed
to enable backporting the Debian Med package mhap.  When trying to build
libguava-java version 19.0 under Jessie I noticed that some maven
artifacts of some Build-Depends are missing in the Jessie versions.
Thus I decided to backport to of libguava-java's Build-Depends.  While
plexus-compiler went fine I finally stumbled upon the backport of
maven-bundle-plugin.  When trying to build under Jessie I get:


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.913 s
[INFO] Finished at: 2016-10-11T08:58:52+00:00
[INFO] Final Memory: 9M/148M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) 
on project maven-bundle-plugin: Execution default-compile of goal 
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile failed: Plugin 
org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies 
could not be resolved: The following artifacts could not be resolved: 
org.codehaus.plexus:plexus-compiler-api:jar:debian, 
org.codehaus.plexus:plexus-compiler-manager:jar:debian, 
org.codehaus.plexus:plexus-compiler-javac:jar:debian: Cannot access central 
(https://repo.maven.apache.org/maven2) in offline mode and the artifact 
org.codehaus.plexus:plexus-compiler-api:jar:debian has not been downloaded from 
it before. -> [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
dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp 
/usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar
 -Dmaven.home=/usr/share/maven 
-Dmaven.multiModuleProjectDirectory=/build/maven-bundle-plugin-2.5.4 
-Dclassworlds.conf=/etc/maven/m2-debian.conf 
-Dproperties.file.manual=/build/maven-bundle-plugin-2.5.4/debian/maven.properties
 org.codehaus.plexus.classworlds.launcher.Launcher 
-s/etc/maven/settings-debian.xml 
-Ddebian.dir=/build/maven-bundle-plugin-2.5.4/debian 
-Dmaven.repo.local=/build/maven-bundle-plugin-2.5.4/debian/maven-repo package 
javadoc:jar javadoc:aggregate -DskipTests -Dnotimestamp=true -Dlocale=en_US 
returned exit code 1
debian/rules:6: recipe for target 'build' failed
make: *** [build] Error 1


>From my naive point of view this looks as if plexus-compiler is the
problematic bit here.  I can confirm that the build was just using
the backported

  libplexus-compiler-java_2.4-3~bpo8+1_all.deb

which I kept in a local mirror.

So the question is:  How can I successfully build either
   maven-bundle-plugin_2.5.4-3
on Jessie or how can I build
   guava-libraries_19.0
directly on Jessie (without backporting the Build-Depends).

Any help would be welcome

     Andreas.

-- 
http://fam-tille.de

Reply via email to