On 11/12/2007, Elvy <[EMAIL PROTECTED]> wrote:
>
>
> I indeed have the apache snapshot repo listed as a plugin repo.
>
> Is there a way to explicitly tell maven to use the latest non-snapshot
> surefire version?


yes, just put something like:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.3</version>
      </plugin>

in the <build><plugins> or <build><pluginManagement><plugins> part of the
POM

you can also use the enforcer plugin to lock down versions:


http://maven.apache.org/plugins/maven-enforcer-plugin/rules/requirePluginVersions.html

(this plugin also lets you lock down other settings to ensure reproducible
builds)

> correct, this is an issue with the maven-surefire-plugin - for some reason
> > you seem to be picking up a snapshot of this plugin, are you referencing
> > this in your POM, or do you have the apache snapshot repository listed
> as
> > a plugin repository?
> >
> > ( the apache snapshot repo is
> > http://people.apache.org/repo/m2-snapshot-repository )
> >
> > adding the apache snapshot repository as a plugin repository is not
> > recommended, as it ends up pulling in snapshots of maven plugins - if
> you
> > just want the 1.1.0-SNAPSHOT version of the bundle plugin you can use
> the
> > OPS4J snapshot repository:
> >
> >     <pluginRepository>
> >       <id>ops4j-snapshots</id>
> >       <url>http://repository.ops4j.org/mvn-snapshots</url>
> >       <releases>
> >         <enabled>false</enabled>
> >       </releases>
> >     </pluginRepository>
> >
> > you could try using "mvn help:effective-pom" to show the combined POM
> that
> > Maven sees after it's combined it with the parent POM, etc. - or use
> "mvn
> > -X install" to trace where the surefire plugin snapshot is pulled in
> > from...
> >
>
> -----
> Tell me something you don't know!
> --
> View this message in context:
> http://www.nabble.com/what-about-plexus-utils-1.4.9-SNAPSHOT--tp14273678p14276111.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cheers, Stuart

Reply via email to