> 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" <[email protected]> To: "Maven Users List" <[email protected]> Sent: Friday, October 19, 2012 9:44:18 AM Subject: Re: Maven pom.xml ? On 19 October 2012 09:36, jiapei100 <[email protected]> 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 package to build a jar. It will end up in the ./target directory. This is of course dependent of how you pom looks like. The simplest possible pom would look something like this: <project> <modelVersion>4.0.0</modelVersion> <groupId>se.somath.maven</groupId> <artifactId>simplest-possible</artifactId> <version>1.0.0-SNAPSHOT</version> </project> As you see, there is no packaging specified. This means that the default packaging will be used and the default packaging is a jar. > By > using Eclipse, how to build a .jar from this pom.xml within the project? I have no idea, life is to short to use Eclipse. HTH Thomas > > > > ----- > Welcome to Vision Open > http://www.visionopen.com > -- > View this message in context: > http://maven.40175.n5.nabble.com/Maven-pom-xml-tp5727069.html > Sent from the Maven - Users mailing list archive at Nabble.com. -- Thomas Sundberg M. Sc. in Computer Science Mobile: +46 70 767 33 15 Blog: http://thomassundberg.wordpress.com/ Twitter: @thomassundberg Better software through faster feedback --------------------------------------------------------------------- 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]
