Re: Looking for a simple maven assembly example

2006-11-07 Thread Edwin Punzalan


Please see:

http://people.apache.org/~epunzalan/maven-assembly-plugin/


Christian Goetze wrote:
I've read the better builds with maven book, I've looked at 
http://maven.apache.org/plugins/maven-assembly-plugin, but I'm still 
not sure I understand how this is supposed to work.


I just want end up with a zip file containing all of the jars needed 
to run the particular project I'm building.


Alternatively, I'd already be happy with a way to just get the 
transitive runtime dependency list out of the build.


Any help would be appreciated, thanks in advance.
--
cg

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



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



Re Looking for a simple maven assembly example

2006-11-07 Thread Christian Goetze




Thanks, but it only ends up with the one jar in the project. How do I 
get it to include all jars needed to run, as expressed in the 
dependencies?

--
cg


Oops, sorry, the other nice person who answered has the clue...

Thanks again!
--
cg

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



Re: Looking for a simple maven assembly example

2006-11-07 Thread Christian Goetze

Dirk Starke wrote:


Hello Christian,

I am just starting to use Maven 2, also had some problems to figure this
out, and perhaps I can help you. In my little project I created two
files in the src/main/assembly directory of my project.

 

Thanks, but it only ends up with the one jar in the project. How do I 
get it to include all jars needed to run, as expressed in the dependencies?

--
cg

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



Re: Looking for a simple maven assembly example

2006-11-07 Thread Dirk Starke
Hello Christian,

I am just starting to use Maven 2, also had some problems to figure this
out, and perhaps I can help you. In my little project I created two
files in the src/main/assembly directory of my project.

The bin.xml looks like:



  bin
  
tar.gz
zip
  
  

  
LICENSE*
  


  target
  
  
*.jar
  

  




The src.xml looks like:



  src
  
tar.gz
zip
  
  

  
LICENSE*
pom.xml
  


  src

  


I am not sure whether it works as intended, but you get the point, I think.

I configured the assembly plugin as follows:

  
maven-assembly-plugin

  
assembly
package

  assembly


  

  src/main/assembly/bin.xml


  src/main/assembly/src.xml

  

  

  

That at least creates some files...

Regards,
Dirk


Christian Goetze wrote:
> I've read the better builds with maven book, I've looked at
> http://maven.apache.org/plugins/maven-assembly-plugin, but I'm still
> not sure I understand how this is supposed to work.
>
> I just want end up with a zip file containing all of the jars needed
> to run the particular project I'm building.
>
> Alternatively, I'd already be happy with a way to just get the
> transitive runtime dependency list out of the build.
>
> Any help would be appreciated, thanks in advance.
> -- 
> cg
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: Looking for a simple maven assembly example

2006-11-07 Thread Craig McClanahan

On 11/7/06, Christian Goetze <[EMAIL PROTECTED]> wrote:


I've read the better builds with maven book, I've looked at
http://maven.apache.org/plugins/maven-assembly-plugin, but I'm still not
sure I understand how this is supposed to work.

I just want end up with a zip file containing all of the jars needed to
run the particular project I'm building.

Alternatively, I'd already be happy with a way to just get the
transitive runtime dependency list out of the build.

Any help would be appreciated, thanks in advance.
--
cg



It doesn't reallly qualify as "simple", but here[1] is the assembly
configuration we use for Shale to build release artifacts.  It includes the
created libraries, all the dependent libraries, javadocs, and source code
for a bunch of different submodules (this descriptor is from a "shale-dist"
module that is one level below the top level project directory, hence all of
the ".." relative paths.

The part that picks up all of the dependent libraries (i.e. those with scope
"runtime"), and puts them in the "lib" directory of the output:

   
   
   lib
   runtime
   
   


Craig

[1]
http://svn.apache.org/repos/asf/shale/framework/trunk/shale-dist/src/assemble/dist.xml