[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException cat: maven-classpath: No such file or directory cat: maven-classpath: No such file or directory Wrote maven-classpath.properties for standalone ant use * Disabling all optional ANT_TASKS ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop-gnome_libressl_20181104-213057 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-8.2.0 * Available Python interpreters, in order of preference: [1] python3.7 [2] python3.6 [3] python2.7 (fallback) [4] jython2.7 (fallback) Available Ruby profiles: [1] ruby23 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.9.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpvO dev-lang/clojure [ebuild N ] dev-lang/clojure-1.9.0 USE="-source -test"
Created attachment 554534 [details] emerge-info.txt
Created attachment 554536 [details] dev-lang:clojure-1.9.0:20181108-054347.log
Created attachment 554538 [details] emerge-history.txt
Created attachment 554540 [details] environment
Created attachment 554542 [details] etc.portage.tbz2
Created attachment 554544 [details] temp.tbz2
I believe the actual error happens before the quoted part: >>> Compiling source in /tmp/portage/dev-lang/clojure-1.9.0/work/clojure-clojure-e5a8cfa ... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.7 @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.clojure:clojure:1.9.0 (/tmp/portage/dev-lang/clojure-1.9.0/work/clojure-clojure-e5a8cfa/pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.7: Could not transfer artifact org.sonatype.plugins:nexus-staging-maven-plugin:pom:1.6.7 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known: Unknown host repo.maven.apache.org: Name or service not known -> [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/PluginManagerException cat: maven-classpath: No such file or directory cat: maven-classpath: No such file or directory Wrote maven-classpath.properties for standalone ant use I would guess that this is a missing dependency / source file detected by FEATURES=network-sandbox.
This patch to the Gentoo ebuild makes it build: https://github.com/devurandom/gentoo-overlay/commit/3faf5b966b665c561a9583f30b291d3028e1c6f3 Gathering all the dependencies was quite bothersome: While Clojure has a very short list of things it requires, it feels as if Maven requires half of Maven Central to run. I completely understand why the original ebuild author tried to skip this step... If any tooling exists to generate a list of artifacts (POMs and JARs) required to build a POM (incl. the Maven plugins required), that would be appreciated and might make updates easier. It might be beneficial to extract parts of this ebuild into a maven.eclass. One might also consider installing the clj tool / wrapper script (src/main/resources/) or docs (doc/) from https://github.com/clojure/brew-install -- I did not do that yet, since it also depends on Clojure's own `clojure` wrapper script.
This affects Clojure 1.10.0 as well. The actual error is again: [ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.7 @ Fixed in https://github.com/devurandom/gentoo-overlay/commit/b99c788c35ebaad12734394651978700c7f0c106 ChangeLog: https://github.com/devurandom/gentoo-overlay/commits/master/dev-lang/clojure
I took the liberty to suggest myself as a proxied maintainer: https://github.com/gentoo/gentoo/pull/11741
Thank you Dennis!
*** Bug 684022 has been marked as a duplicate of this bug. ***
the patch from the pull request works for me. looks like pulling it in is held up on an ask to shrink the size of the patch?
See also my pull request for this that avoids maven altogether https://github.com/gentoo/gentoo/pull/14224.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=421fb65443c227152636a9378dd9963bd65427b0 commit 421fb65443c227152636a9378dd9963bd65427b0 Author: Tom Gillespie <tgbugs@gmail.com> AuthorDate: 2020-01-03 07:41:15 +0000 Commit: Kent Fredric <kentnl@gentoo.org> CommitDate: 2020-04-23 05:03:07 +0000 dev-lang/clojure: >=1.9.0 fix sandbox violations This commit updates the clojure ebuilds to use the latest ebuild conventions and updates the dependencies to include two new packages. This is the last in a series of 3 commits that make it possible to build >=clojure-1.9.0 on gentoo without pulling in any maven dependencies which trigger network-sandbox violations. To accomplish this two new packages dev-java/spec-alpha and dev-java/core-specs-alpha have been added to the tree. They are dependencies written in clojure that are required to build clojure but that do not themselves depend on clojure. Closes: https://bugs.gentoo.org/670680 Closes: https://bugs.gentoo.org/684536 Closes: https://github.com/gentoo/gentoo/pull/14224 Signed-off-by: Tom Gillespie <tgbugs@gmail.com> Signed-off-by: Kent Fredric <kentnl@gentoo.org> dev-lang/clojure/clojure-1.10.0.ebuild | 20 ++++++++++-------- dev-lang/clojure/clojure-1.9.0-r1.ebuild | 35 ++++++++++++++++---------------- 2 files changed, 29 insertions(+), 26 deletions(-)