Alexander,

To speak about workarounds we need to understand what the problem is. Please fill a JIRA issue for this and attach Eclipse project that would allow to reproduce this issue. Thanks.

 Eugene


Alexander Klimetschek wrote:
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>

Any workaround possible? I currently have to turn off m2eclipse and go with "mvn eclipse:eclipse" on the cli.

Alex


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to