You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rebholz Paul <Pa...@six-group.com> on 2009/10/22 13:42:03 UTC

maven 2.2.1: is there an inherent pom?

hello maven users

these days I was trying to figure out if maven 2.2.1 comes with a
version-fixed set of plugins, i.e. if there is an inherent pom which
fixes this.

We are building our SW with maven and want to make sure that using maven
2.2.1 yields the same results right now as it would in the future, in
other words, is there a guarantee that - out of the box - no newer
plugin versions are used in the future?

Is there someone out there who can confirm this?

Regards, Paul 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. 
The sender's company reserves the right to monitor all e-mail communications through their networks.

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


Re: maven 2.2.1: is there an inherent pom?

Posted by Nick Stolwijk <ni...@gmail.com>.
Yes, there is a superpom in Maven, which only changes between Maven
versions. In there are all the plugins Maven binds by default to its various
lifecycles and packagings.

If you want to make sure you can control your build, create a company pom
and use the enforcer to ensure the maven version and plugin versions.

[1] http://www.sonatype.com/people/2008/04/maven-209-released/
[2] http://maven.apache.org/plugins/maven-enforcer-plugin/

Hth,
Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl


On Thu, Oct 22, 2009 at 1:42 PM, Rebholz Paul <Pa...@six-group.com>wrote:

> hello maven users
>
> these days I was trying to figure out if maven 2.2.1 comes with a
> version-fixed set of plugins, i.e. if there is an inherent pom which
> fixes this.
>
> We are building our SW with maven and want to make sure that using maven
> 2.2.1 yields the same results right now as it would in the future, in
> other words, is there a guarantee that - out of the box - no newer
> plugin versions are used in the future?
>
> Is there someone out there who can confirm this?
>
> Regards, Paul
>
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. If you receive
> this message in error, please notify the sender urgently and then
> immediately delete the message and any copies of it from your system. Please
> also immediately destroy any hardcopies of the message.
> The sender's company reserves the right to monitor all e-mail
> communications through their networks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: maven 2.2.1: is there an inherent pom?

Posted by Anders Hammar <an...@hammar.net>.
Since Maven 2.0.9 (I believe) Maven comes with fixed version for some
plugins. This is done through a pluginManagement section in the super POM.
Thus, you can change these values by overriding them in your pom. However,
this is by no means a complete set and only includes the common ones. You
can have a look yourself if you check out the file pom-4.0.0.xml which can
be found in Maven's über jar (maven-2.2.1-uber.jar for Maven 2.2.1) in teh
Maven distro.
Best practise is still to do this in pluginManagement in your project (in
some parent pom)! One reasons is that the set in the super pom is not
complete. Another is that changing Maven version will otherwise also change
some plugin versions.

/Anders

On Thu, Oct 22, 2009 at 13:42, Rebholz Paul <Pa...@six-group.com>wrote:

> hello maven users
>
> these days I was trying to figure out if maven 2.2.1 comes with a
> version-fixed set of plugins, i.e. if there is an inherent pom which
> fixes this.
>
> We are building our SW with maven and want to make sure that using maven
> 2.2.1 yields the same results right now as it would in the future, in
> other words, is there a guarantee that - out of the box - no newer
> plugin versions are used in the future?
>
> Is there someone out there who can confirm this?
>
> Regards, Paul
>
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. If you receive
> this message in error, please notify the sender urgently and then
> immediately delete the message and any copies of it from your system. Please
> also immediately destroy any hardcopies of the message.
> The sender's company reserves the right to monitor all e-mail
> communications through their networks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: maven 2.2.1: is there an inherent pom?

Posted by Rebholz Paul <Pa...@six-group.com>.
thanks a lot for your help, Nick, Martin and Anders.

I'll check this out in detail and come back should I be stuck again.

Cheers, Paul 

-----Original Message-----
From: Nick Stolwijk [mailto:nick.stolwijk@gmail.com] 
Sent: Donnerstag, 22. Oktober 2009 15:34
To: Maven Users List
Subject: Re: maven 2.2.1: is there an inherent pom?

> <version>2.2.1</version>

Using this config you ensure that your maven version is at least 2.2.1,
so
newer versions with newer plugin versions will still be allowed. If you
really want to build only with 2.2.1 you are looking for [2.2.1].

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl


On Thu, Oct 22, 2009 at 3:31 PM, Martin Gainty <mg...@hotmail.com>
wrote:

> <version>2.2.1</version>
> 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. 
The sender's company reserves the right to monitor all e-mail communications through their networks.

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


Re: maven 2.2.1: is there an inherent pom?

Posted by Nick Stolwijk <ni...@gmail.com>.
> <version>2.2.1</version>

Using this config you ensure that your maven version is at least 2.2.1, so
newer versions with newer plugin versions will still be allowed. If you
really want to build only with 2.2.1 you are looking for [2.2.1].

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl


On Thu, Oct 22, 2009 at 3:31 PM, Martin Gainty <mg...@hotmail.com> wrote:

> <version>2.2.1</version>
>