Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-18 Thread eyal edri
Finally it worked ! :) (thanks Alexander!) Summarizing: in order to create an executable JAR file that will depend on other libraries/jars from other internal project or external without including them inside the JAR's project: 1. use maven jar plugin to define the mail class in the manifest: 2.

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Alexander
Question was how make executable jar without including all dependencies in application jar but in separate folder. 2009/11/18 Brian Fox > > http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ > > On Tue, Nov 17, 2009 at 1:12 PM, eyal edri wrote: > > i will, once i get

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Brian Fox
http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ On Tue, Nov 17, 2009 at 1:12 PM, eyal edri wrote: > i will, once i get to work tomorrow :) > > thanks for the help. > > On Tue, Nov 17, 2009 at 8:05 PM, Alexander wrote: > >> Dont be shy, just try it. >> >> 2009/11/17

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread eyal edri
i will, once i get to work tomorrow :) thanks for the help. On Tue, Nov 17, 2009 at 8:05 PM, Alexander wrote: > Dont be shy, just try it. > > 2009/11/17 eyal edri > > > can i use the 'dependency:copy-dependencies< > > > http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Alexander
Dont be shy, just try it. 2009/11/17 eyal edri > can i use the 'dependency:copy-dependencies< > http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html > >' > goal in this project to tell it to copy all it's > dependencies to the "lib" dir? > like shown in here: > > >

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread eyal edri
can i use the 'dependency:copy-dependencies' goal in this project to tell it to copy all it's dependencies to the "lib" dir? like shown in here: org.apache.maven.plugins maven-depend

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Alexander
You could do this without assembly plugin. Just copy all dependencies with maven-dependency-plugin to some folder and than add this folder as classpath prefix in maven-jar-plugin. example for second part maven-jar-plugin

maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread eyal edri
Hi, i'm trying to figure out how can i create a working executable JAR that has dependencies (in-house maven projects plus external lib such as Log4J). I tried using the assembly plugin by creating a "jar-with-dependencies". but this creates a big JAR with all the dependencies included. I want

RE: assembly - how to zip partial distribution

2008-10-31 Thread Stone, Robert
I rephrase my question Is it possible to zip up part of the tree starting at the branch level rather than a top? Thanks, - Bob -Original Message- From: Stone, Robert [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 2:47 PM To: users@maven.apache.org Subject: assembly - how

assembly - how to zip partial distribution

2008-10-30 Thread Stone, Robert
Hi, Pardon newbie question. I have regular Maven2 web project layout. I need to create zip file of everything inside webapp folder + lib directory from another project (in Eclipse it's linked as external folder). When I run my bin.xml descriptor I get src/main/webapp/** file structure, but I r

Assembly: how to include sources of dependencies

2008-06-30 Thread Michael Gruebsch
Hi, I want to build an "baseline distribution" for the sake of taking a snapshot of the current project and its dependencies. This distribution shall include the *-source.jar files of all dependencies as available in the repository. For that purpose I tried various configurations of the maven-a

Re: Assembly - how to

2006-05-10 Thread Pierre Monestie
Hi, So my main problem was: How to assemble a bundle with just the pom.xml given that all the artifacts are uploaded to the repositroy. Following what people suggested I tried 2 things: Have a pom where the packaging is set to pom and try to run assembly. This doesn't seem to work. Make a new po

Re: Assembly - how to

2006-05-09 Thread Pierre Monestie
I tried that but it doesn't work: I tried in the pom: 4.0.0 com.synarc idt_sqa pom ... I don't quite understad why, from a pom mvn doesn't let me rebuild an application. Thanks, Pierre On 5/8/06, dan tran <[EMAIL PROTECTED]> wrote: On 5/8/06, Pierre Monestie <[EMAIL PROTECTED]> wrote: > >

Re: Assembly - how to

2006-05-08 Thread dan tran
On 5/8/06, Pierre Monestie <[EMAIL PROTECTED]> wrote: Hi, I did know about this mini-guide. My problem comes from the fact that I want to be able to rebuild an assembly:directory even if I don't have the source code. I'm kind of looking for a way to build my application out of a single pom.xml

Re: Assembly - how to

2006-05-08 Thread Edwin Punzalan
I think this is possible. A pom.xml would only have dependencies declared and no actual sources. So running the assembly will give you the dependencies. What version of assembly are you using? Pierre Monestie wrote: Hi, I did know about this mini-guide. My problem comes from the fact tha

Re: Assembly - how to

2006-05-08 Thread Pierre Monestie
Hi, I did know about this mini-guide. My problem comes from the fact that I want to be able to rebuild an assembly:directory even if I don't have the source code. I'm kind of looking for a way to build my application out of a single pom.xml given that I have uploaded all necessary artifacts to my

Re: Assembly - how to

2006-05-08 Thread Edwin Punzalan
Hi. Have you seen this page: http://maven.apache.org/guides/mini/guide-assemblies.html The WARNING you saw maybe due to the assembly not having anything to put into the jar. A correct assembly file would have at lease one or one Pierre Monestie wrote: Hello, I got 2 problems with the

Assembly - how to

2006-05-08 Thread Pierre Monestie
Hello, I got 2 problems with the assembly plugin and was wondering if you guys could help me out: 1st: From an empty directory I try to assemble my application out of the pom.xml and an application.xml file. I've previously uploaded to my repository all the artifacts necessary to bundle my applic