Re: Usage of Enforcer Plugin 1.1-SNAPSHOT

2011-11-10 Thread Abid Hussain
Thanks. We fixed the problem by locking down the version number of enforcer 
plugin. We're using maven 2.2.1.

But still I wonder about the behaviour when no version number has been 
specified...
How are the version numbers determined by maven?

How can it happen that maven uses a snapshot version as it is a maven 
convention that snapshot projects are at a development stage?

Regards,

Abid

> On Thu, Nov 10, 2011 at 8:42 PM, Guo Du  wrote:
> >> I wonder why maven uses a SNAPSHOT version of the plugin?
> > Which maven version you use?
> >
> > A build log will helps to understand your problem.
> 
> And best practice is to lock down the version numbers, which
> ironically enforcer will tell you to do.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Usage of Enforcer Plugin 1.1-SNAPSHOT

2011-11-10 Thread Barrie Treloar
On Thu, Nov 10, 2011 at 8:42 PM, Guo Du  wrote:
>> I wonder why maven uses a SNAPSHOT version of the plugin?
> Which maven version you use?
>
> A build log will helps to understand your problem.

And best practice is to lock down the version numbers, which
ironically enforcer will tell you to do.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Usage of Enforcer Plugin 1.1-SNAPSHOT

2011-11-10 Thread Guo Du
> I wonder why maven uses a SNAPSHOT version of the plugin?
Which maven version you use?

A build log will helps to understand your problem.

-Guo

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Usage of Enforcer Plugin 1.1-SNAPSHOT

2011-11-10 Thread Abid Hussain
Hi,

we have problems with maven using a "wrong" version of enforcer plugin.

In the project's pom the enforcer plugin is specified like this:

  
org.apache.maven.plugins
maven-enforcer-plugin

  
enforce-versions

  enforce


  

  

  


As you can see, no version number of the plugin is declared nor is it in any 
parent pom of this project.

Building the project fails as maven tries to use the 1.1-SNAPSHOT version of 
enforcer plugin which doesn't exisit in our repository. Most recent version in 
maven central is currently 1.0.1.

I wonder why maven uses a SNAPSHOT version of the plugin?

And furthermore, how does maven determine the version number of a 
plugin/dependency when no version number is specified?

Regards,

Abid
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org