You can hack it by creating 3 virtual projects: client, server, util
(3 different pom.xmls) that all use the same src dir but with <excludes>
and <includes>.
It's described somewhere in the mini guides (I can't remember which one).
/src/java (all sources)
/pom.xml (multiproject)
/client/pom.xml
/server/pom.xml
/util/pom.xml
Still, you'll probably have problems with your .project/.classpath
generated for eclipse etc.
With kind regards,
Geoffrey De Smet
sol myr wrote:
Hi,
Newbie question:
Is it possible to generate several artifacts (jars) from the same project ?
I have a single project (single POM, with no sub-projects). I'd like to make it so that when I call 'mvn
package', it will create 3 different jars (say, "client.jar", "server.jar", and
"util.jar"), and place them all under 'target'.
I *know* this goes agains the recommendations & phylosophy of Maven2...
But we really must limit ourselves to a single POM, due to limitations of my company's IDE and version control.
Thanks.
---------------------------------
Blab-away for as little as 1ยข/min. Make PC-to-Phone Calls using Yahoo!
Messenger with Voice.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]