Hi,
I have a question related to the use of a "company POM". In "Better
builds with Maven" there is a description of how to set up a POM regime
for a company, where we can have say 3 levels of POM's: one companywide
POM, one department wide POM and one projectspecific POM. Lets call
these with the following geoupId "com.mycompany" and Artifact Ids:
Company pom : mycompany
Department pom : mydepartment
Project pom: someproject
The company pom will be something like:
<project>
<modelversion...........>
<groupId>com.mycompany</groupId>
<artifactId>mycomapny</artifactId>
<version>1<version>
.....
</project>
The department pom would initially be something like:
<project>
<modelversion...........>
<parent>
<groupId>com.mycompany</groupId>
<artifactId>mycomapny</artifactId>
<version>1<version>
</parent>
<groupId>com.mycompany</groupId>
<artifactId>mydepartment</artifactId>
<version>1<version>
.....
</project>
....and finally, the project POM would initially be something like
<project>
<modelversion...........>
<parent>
<groupId>com.mycompany</groupId>
<artifactId>mydepartment</artifactId>
<version>1<version>
</parent>
<groupId>com.mycompany</groupId>
<artifactId>someproject</artifactId>
<version>1.0-SNAPSHOT<version>
.....
</project>
Now, what happens if I need to update the company POM ? I will update
it, and set it to version 2. How can I then ensure that all my current
projects will be using the new version of my company POM (available,
offcourse from our company repository) ? Do I have to update the
department pom so that it's parent now becomes v2 of the company POM, or
will Maven use version 1 or whichever is newer of the company POM (ie.
the v2) ?
The same goes for the project POM. I recon if I need to update the
department POM as a result of haveing updated the company POM, I also
need to update the project POM to use version 2 of the department POM ?
Is there no way of saying that I want the latest version of a POM to be
the parent POM ?
Regards
Arne
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]