https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Bug ID: 1015123 Summary: maven-release: FTBFA in rawhide Product: Fedora Version: rawhide Component: maven-release Assignee: guido.grazioli@gmail.com Reporter: mizdebsk@redhat.com QA Contact: extras-qa@fedoraproject.org CC: guido.grazioli@gmail.com, java-sig-commits@lists.fedoraproject.org, jcapik@redhat.com, mizdebsk@redhat.com
Description of problem: Package maven-release fails to build from source in rawhide.
Version-Release number of selected component (if applicable): 2.2.1-9
Probable cause of build failure:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project maven-release-manager: Compilation failure: Compilation failure: [ERROR] /builddir/build/BUILD/maven-release-2.2.1/maven-release-manager/target/generated-sources/modello/org/apache/maven/shared/release/config/ReleaseDescriptor.java:[1615,37] method put in interface java.util.Map<K,V> cannot be applied to given types; [ERROR] required: java.lang.Object,java.lang.String [ERROR] found: java.lang.String,java.util.Map [ERROR] reason: actual argument java.util.Map cannot be converted to java.lang.String by method invocation conversion [ERROR] /builddir/build/BUILD/maven-release-2.2.1/maven-release-manager/target/generated-sources/modello/org/apache/maven/shared/release/config/ReleaseDescriptor.java:[1667,24] method put in interface java.util.Map<K,V> cannot be applied to given types; [ERROR] required: java.lang.Object,java.lang.String [ERROR] found: java.lang.String,org.apache.maven.model.Scm [ERROR] reason: actual argument org.apache.maven.model.Scm cannot be converted to java.lang.String by method invocation conversion [ERROR] /builddir/build/BUILD/maven-release-2.2.1/maven-release-manager/target/generated-sources/modello/org/apache/maven/shared/release/config/ReleaseDescriptor.java:[1705,90] inconvertible types [ERROR] required: java.util.Map [ERROR] found: java.lang.String [ERROR] /builddir/build/BUILD/maven-release-2.2.1/maven-release-manager/target/generated-sources/modello/org/apache/maven/shared/release/config/ReleaseDescriptor.java:[1719,90] inconvertible types [ERROR] required: java.util.Map [ERROR] found: java.lang.String
Full build logs from Koji:
Package maven-release (6019809): noarch (6019824): root.log : http://kojipkgs.fedoraproject.org/work/tasks/9824/6019824/root.log build.log : http://kojipkgs.fedoraproject.org/work/tasks/9824/6019824/build.log state.log : http://kojipkgs.fedoraproject.org/work/tasks/9824/6019824/state.log mock_output.log : http://kojipkgs.fedoraproject.org/work/tasks/9824/6019824/mock_output.log
Additional info: [1] http://fedoraproject.org/wiki/Packaging:Java [2] http://fedoraproject.org/wiki/Packaging:Guidelines
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|maven-release: FTBFA in |maven-release: FTBFS in |rawhide |rawhide
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Paulo Andrade paulo.cesar.pereira.de.andrade@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paulo.cesar.pereira.de.andr | |ade@gmail.com
--- Comment #1 from Paulo Andrade paulo.cesar.pereira.de.andrade@gmail.com --- Created attachment 839672 --> https://bugzilla.redhat.com/attachment.cgi?id=839672&action=edit maven-release-ftbfs.patch
This is probably completely broken. But may work depending on how the toString output is done, and how string'able it is. I am not a java programmer, just some guessing around and checking stackoverflow related suggestions of how to convert a string back to a hash map (basically it is said to not do it), but apparently previously it used some weird type punning to pass around a HashMap pointer as a String (or vice versa).
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Patch
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
--- Comment #2 from Paulo Andrade paulo.cesar.pereira.de.andrade@gmail.com --- Created attachment 841063 --> https://bugzilla.redhat.com/attachment.cgi?id=841063&action=edit maven-release-ftbfs.patch
This one should be better, and theoretically should not change behaviour from when it was building... It basically should defers type cast error to runtime, but I did not add exception handling in case there are failures.
Well, I am just trying to "bootstrap" a java stack based on Fedora packages on another distribution...
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #839672|0 |1 is obsolete| |
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
--- Comment #3 from Mikolaj Izdebski mizdebsk@redhat.com --- (In reply to Paulo Andrade from comment #2)
Created attachment 841063 [details] maven-release-ftbfs.patch
This one should be better, and theoretically should not change behaviour from when it was building... It basically should defers type cast error to runtime, but I did not add exception handling in case there are failures.
The second patch looks OK. I am not maintainer of maven-release and I have limited time, so it would be very helpful if you could follow rule described in [1] when preparing a patch.
Well, I am just trying to "bootstrap" a java stack based on Fedora packages on another distribution...
Out of curiosity, which distro?
Also feel free to join #java-devel on Freenode. Asking questions there usually will be much easier than reporting bugs. We have regular visitors from other distros there too.
[1] https://fedoraproject.org/wiki/User:Mizdebsk/HowToSubmitPatches
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
--- Comment #4 from Paulo Andrade paulo.cesar.pereira.de.andrade@gmail.com --- (In reply to Mikolaj Izdebski from comment #3)
(In reply to Paulo Andrade from comment #2)
Created attachment 841063 [details] maven-release-ftbfs.patch
This one should be better, and theoretically should not change behaviour from when it was building... It basically should defers type cast error to runtime, but I did not add exception handling in case there are failures.
The second patch looks OK. I am not maintainer of maven-release and I have limited time, so it would be very helpful if you could follow rule described in [1] when preparing a patch.
I will try to make a proper patch, but for now I am just using %if 0%{?fedora} %else <<stuff I need different from fedora spec>>> %endif But I do not care of having credit for the patch, just showing what I am using right now, and attempting to have an idea if it would be usable :-)
Well, I am just trying to "bootstrap" a java stack based on Fedora packages on another distribution...
Out of curiosity, which distro?
OpenMandriva. Right now I am almost at the point of building tomcat from sources. But the java stack is a mess of cyclic dependencies... I did create a javapackages-bootstrap huge package to inject (most) dependencies in the repositories:
https://abf.rosalinux.ru/openmandriva/javapackages-bootstrap/blob/master/cre...
and a few other packages were injected using a noarch rpm as source to break other cyclic deps found later...
Also feel free to join #java-devel on Freenode. Asking questions there usually will be much easier than reporting bugs. We have regular visitors from other distros there too.
Is it really #java-devel on Freenode? I found myself alone there, so I left the room :-)
[1] https://fedoraproject.org/wiki/User:Mizdebsk/HowToSubmitPatches
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Stanislav Ochotnicky sochotni@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sochotni@redhat.com
--- Comment #5 from Stanislav Ochotnicky sochotni@redhat.com --- (In reply to Paulo Andrade from comment #4)
Also feel free to join #java-devel on Freenode. Asking questions there usually will be much easier than reporting bugs. We have regular visitors from other distros there too.
Is it really #java-devel on Freenode? I found myself alone there, so I left the room :-)
I believe it's #fedora-java (java-devel is our mailing list[1] :-) ) You can subscribe there as well, if you are going to be using (parts of) our java stack it might be useful to know about major changes in advance.
[1] https://admin.fedoraproject.org/mailman/listinfo/java-devel
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Paulo Andrade paulo.cesar.pereira.de.andrade@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #841063|0 |1 is obsolete| |
--- Comment #6 from Paulo Andrade paulo.cesar.pereira.de.andrade@gmail.com --- Created attachment 847160 --> https://bugzilla.redhat.com/attachment.cgi?id=847160&action=edit 0001-fix-rhbz-1015123.patch
This patch should address the recommendations at https://fedoraproject.org/wiki/User:Mizdebsk/HowToSubmitPatches
I am using this patch in my fedora based java packages bootstrap for openmandriva. https://abf.rosalinux.ru/openmandriva/maven-release
Note that I am calling fedora packages "upstream", thus the "Update to latest upstream release" logs there.
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|guido.grazioli@gmail.com |mizdebsk@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED Fixed In Version| |2.2.1-10
--- Comment #7 from Mikolaj Izdebski mizdebsk@redhat.com --- Fixed in maven-release-2.2.1-10
https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |RAWHIDE Last Closed| |2014-03-06 07:11:02
--- Comment #8 from Mikolaj Izdebski mizdebsk@redhat.com --- I believe that this bug is fixed in maven-release-2.2.1-10, which is available in Fedora Rawhide, so I am closing this bug now.
The build containing the fix can be found at Koji: http://koji.fedoraproject.org/koji/buildinfo?buildID=502286
java-sig-commits@lists.fedoraproject.org