Hi all,

I have a number of different projects with some common libraries (who hasn't 
;)).  I am evolving away from the multi-project build (which is working very 
well actually) simply because we want to enforce versioning between these 
projects.  Assume I have the following:

 - libA
 - libB
 - projectAWar
 - projectAUtility

Note: that the dependencies go upwards so projectAUtility depends on 
projectAWar (or rather the JAR from projectAWar) depends on libB depends on 
libA.  To repeat, projectAWar does *not* depend on projectAUtility.

Given that each of these are defined as separate projects I have to define the 
dependencies just like any external library right?  If that is true then I 
assume I must publish each dependant module into a maven repository.  I have 
this working (copied from the documentation), but there are a few questions:

 - how can I easily create and publish the source JAR (including the relevant 
bit in the pom descriptor?)
 - for publishing multiple artifacts (i.e. for the JAR and WAR file from the 
WAR projects) I need to define a filter - has anyone got a simple example of 
this?

At this point a 
'web-app-generating-jar-and-sources-and-publishing-to-local-repo' sample would 
be great! :)

How else can this be achieved?

Many thanks,

Col


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to