create one more module to be built last, and use maven-assembly-plugin to
combine all other jars into one

-Dan


On 5/31/06, Hendrik Busch <[EMAIL PROTECTED]> wrote:

Hi,

I am currently trying to figure out how to package a multimodule-project
into a single jar file. My layout looks like this:

toolbox/
|-- toolbox-ant
|-- toolbox-codecs
|-- toolbox-collections
|-- toolbox-common
|-- toolbox-comparator
|-- toolbox-converter
|-- toolbox-database
|-- toolbox-entities
|-- toolbox-exceptions
|-- toolbox-graphic
|-- toolbox-i18n
|-- toolbox-io
|-- toolbox-jmx
|-- toolbox-ldap
|-- toolbox-localization
|-- toolbox-reflection
|-- toolbox-swing
|-- toolbox-time
|-- toolbox-transaction
`-- toolbox-xml

Each module has its own POM, and there is a "meta-pom" in the top-level
directory. When I execute "mvn package", every module is built and
packaged in the appropriate target directory.

For legacy reasons (we only have some projects using Maven while the
rest is using Ant) I need a JAR with the contents of all modules. I'm
pretty sure that Maven 2.0 and 2.0.2 generated this jar (e.g.
toolbox-0.1.jar), but after upgrading to 2.0.4, this file is no longer
generated.

I tried using the assembly plugin, but as these settings are inherited
to all modules, I get assemblies of each of the modules but not the top
project.

Any help would be appreciated.

Thx!

--
Mit freundlichen Grüßen / Kind regards

Hendrik Busch - Stellv. Leiter der Softwareentwicklung

LexisNexis Deutschland GmbH
http://www.lexisnexis.de
Feldstiege 100
D-48161 Münster
phone +49 (0) 2533-9300-455
fax +49 (0) 02533-9300-50
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to