Its quite simple, you can declare the following in the pom.xml to enforce
a certain version or wild cards on the minor or patch version.
<prerequisites>
<maven>3.0.3</maven>
</prerequisites>
On Wed, Jul 11, 2012 at 8:58 AM, Harsh J <[email protected]> wrote:
> Hey Priya,
>
> Your idea sounds good.
>
> I took a look at
> http://maven.apache.org/plugins/maven-enforcer-plugin/index.html for a
> way to do that, but it seems to me that it requires a hard-version
> string, meaning it needs me to set "3.0" at least, and not just "3".
> That could pose issues to folks as soon as 3.1 or 3.2 arrives in
> future, and we'd have to re-edit pom.xml. Is there a way to get around
> that you're aware of? To make just "3" work?
>
> On Wed, Jul 11, 2012 at 8:48 AM, Priya M <[email protected]>
> wrote:
> > If Maven 3 is mandatory, it would make sense to add it as a pre-requisite
> > in the pom.xml file.
> >
> > On Fri, Jul 6, 2012 at 8:19 AM, Mona Chitnis <[email protected]>
> wrote:
> >
> >> Chris,
> >>
> >> Maven 3 is required. Then you will not see this error. We will update
> this
> >> shortly on the docs.
> >> --
> >> Mona Chitnis
> >>
> >>
> >>
> >>
> >> On 7/5/12 7:27 PM, "Chris White" <[email protected]> wrote:
> >>
> >> >Trying to build 3.2.0 incubating from source and am running into the
> >> >following error when i run mkdistro.sh:
> >> >
> >> >Project 'org.apache.oozie:oozie:hadoop' is duplicated in the reator
> >> >
> >> >I see this is most probably due to the hadoop modules in hadooplibs
> (each
> >> >module has a pom with this group and artifact ID, just a different
> >> >version).
> >> >
> >> >(I'm using Maven 2.2.1 if that makes a difference)
> >> >
> >> >Any suggestions on how to resolve this error
> >> >
> >> >Thanks
> >> >
> >> >Chris
> >>
> >>
>
>
>
> --
> Harsh J
>