Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.maint.java Subject: Re: Need help to upgrade libnetlib-java package Date: Tue, 12 Apr 2016 10:10:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-java-request@lists.debian.org Tue Apr 12 08:05:30 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.776 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, MURPHY_SCAM1=0.1, RP_MATCHES_RCVD=-0.996] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailing-List: archive/latest/19348 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20160412080510.GC27092@an3as.eu Approved: robomod@news.nic.it Lines: 76 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Java List X-Original-Date: Tue, 12 Apr 2016 10:05:10 +0200 X-Original-Message-ID: <20160412080510.GC27092@an3as.eu> X-Original-References: <56AA99D0.80701@apache.org> <20160129084953.GT2043@an3as.eu> <20160201220136.GA22689@an3as.eu> <56AFD8C8.20809@debian.org> <20160405093509.GC21481@an3as.eu> <57038F1C.6060406@debian.org> <20160405110208.GD26908@an3as.eu> <57091E9A.7040901@debian.org> <20160410071437.GD31278@an3as.eu> <1460278689.1559.16.camel@gmx.net> Xref: csiph.com linux.debian.maint.java:9022 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