Hi
I have similar project structure. It works fine for me. One diference is parent written in
modules. To be more specific here is an example.
Aggregation:
[...]
<groupId>org.myName</groupId>
<artifactId>myProjectGlobal</artifactId>
<version>trunk</version>
<packaging>pom</packaging>
<modules>
<module>myProjectA</module>
<module>myProjectB</module>
</modules>
Pom A:
[...]
<parent>
<groupId>org.myName</groupId>
<artifactId>myProjectGlobal</artifactId>
<version>trunk</version>
</parent>
<artifactId>myProjectA</artifactId>
<packaging>pom</packaging>
[...]
Good luck
V*
"Whatsamatter, kid? Can't remember how to spell 'main'? Real hackers use Notepad!" (Just kidding.
They used Vi.)
-----Original Message-----
From: Jo Support [mailto:jo.support@gmail.com]
Sent: Thursday, February 09, 2012 1:03 PM
To: Maven Users List
Subject: Aggregating projects with pom packaging type
Hello,
is it possible to aggregate projects that have pom packaging type?
Scenario:
Pom A:
[...]
<groupId>org.myName</groupId>
<artifactId>myProjectA</artifactId>
<version>trunk</version>
<packaging>pom</packaging>
[...]
Pom B:
[...]
<groupId>org.myName</groupId>
<artifactId>myProjectB</artifactId>
<version>trunk</version>
<packaging>pom</packaging>
[...]
Aggregation:
[...]
<groupId>org.myName</groupId>
<artifactId>myProjectGlobal</artifactId>
<version>trunk</version>
<packaging>pom</packaging>
<modules>
<module>myProjectA</module>
<module>myProjectB</module>
</modules>
[...]
when I try to mavenize the aggregation pom, it looks like Maven ignores local ProjectA and
ProjectB poms, and tries to download them from the remote repository.
If I change the packaging type of A and B from "pom" to "jar", all works fine.
Any suggestion?
Thanks a lot,
best regards
Jo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
|