Re: dependency:list and dependency:build-classpath produce a different version for SNAPSHOTS

2012-10-19 Thread Robert Scholte
Hi, I've done an equivalent fix for copy-dependencies last week, so I'll do the same for build-classpath. Please check https://jira.codehaus.org/browse/MDEP-384 -Robert Op Fri, 19 Oct 2012 16:20:58 +0200 schreef Davide Silvestre : Hi, I am using version 2.5.1 of the maven-dependency-plu

dependency:list and dependency:build-classpath produce a different version for SNAPSHOTS

2012-10-19 Thread Davide Silvestre
Hi, I am using version 2.5.1 of the maven-dependency-plugin. My project is buiding a zip file containing a set of dependency jars and i am also generating 2 files containing the classpath (generated using dependency:build-classpath) and the list of jars (generated using dependency:list). Unfortu

Re: Maven and special building behaviour

2012-10-19 Thread Ron Wheeler
Maven can do damn near anything. That does not mean that it should. The first advice was right. Split MyJar to remove the classes to make a MyJar-common of all the classes that you always want. Make MyJar-common a dependency of a smaller MyJar that only has the 3 classes. Make your other jars d

Re: Maven and special building behaviour

2012-10-19 Thread kenduron
Am 19.10.2012 14:32, schrieb Thomas Sundberg: On 19 October 2012 10:15, kenduron wrote: Hello, perhaps you can help me. I got a WAR (web archive) which is built with maven. It works perfectly. mvn clean package install But from now on, I need to create and additional special version of this

Re: Maven pom.xml ?

2012-10-19 Thread Ron Wheeler
You probably should take a few minutes and read the first few chapters of one of the Maven books. http://maven.apache.org/articles.html lists a number of free resources that will get you going. If you are going to use Eclipse, I would suggest replacing Eclipse with the Springsource Eclipse/STS

Re: Maven and special building behaviour

2012-10-19 Thread Thomas Sundberg
On 19 October 2012 10:15, kenduron wrote: > Hello, > > perhaps you can help me. > > I got a WAR (web archive) which is built with maven. > It works perfectly. > > mvn clean package install > > But from now on, I need to create and additional special version of this war > from the same code base. I

Maven and special building behaviour

2012-10-19 Thread kenduron
Hello, perhaps you can help me. I got a WAR (web archive) which is built with maven. It works perfectly. mvn clean package install But from now on, I need to create and additional special version of this war from the same code base. In this special version, some modification will be done: -

Re: Maven pom.xml ?

2012-10-19 Thread Mikhail Kalkov
> By using Eclipse, how to build a .jar from this pom.xml within the project? http://www.sonatype.org/m2eclipse /Mikhail - Original Message - From: "Thomas Sundberg" To: "Maven Users List" Sent: Friday, October 19, 2012 9:44:18 AM Subject: Re: Maven pom.xml ? On 19 October 2012 09:36,

Re: Maven pom.xml ?

2012-10-19 Thread Thomas Sundberg
On 19 October 2012 09:36, jiapei100 wrote: > Hi, sorry for my naive question:I've got a maven project, in which there is a > file pom.xml .My naive question:1) By using bash, what is the command line > to build a .jar from pom.xml ?*maven pom.xml -> project.jar ?*2) You would use mvn packa

Maven pom.xml ?

2012-10-19 Thread jiapei100
Hi, sorry for my naive question:I've got a maven project, in which there is a file pom.xml .My naive question:1) By using bash, what is the command line to build a .jar from pom.xml ?*maven pom.xml -> project.jar ?*2) By using Eclipse, how to build a .jar from this pom.xml within the project?