You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jo Support <jo...@gmail.com> on 2012/02/09 13:02:05 UTC
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
AW: Aggregating projects with pom packaging type
Posted by Christian Schlichtherle <ch...@schlichtherle.de>.
Hi,
it is possible (I use it), but AFAIK your version number is not valid, so
maybe this is why it's not working as expected?!
Regards,
Christian Schlichtherle
> -----Ursprüngliche Nachricht-----
> Von: Jo Support [mailto:jo.support@gmail.com]
> Gesendet: Donnerstag, 9. Februar 2012 13:02
> An: Maven Users List
> Betreff: 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
RE: Aggregating projects with pom packaging type
Posted by Papiež Vítězslav <Vi...@autocont.cz>.
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