Red Hat Bugzilla – Bug 1021484
xmvn: installs malformed parent poms
Last modified: 2013-10-24 11:23:32 EDT
Description of problem:
Package maven fails to build from source in rawhide
Version-Release number of selected component (if applicable):
This is caused by Sisu uopdate from M4 to M5. Maven builds fine after Sisu downgrade to M4.
This even breaks Maven runtime so needs to be fixed ASAP.
The problem really seems to be somehow related to sisu. I have untagged sisu-0.0.0-0.6.M5.fc21 and Maven now builds fine:
Note Maven now builds against sisu-0.0.0-0.5.M5, so update from M4 to M5 doesn't have to be the problem here. Keeping this bug open, since I still don't fully understand where the real problem lies.
Moving to sisu.
This is causing more packages to fail to build, for example XMvn.
This is blocking an important XMvn bugfix so please resolve it ASAP.
I think I finally know where the problem is. Following lines from build.log are interesting:
[DEBUG] Artifact org.eclipse.sisu:sisu-plexus:pom:0.0.0.M5 was resolved to /usr/share/maven-poms/JPP-sisu-plexus.pom
[WARNING] The POM for org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.0.0.M5 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for org.eclipse.sisu:org.eclipse.sisu.plexus:0.0.0.M5
[FATAL] Non-parseable POM /usr/share/maven-poms/JPP-sisu-plexus.pom: only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:1) @ /usr/share/maven-poms/JPP-sisu-plexus.pom, line 1, column 1
And indeed, JPP-sisu-plexus.pom is malformed.
$ cat /usr/share/maven-poms/JPP-sisu-plexus.pom
$ file /usr/share/maven-poms/JPP-sisu-plexus.pom
/usr/share/maven-poms/JPP-sisu-plexus.pom: Java Jar file data (zip)
My guess is that XMvn tries to inject artifact coordinates to POM only artifacts. If my assumption is correct, we will need to rebuild all the packages which contain parent pom and were built by XMvn 1.2.0.
From my rawhide machine:
$ file /usr/share/maven-poms/* | grep "Java Jar file" | wc -l
Reassigning to XMvn.
Fixed in xmvn-1.2.0-2
I believe that this bug is fixed in xmvn-1.2.0-4,
which is available in Fedora Rawhide, so I am closing this bug now.
The build containing the fix can be found at Koji: