You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steven Cummings <es...@gmail.com> on 2007/06/20 22:34:11 UTC

Can modules by specified with coordinates instead of a simple name/path?

I would like to be able to have a parent POM that specifies its "child"
modules with coordinates, just like dependencies and parent POMs are
specified.

So instead of

<module>a</module>

where that module must exist as an immediate sub-folder, I could have

<module>
  <artifactId>a</artifactId>
  <groupId>b</groupId>
  <version>1.0</version>
</module>

where the parent and modules can be stored more or less independently and
find each other using maven coordinates. Is this possible? I have seen no
documentation or discussion describing this, so I figure you can't do it. As
always though, I had to ask. Thanks!

-- 
Steven Cummings

RE: Can modules by specified with coordinates instead of a simple name/path?

Posted by Bryan Loofbourrow <br...@islandbeast.com>.
I wouldn't think you could do anything like that. The "coordinates" you
describe tell you where to find something in the repository, but they're no
help finding source code. <module> tells Maven where to find the source code
so it can build the project if necessary. Seems unavoidable that Maven would
need to know that.

-- Bryan

-----Original Message-----
From: Steven Cummings [mailto:estebistec@gmail.com] 
Sent: Wednesday, June 20, 2007 1:34 PM
To: Maven Users List
Subject: Can modules by specified with coordinates instead of a simple
name/path?

I would like to be able to have a parent POM that specifies its "child"
modules with coordinates, just like dependencies and parent POMs are
specified.

So instead of

<module>a</module>

where that module must exist as an immediate sub-folder, I could have

<module>
  <artifactId>a</artifactId>
  <groupId>b</groupId>
  <version>1.0</version>
</module>

where the parent and modules can be stored more or less independently and
find each other using maven coordinates. Is this possible? I have seen no
documentation or discussion describing this, so I figure you can't do it. As
always though, I had to ask. Thanks!

-- 
Steven Cummings


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org