I think it is modelVersion now insteadof "pomVersion" at least for the
latest Maven POM format.  I start my pom.xml file like so:

C:\something>more pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.somecompany</groupId>
  <artifactId>something</artifactId>
  <packaging>war</packaging>
  ...etc...
</project>

How does your pom.xml file begin?  I wonder if this is a problem with the
embedder having issues with older pom formats or if you have a previously
un-noticed typing error.

Regards,
David

-----Original Message-----
From: Alexander Klimetschek
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 26, 2007 7:41 AM
To: [email protected]
Subject: [m2eclipse-user] Build fails with dependency on project with
Maven 1.0 pom [new in 0.0.10]


Hi,

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