Hi Sebastian,

Sebastian Krebs wrote on Thursday, October 12, 2006 9:22 AM:

> Hello,
> 
> I've got the following question.
> I want to create a companywide Parent-pom.xml with all of those
> parameters and settings I will need in each project.
> 
> e.g.:
> <distributionManagement>
>       <repository>
>       ...
>       </repository>
> </distributionManagement>
> 
> How can I inherit from my CompanyPOM?

just as normal. Create a parent secion in each project's POM and inherit from 
the company parent. But be aware of the drawback for your use case. To release 
anything you must now refer a released company POM. This means you cannot 
change any longer the address of the repo, since a released version of your 
artifact will now always refer the old repo location and you cannot repeat the 
build.

We use the global company POM for predefined settings of plugins in the 
pluginManagement section and version consistency in the dependencyManagement 
secion, but no longerr for the repos.

_ jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to