Talk:Maven
From APIDesign
(Comment provided by mkleint - via ArticleComments extension) |
(Comment provided by nick - via ArticleComments extension) |
||
Line 44: | Line 44: | ||
--[http://www.sonatype.com/books/maven-book/reference/ mkleint] 07:45, 14 September 2009 (CEST) | --[http://www.sonatype.com/books/maven-book/reference/ mkleint] 07:45, 14 September 2009 (CEST) | ||
+ | </div> | ||
+ | == nick said ... == | ||
+ | |||
+ | <div class='commentBlock'> | ||
+ | What you want to look at is the assembly plugin. While I don't think it will give you a zip file, it will let you pack everything into a JAR and for a executable JAR that can be downloaded. It handles extracting all your dependencies and putting them in place. | ||
+ | |||
+ | Looking for something like this: | ||
+ | <artifactId>maven-assembly-plugin</artifactId> | ||
+ | <configuration> | ||
+ | <descriptorRefs> | ||
+ | <descriptorRef>jar-with-dependencies</descriptorRef> | ||
+ | </descriptorRefs> | ||
+ | .... | ||
+ | |||
+ | Hope this helps! | ||
+ | |||
+ | --nick 15:16, 14 September 2009 (CEST) | ||
</div> | </div> |
Revision as of 13:16, 14 September 2009
Comments on Maven <comments />
Contents |
Dimiter Makariev said ...
Anuradha said ...
did you try out Maven Assembly Plugin
http://maven.apache.org/plugins/maven-assembly-plugin/
--Anuradha 04:43, 14 September 2009 (CEST)
btilford said ...
You probably want to look at maven assemblies and the maven book. http://www.sonatype.com/books/maven-book/reference/assemblies.html
--btilford 05:35, 14 September 2009 (CEST)
mkleint said ...
your time would probably be better spent by reading the Maven book to learn about Maven than writing this blog entry..
--mkleint 07:45, 14 September 2009 (CEST)
nick said ...
What you want to look at is the assembly plugin. While I don't think it will give you a zip file, it will let you pack everything into a JAR and for a executable JAR that can be downloaded. It handles extracting all your dependencies and putting them in place.
Looking for something like this: <artifactId>maven-assembly-plugin</artifactId>
<configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs>
....
Hope this helps!
--nick 15:16, 14 September 2009 (CEST)
Hi, probably a good idea is to try the maven assembly plugin : http://maven.apache.org/plugins/maven-assembly-plugin/features.html also take a look at : http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html Better Builds with Maven is great book : http://www.maestrodev.com/better-build-maven and last but not least : you can always go back to ant with the Maven ant plugin : http://maven.apache.org/plugins/maven-antrun-plugin/
I'm coming from the web development world .. so for a pity I cannot comment on the question about is maven ready for java desktop applications.
Wish you luck with Maven :)
--Dimiter Makariev 02:13, 14 September 2009 (CEST)