Summary: | dev-lang/clojure-1.9.0 : cat: maven-classpath: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dschridde+gentoobugs |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/11741 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
dev-lang:clojure-1.9.0:20181108-054347.log emerge-history.txt environment etc.portage.tbz2 temp.tbz2 |
Description
Toralf Förster
2018-11-08 16:24:04 UTC
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(-) |