Thats the standard way. Why is this tricky? Maybe I explained to complicated.

You have a parent pom (where you place it is rather irrelevant):

<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>#a groupt for the parent pom</groupId>
        <artifactId># an artifact id for the parent pom</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <packaging>pom</packaging>
        <name>Global parent pom</name>
        ...
        dependencies
        build definitions
        profiles
        plugins
        distribution definitions...
</project>

This is the way how maven works with configuring global configurations. You can 
create very precise configuration hierarchies for all your projects. Look at 
the apache and codehaus projects, they show how this can be done very 
efficently.

--
christian domsch
[software developer]

 

innoWake gmbh
innovative.software.development();
graf-arco-strasse 18 | 89079 ulm-donautal
fon: +49 (0)7 31 - 5 50 27 - 0
fax: +49 (0)7 31 - 5 50 27 - 20
[EMAIL PROTECTED]
www.innowake.de


innoWake gmbh hrb ulm 4584
geschäftsführer: thorsten bernecker

This e-mail may contain confidential information. If you are not the intended 
recipient please notify the sender immediately and destroy this e-mail.
-----Ursprüngliche Nachricht-----
Von: 陈思淼 [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 12. September 2008 10:32
An: Maven Users List
Betreff: Re: How to define a parent POM in a company wide.

that's a tricky way to solve this problem, does maven provide some mechanism to 
do this?

2008/9/12 christian domsch (innoWake gmbh) <[EMAIL PROTECTED]>

> Hi,
>
> This is done by creating a POM-Project. You just create a normal 
> project with just a pom in it. The type here is pom and there you 
> configurate all your stuff, installed (or deploy) it in the repository 
> and now you can use it as a parent pom.
>
>
> --
> christian domsch
> [software developer]
>
>
>
> innoWake gmbh
> innovative.software.development();
> graf-arco-strasse 18 | 89079 ulm-donautal
> fon: +49 (0)7 31 - 5 50 27 - 0
> fax: +49 (0)7 31 - 5 50 27 - 20
> [EMAIL PROTECTED]
> www.innowake.de
>
>
> innoWake gmbh hrb ulm 4584
> geschäftsführer: thorsten bernecker
>
> This e-mail may contain confidential information. If you are not the 
> intended recipient please notify the sender immediately and destroy 
> this e-mail.
> -----Ursprüngliche Nachricht-----
> Von: 陈思淼 [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 12. September 2008 10:16
> An: [email protected]
> Betreff: How to define a parent POM in a company wide.
>
> we use Maven in our company, but there are some plugin config like 
> source plugin ,compile plugin we'd like to define for everyone, there 
> is a Super POM concept in Maven , can anybody tell me how to config it?
>

Reply via email to