You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Zaza, Dominic [CIB-IT]" <do...@citigroup.com> on 2006/09/11 18:45:53 UTC

Executable binary assembly in multi module project

I have a multi module project
 
i.e.
-top-level
  + client
  + server
  + model
  + api
  + common
  pom.xml
 
I wish to create an executable binary assembly for the server such that
I can run java -jar server.jar
 
I've added a configuration to the maven-jar-plugin to specify manifest mainClass , addClasspath, and classpathPrefix.
That works fine.
Now, I need to assemble the server code with all of its dependencies in one jar.
 
1.)  I've tried, at the parent pom.xml, to specify moduleSet to the assembly plugin for my server.
    Although I did generate a jar, I'm not able to specify scope to remove my test dependencies.
    Additionally, this is not my desired output since my server jar in bundled so the manifest file is one level too deep.
 
2.) I've tried to specify an assembly configuration at server/pom.xml file, however, when I'm in reactor mode, the assembly plugin
 doesn't find my descriptor file.
 
Help. Any suggestions on how to achieve this ?
 
Thanks in advance,
 Dominic
 
 
 

Re: Executable binary assembly in multi module project

Posted by Barrie Treloar <ba...@gmail.com>.
> Help. Any suggestions on how to achieve this ?

Yes, search the archives.
I've posted on this numerous times.

Admittedly it is on the second page of results for "assembly and binary".
See http://www.nabble.com/forum/ViewPost.jtp?post=5936062&framed=y

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org