Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713548 - java-ebuilder uses non-existent Maven host
Summary: java-ebuilder uses non-existent Maven host
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Benda Xu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-19 22:46 UTC by Andrew Udvare
Modified: 2020-05-12 11:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
java-ebuilder movl build log (java-ebuilder-tycho-amven-plugin-1.4.0.log,3.41 KB, text/x-log)
2020-03-20 03:03 UTC, Andrew Udvare
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2020-03-19 22:46:30 UTC
The tree.sh script references central.maven.org which does not seem to exist anymore, and it's not secure unlike the newer mirrors such as https://repo.maven.apache.org/maven2/

https://gitweb.gentoo.org/proj/java-ebuilder.git/tree/scripts/tree.sh#n75

I patched tree.sh to use repo.maven.apache.org

I am attempting to make an ebuild for DBeaver, with dependencies as necessary. I have this in my /etc/java-ebuilder.conf:

JAVA_OVERLAY_DIR=/var/db/repos/java
POMDIR=/var/lib/java-ebuilder/poms
MAVEN_OVERLAY_DIR=/var/lib/java-ebuilder/maven
CACHEDIR=/var/lib/java-ebuilder/cache
MAVEN_ARTS="org.eclipse.tycho:tycho-maven-plugin:jar:1.4.0"

I made the directory /var/db/repos/java.

I then ran `movl build` and first I got a connection due to the non-existent host, but after patching I found that it was trying to get a nonexistent file.

Reproducible: Always

Steps to Reproduce:
1. Install java-ebuilder latest
2. Edit /etc/java-ebuilder.conf as necessary
3. Run movl build
Actual Results:  
Does not produce ebuilds

Expected Results:  
Should produce ebuilds
Comment 1 Andrew Udvare 2020-03-20 03:01:58 UTC
I think I have the MAVEN_ARTS line corrected now:

MAVEN_ARTS="org.eclipse.tycho:tycho-maven-plugin:1.4.0"

I ran `movl clean && movl build` and got this error:

Parsed ebuild file name: name = tycho-maven-plugin, version = 1.4.0, suffix = null
Reading in maven cache...(warning: format is not up-to-date, consider refreshing the cache)...done
Exception in thread "main" java.lang.IllegalThreadStateException: process hasn't exited
        at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423)
        at org.gentoo.java.ebuilder.maven.MavenParser.getEffectivePom(MavenParser.java:122)
        at org.gentoo.java.ebuilder.maven.MavenParser.lambda$parsePomFiles$0(MavenParser.java:41)
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
        at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
        at org.gentoo.java.ebuilder.maven.MavenParser.parsePomFiles(MavenParser.java:40)
        at org.gentoo.java.ebuilder.Main.generateEbuild(Main.java:194)
        at org.gentoo.java.ebuilder.Main.main(Main.java:51)
/usr/lib/java-ebuilder/tree.sh: line 126: /var/lib/java-ebuilder/maven/app-maven/tycho-maven-plugin/tycho-maven-plugin-1.4.0.ebuild: No such file or directory
Appending /var/lib/java-ebuilder/maven to PORTDIR_OVERLAY...
ebuild: /var/lib/java-ebuilder/maven/app-maven/tycho-maven-plugin/*.ebuild: does not exist
Comment 2 Andrew Udvare 2020-03-20 03:03:53 UTC
Created attachment 622926 [details]
java-ebuilder movl build log
Comment 3 Benda Xu gentoo-dev 2020-05-12 11:52:06 UTC
Hi Andrew, thank you for the report!  This year we are going to have a GSoC project on fixing java-ebuilder.  Zongyu is going to devote his summer working on it.