I'd say the Maven way is to keep this info/data in a corp parent. For
instance, have a look how this is done at Apache:
http://repo1.maven.org/maven2/org/apache/apache/6/apache-6.pom
As you can see, some values are handled by properties which make them
customizable by projects using this parent.

You should never, never change the info in a released artifact (a corp
parent pom for instance). Instead, increment the version and do the
necessary changes. I see this as an advantage and not a disadvantage.

If you want to make sure that all projects are using the latest and greatest
corp parent, that should be possible to enforce by an appropriate rule and
the enforcer plugin.

/Anders

On Thu, Dec 10, 2009 at 08:34, Oskar Carlstedt <oskar.carlst...@gmail.com>wrote:

>
> Hello?
>
> I wonder if there is any pattern in Maven defining how to setup common
> organization specific data. What I mean is that I only want to define my
> distribution management in one place, I only want to setup specific deploy
> paths in one place etc., etc.
>
> One way is to define a lot of properties in a settings.xml - but then the
> user has to define all these properties himself. When properties are
> changing, then we have a mess. Even worse, there is no version tracking of
> properties using this solution.  That is not good enough.
>
> One other way would be to use a global parent. Going that way it is
> possible
> to inherit all common data. But the disadvantage is that I cannot change
> the
> values without updating the same version of the parent in the repository
> (because Maven does not manage to resolve version ranges for the parent
> pom).
>
> So, is there any other suggestions? Can I import the data using version
> scopes. I like to be able to define exact versions of what I include in my
> builds but when it comes to build/deploy specific data, then I would like
> to
> be able to change this for all users in one place.
>
> Any advice to solve this problem is really appreciated!
> Cheers,
> Oskar
>
>
> --
> View this message in context:
> http://old.nabble.com/Pattern-to-setup-common-organization-specific-data-in-single-pom--tp26723137p26723137.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to