Hide Forgot
plexus-compiler fails to build from source due to unresolvable dependencies for requires generator which fails the build to prevent incorrect package dependencies[1]. Snippet from build.log: Exception: Following dependencies were not resolved and requires cannot be generated. Either remove the dependency from pom.xml or add proper packages to BuildRequires: org.apache.maven.plugins:maven-gpg-plugin:::UNKNOWN org.codehaus.plexus:plexus-compiler-test:::UNKNOWN Following dependencies were not resolved and requires cannot be generated. Either remove the dependency from pom.xml or add proper packages to BuildRequires: org.apache.maven.plugins:maven-gpg-plugin:::UNKNOWN org.codehaus.plexus:plexus-compiler-test:::UNKNOWN [1] https://brewweb.devel.redhat.com/taskinfo?taskID=6572303
Created attachment 823563 [details] Proposed patch
Fixed in plexus-compiler-2.2-6
*** Bug 1053002 has been marked as a duplicate of this bug. ***
Rebuilding with the 2.2-6 patch I get Exception: Following dependencies were not resolved and requires cannot be generated. Either remove the dependency from pom.xml or add proper packages to BuildRequires: org.codehaus.plexus:plexus-compiler:pom::UNKNOWN Following dependencies were not resolved and requires cannot be generated. Either remove the dependency from pom.xml or add proper packages to BuildRequires: org.codehaus.plexus:plexus-compiler:pom::UNKNOWN Indeed, it pulled in itself in pre-build: DEBUG util.py:281: plexus-compiler.noarch 0:2.2-5.el7 It's a loop because plexus-compiler buildrequires plexus-compiler-extras, which in turn requires mvn(org.codehaus.plexus:plexus-compiler-api), which is provided by plexus-compiler. How did you work around this to get it to build without an explicit Buildrequires: plexus-compiler?
You can try temporarly patching fragment file with sed (see below). Once you build plexus-compiler, rebuild it without this workaround. sed -i -n '/<autoRequires>/{:a;N;/<\/autoRequires>/{p;b;};/>UNKNOWN</{:b;n;/<\/autoRequires>/{b;};bb;};ba;};p' %{buildroot}%{_mavendepmapfragdir}/*
Right after %mvn_install. It worked. Thanks!
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request.