RE: [Clirr-devel] maven plugin
Status: Alpha
Brought to you by:
lkuehne
From: Vincent M. <vma...@pi...> - 2004-07-06 07:10:13
|
> -----Original Message----- > From: cli...@li... [mailto:clirr-devel- > ad...@li...] On Behalf Of Lars K=FChne > Sent: lundi 5 juillet 2004 19:22 > To: cli...@li... > Subject: Re: [Clirr-devel] maven plugin >=20 [snip] >=20 > I mean toplevel modules in a Maven multiproject setup. This is = basically > the toplevel directory structure when you CVS-checkout clirr. Each > module (core and maven) have a toplevel project.xml. >=20 > Basically the multiproject plugin will search for subdirectories with > project.xml files, cd into each of those, and build it (plus I think = it > will also build a couple of other things, like a wrapper website). >=20 > Most of the current content of the root directory will be moved into = the > 'core' module/subdir, Vincent will fill the maven module. >=20 > If I understand things correctly, the multiproject plugin is _the_ way > to make Maven build multiple artifacts (jars) in one combined build. Not quite. The Maven multiproject plugin does 2 things: - it can call a given maven goal on a set of subprojects - it can generate automatically a wrapper website for all subprojects - it can generate a dependency convergence report (i.e. it lists all dependencies - For example http://jakarta.apache.org/turbine/turbine-2.4/dependency-convergence-repo= rt. html). [snip] > Yes, that is the basic java package structure. The core multiproject > module (Vincent, please correct my terminology if necessary)=20 There are 2 things: - plugins. They offer all the goals you can call (the goals listed when = you type "maven -g") - projects. They are directories with a project.xml file and possibly a maven.xml (for custom build code) and a project.properties = (configuration of the Maven plugins) > will > contain the above three Java top-level packages. Because each module It's called a "project" :-) > corresponds to one jar, this will lead to a combined jar that is easy = to > use, just like what we have now. You'll need to use the Maven uberjar plugin for this (the multiproject = has nothing to do with this). See http://maven.apache.org/reference/plugins/uberjar/ -Vincent |