2017-11-14 11:30 GMT-05:00 Mikolaj Izdebski <mizdebsk@xxxxxxxxxx>: > On 11/14/2017 02:58 PM, Paulo César Pereira de Andrade wrote: >> Hi, >> >> If you have a spare time, and can do a quick test I would really >> appreciate. >> >> I only know some basic heuristics based on build errors... >> >> Test should be: >> >> $ fedpkg co jacop; cd jacop; fedpkg local >> >> I thought it could be related to scala, but it fails with either current >> scala, or a rebuild wth patch at >> https://bugzilla.redhat.com/show_bug.cgi?id=1512883 >> >> error is: >> >> [ERROR] UndeclaredThrowableException: InvocationTargetException: >> Plugin org.codehaus.mojo:javacc-maven-plugin:2.6 or one of its >> dependencies could not be resolved: Cannot access scala >> (http://scala-tools.org/repo-releases/) in offline mode and the >> artifact com.google.inject:guice:jar:no_aop:4.0 has not been >> downloaded from it before. > > I can't reproduce this. On rawhide I'm getting compilation errors instead. Many thanks. I was just trying to fix it hacking pom_ macros, but on my rawhide computer. Something is bogus, besides apparently all ok, I am running rawhide for more than 3 years... Based on your response it was clear something was bogus, so, just created a new mock rawhide chroot, noticed there were two missing build requires: ''' $ git diff diff --git a/jacop.spec b/jacop.spec index 3effe0e..cf593d1 100644 --- a/jacop.spec +++ b/jacop.spec @@ -14,11 +14,14 @@ BuildRequires: apache-commons-jexl BuildRequires: java-devel BuildRequires: javacc-maven-plugin BuildRequires: maven-local +BuildRequires: maven-plugin-build-helper BuildRequires: maven-plugin-bundle +BuildRequires: maven-source-plugin BuildRequires: scala BuildRequires: slf4j-log4j12 Requires: javapackages-tools BuildArch: noarch +Patch0: %{name}-privilege.patch %description Java Constraint Programming solver, JaCoP in short, is an open-source Java @@ -37,6 +40,7 @@ This package contains the API documentation for %{name}. %prep %setup -q -n %{name}-%{commit} +%patch0 -p0 %pom_remove_plugin "org.scala-tools:maven-scala-plugin" pom.xml %pom_remove_dep "org.perf4j" pom.xml %pom_change_dep commons-jexl: org.apache.commons: ''' and this patch corrects the build errors: ''' diff -up src/main/java/org/jacop/fz/SimpleNode.java.orig src/main/java/org/jacop/fz/SimpleNode.java --- src/main/java/org/jacop/fz/SimpleNode.java.orig 2017-11-14 09:22:26.471948651 -0500 +++ src/main/java/org/jacop/fz/SimpleNode.java 2017-11-14 09:22:31.760948854 -0500 @@ -75,7 +75,7 @@ class SimpleNode implements Node { } } - int getId() { + public int getId() { return id; } ''' > In general, for questions like this one I recommend asking on Java SIG > IRC channel [1]. > > [1] https://fedoraproject.org/wiki/SIGs/Java#IRC_Channel > > > -- > Mikolaj Izdebski > Software Engineer, Red Hat > IRC: mizdebsk Sorry for the noise :( Thanks! Paulo _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx