Talk:Maven

From APIDesign

(Difference between revisions)
Jump to: navigation, search
(Comment provided by hohonuuli - via ArticleComments extension)
(Comment provided by Sgt Garcia - via ArticleComments extension)
Line 75: Line 75:
--hohonuuli 18:52, 14 September 2009 (CEST)
--hohonuuli 18:52, 14 September 2009 (CEST)
 +
</div>
 +
== Sgt Garcia said ... ==
 +
 +
<div class='commentBlock'>
 +
I am using Maven Assembly Plugin with success to gather everything I to run a Desktop App: Start Script files (.bat, .sh, .jnlp...), Main .jar, Libraries .jars, Config files (.properties)...
 +
 +
--Sgt Garcia 18:57, 14 September 2009 (CEST)
</div>
</div>

Revision as of 16:57, 14 September 2009

Comments on Maven <comments />


Contents

Dimiter Makariev said ...

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)

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)

Chris said ...

Check out the assembly plugin

--Chris 16:50, 14 September 2009 (CEST)

hohonuuli said ...

Maven does support packaging of compound zips. See http://maven.apache.org/plugins/maven-assembly-plugin/

--hohonuuli 18:52, 14 September 2009 (CEST)

Sgt Garcia said ...

I am using Maven Assembly Plugin with success to gather everything I to run a Desktop App: Start Script files (.bat, .sh, .jnlp...), Main .jar, Libraries .jars, Config files (.properties)...

--Sgt Garcia 18:57, 14 September 2009 (CEST)

Personal tools
buy