Re: Incompatibilities between maven 2.2.1 and 3.0.0-beta-1

2010-05-04 Thread Stephen Connolly
looks like we're stuck walking the tree again (versions-maven-plugin also) On 4 May 2010 19:12, Benjamin Bentmann wrote: > Brian Fox wrote: > > MavenProject.getOriginalModel() for the raw model, i.e. as read from the >>> mere pom.xml. >>> >> >> The current pom only or with inheritence? >> > > T

Re: Incompatibilities between maven 2.2.1 and 3.0.0-beta-1

2010-05-04 Thread Benjamin Bentmann
Brian Fox wrote: MavenProject.getOriginalModel() for the raw model, i.e. as read from the mere pom.xml. The current pom only or with inheritence? The current POM only. Benjamin - To unsubscribe, e-mail: dev-unsubscr...@ma

Re: Incompatibilities between maven 2.2.1 and 3.0.0-beta-1

2010-05-04 Thread Brian Fox
> MavenProject.getOriginalModel() for the raw model, i.e. as read from the > mere pom.xml. The current pom only or with inheritence? The latter would usually be more handy. In the enforcer I would need to get the original poms, but having inheritence baked in would save me from walking the tree an

Re: Incompatibilities between maven 2.2.1 and 3.0.0-beta-1

2010-05-04 Thread Benjamin Bentmann
David Jencks wrote: 1. We were calling org.apache.maven.artifact Artifact; //from dependencyNode.getRelatedArtifact() if not null, otherwise dependencyNode.getArtifact() artifact.getVersionRange().getRecommendedVersion().toString() [...] artifact.getVersionRange() is now null on, apparently, n

Re: Incompatibilities between maven 2.2.1 and 3.0.0-beta-1

2010-05-04 Thread Benjamin Bentmann
David Jencks wrote: 2. Plugin plugin = (Plugin) project.getModel().getBuild().getPluginsAsMap().get("org.apache.geronimo.buildsupport:car-maven-plugin"); plugin.getExecutions() has changed. [...] Now it contains elements for every mojo in the plugin. MavenProject.getModel() is

Incompatibilities between maven 2.2.1 and 3.0.0-beta-1

2010-05-03 Thread David Jencks
I started trying to build geronimo trunk using maven 3 and ran into a couple inconsistencies so far in our maven plugins. I don't know if we were doing something unfortunate before I have no problem changing the geronimo code to something that will work on both mavens 1. We were callin