Take a look at the enforcer plugin and the enforcemavenversion rule --mobile
On Dec 6, 2010, at 3:21 PM, Peter Niederwieser <[email protected]> wrote: > Because my plugin (spock-maven) doesn't work with Maven 3, I'd like to fail > the build if it used with Maven 3. (Otherwise it will be very hard for users > to find out the cause of the effect they are seeing.) How can I detect which > Maven version my plugin gets run with? Can't find any information on this. > > Cheers, > Peter > > PS: I'm posting to dev because I didn't get any replies on the user list. > > ---------------------------------------------------------------- > Peter Niederwieser > Creator, http://spockframework.org > Committer, http://groovy.codehaus.org > Blogger, http://pniederw.wordpress.com > Chief Engineer, http://smarter-ecommerce.com > [email protected] > Twitter: pniederw > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
