On 12/12/2011 11:28 AM, Amit Bhargava wrote:
Hi folks,
I'm a bit new to Maven. I have some existing modules. One of them is a
'common' module which has utilities used by the other modules. how do I set
up a build to package all the modules together? I tried finding a way to add
the 'common' jar to the local repository immediately after creating it but
no luck. Thanks for all your help
Common module is a project by itself which you build and package in a
jar with a GAV and publish to your repo (Nexus or other) with "deploy".
In the other modules, you reference common as a dependency using its GAV
as the identifier.
Maven will do the rest.
You can also use a local repo as a start with "install" but you want to
get a real repo as soon as you can.
Ron
--
View this message in context:
http://maven.40175.n5.nabble.com/Building-2-dependent-modules-tp5068822p5068822.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]