Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.0.10
-
Fix Version/s: None
-
Component/s: Maven Embedder
-
Labels:None
-
Environment:Eclipse 3.2.1, MaxOS X 10.4.8
Description
I switched from 0.0.9 to 0.0.10 and now face a serious problem: our project has transitive dependencies to modules with an old Maven 1.0 POM in the local repository (geronimo-spec-javamail/1.3.1-rc3 and geronimo-spec-jms/1.1-rc4). Upon building in Eclipse the m2eclipse plugin now stops the build when it comes to those POMs and throws those errors:
<snip>
26.01.07 13:18:22 CET: Parsing error /Users/alex/.m2/repository/geronimo-spec/geronimo-spec-javamail/1.3.1-rc3/geronimo-spec-javamail-1.3.1-rc3.pom; org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'pomVersion' (position: START_TAG seen .../3.0.0 http://maven.apache.org/maven-v3_0_0.xsd">\n <pomVersion>... @30:17)
26.01.07 13:18:22 CET: Unable to read model from /mindquarry-teamspace/pom.xml; org.eclipse.core.runtime.CoreException: Parsing error /Users/alex/.m2/repository/geronimo-spec/geronimo-spec-javamail/1.3.1-rc3/geronimo-spec-javamail-1.3.1-rc3.pom; org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'pomVersion' (position: START_TAG seen .../3.0.0 http://maven.apache.org/maven-v3_0_0.xsd">\n <pomVersion>... @30:17)
</snip>
Then it marks the pom.xml in the project inside Eclipse as erroneous and stops resolving the other dependencies, which leads to lots of build errors due to missing imports.
This has worked with the previous version 0.0.9 (the geronimo dependencies did not change) and it works with a normal mvn call on the command line, where it just prints out a warning:
<snip>
[WARNING] POM for 'geronimo-spec:geronimo-spec-javamail:pom:1.3.1-rc3:compile' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[WARNING] POM for 'geronimo-spec:geronimo-spec-jms:pom:1.1-rc4:compile' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
</snip>
Sorry, i cannot provide a test project for reproducing the error. Simply add a reference to geronimo-spec:geronimo-spec-javamail:pom:1.3.1-rc3 or geronimo-spec:geronimo-spec-jms:pom:1.1-rc4 in your pom.
M2Eclipse or the MavenEmbedder should not stop at the Exception but ignore the problem/pom and continue the build.