Re: Need help to upgrade libnetlib-java package
Hi Benjamin,
On Sun, Apr 10, 2016 at 10:58:09AM +0200, Benjamin Mesing wrote:
> I have downloaded and tried to build libnetlib-java
Thanks for your attempt to help.
> When trying to build I get the error:
> make -f debian/rules binary
> dh binary --buildsystem=maven --with javahelper
> dh_testdir -O--buildsystem=maven
> dh_update_autotools_config -O--buildsystem=maven
> dh_auto_configure -O--buildsystem=maven
> find: ‘/usr/share/maven-repo/org/codehaus/plexus/plexus-compiler/*/*.jar’: No such file or directory
> find: ‘/usr/share/maven-repo/org/codehaus/plexus/plexus-compilers/*/*.jar’: No such file or directory
> find: ‘/usr/share/maven-repo/org/codehaus/plexus/plexus-containers/*/*.jar’: No such file or directory
> mh_patchpoms -plibnetlib-java --debian-build --keep-pom-version --maven-repo=/home/ben/tmp/libnetlib-java/debian/maven-repo
> [ERROR] Cannot find parent dependency org.sonatype.oss:oss-parent:pom:7, use --no-parent option to resolve this issue or install the parent POM in the Maven repository
> jh_linkjars -O--buildsystem=maven
> debian/rules override_dh_auto_build
> make[1]: Entering directory '/home/ben/tmp/libnetlib-java'
> dh_auto_build -- install
> /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=/home/ben/tmp/libnetlib-java -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/home/ben/tmp/libnetlib-java/debian -Dmaven.repo.local=/home/ben/tmp/libnetlib-java/debian/maven-repo install -DskipTests -Dnotimestamp=true -Dlocale=en_US
> [INFO] Scanning for projects...
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [WARNING] 'parent.relativePath' of POM com.github.fommil.netlib:generator:1.1.1 (/home/ben/tmp/libnetlib-java/generator/pom.xml) points at com.github.fommil.netlib:parent instead of org.sonatype.oss:oss-parent, please verify your project structure @ line 8, column 10
> [FATAL] Non-resolvable parent POM for com.github.fommil.netlib:generator:1.1.1: Cannot access sonatype-releases ( https://oss.sonatype.org/content/repositories/releases/ ) in offline mode and the artifact org.sonatype.oss:oss-parent:pom:7 has not been downloaded from it before. and 'parent.relativePath' points at wrong local POM @ line 8, column 10
> @
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR] The project com.github.fommil.netlib:generator:1.1.1 (/home/ben/tmp/libnetlib-java/generator/pom.xml) has 1 error
> [ERROR] Non-resolvable parent POM for com.github.fommil.netlib:generator:1.1.1: Cannot access sonatype-releases ( https://oss.sonatype.org/content/repositories/releases/ ) in offline mode and the artifact org.sonatype.oss:oss-parent:pom:7 has not been downloaded from it before. and 'parent.relativePath' points at wrong local POM @ line 8, column 10 -> [Help 2]
> [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/ProjectBuildingException
> [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> 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=/home/ben/tmp/libnetlib-java -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/home/ben/tmp/libnetlib-java/debian -Dmaven.repo.local=/home/ben/tmp/libnetlib-java/debian/maven-repo install -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
> debian/rules:11: recipe for target 'override_dh_auto_build' failed
> make[1]: *** [override_dh_auto_build] Error 2
> make[1]: Leaving directory '/home/ben/tmp/libnetlib-java'
> debian/rules:8: recipe for target 'binary' failed
> make: *** [binary] Error 2
>
> Is this the error you are getting?
Yes.
> From what I see, the error message ist pretty straightforward:
> Cannot access sonatype-releases (https://oss.sonatype.org/content/repos
> itories/releases/) in offline mode and the artifact
> org.sonatype.oss:oss-parent:pom:7 has not been downloaded from it
> before.
> I am totally new to maven in Debian and no maven expert in general, but
> to me it looks like we are missing the org.sonatype.oss:oss-parent pom
> here? This parent pom is referenced generator/pom.xml. Which package
> does provide the definition for oss-parent?
This might be a hint. When seeking with apt-file for sonatype I find
several packages featuring some maven files in a dir sonytype. Most
promising looks:
libsisu-maven-plugin-java: /usr/share/maven-repo/org/sonatype/plugins/sisu-maven-plugin/1.1/sisu-maven-plugin-1.1.jar
libsisu-maven-plugin-java: /usr/share/maven-repo/org/sonatype/plugins/sisu-maven-plugin/1.1/sisu-maven-plugin-1.1.pom
When adding libsisu-maven-plugin-java to the Build-Depends of
libnetlib-java the very same error remains. Any better ideas?
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: