Re: How to include librabries when compile with Maven?

2012-03-18 Thread Ron Wheeler
You might also want to switch from Eclipse to Eclipse STS from the Spring guys. This gives you Eclipse and Maven in the IDE all from a single download. We have used it for a few years now and it is much better than Eclipse on its own. We do no command line Maven. It is all done inside Eclipse S

Re: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Ron Wheeler
On 18/03/2012 5:53 PM, Anders Hammar wrote: If you think you should be using profiles, think again. If you still think they are the solution, please think it through once more. If you still persist, go use Ant. Profiles are simply very rarely a good solution. I'm using profiles at work for the s

Re: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Ron Wheeler
On 18/03/2012 5:41 PM, Thorsten Heit wrote: Hi, Yes, profiles are evil. If you use them for changing / defining _what_ gets built and/or how, yes. If you think you should be using profiles, think again. If you still think they are the solution, please think it through once more. If you stil

[ANN] Apache Maven Shade Plugin 1.6 Released

2012-03-18 Thread Olivier Lamy
The Maven team is pleased to announce the release of the Apache Maven Shade Plugin, version 1.6 Hello, This plugin provides the capability to package the artifact in an uber-jar, including its dependencies and to shade - i.e. rename - the packages of some of the dependencies. http://maven.apache

Re: How to include librabries when compile with Maven?

2012-03-18 Thread Jesse Farinacci
Greetings, On Fri, Mar 16, 2012 at 2:30 PM, gchoi wrote: > My project > relies on many third party libraries, but I am not sure how do I make Maven > aware of them? http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html -Jesse -- There are 10 types of people in

Re: exclude dependency from war file during packaging

2012-03-18 Thread Jesse Farinacci
Greetings, On Sat, Mar 17, 2012 at 7:47 AM, satya1234567 wrote: > I want to exclude this jar from my war file, but this jar is required during > build of the project. provided -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. ---

DependencyResolutionRequiredException with maven-artifact 3.0.4 and maven-archiver 2.5?

2012-03-18 Thread Jonathan Marston
Hello, I'm trying to write a maven plugin with a custom packaging format, but having trouble with using the Maven 3 plugins with Maven-Archiver 2.5. I have this in my plugin's pom.xml for dependencies org.apache.maven maven-plugin

exclude dependency from war file during packaging

2012-03-18 Thread satya1234567
Hi, My application uses grails 1.3.7. it is using grails-gorm artifact as a dependency. from this artifact, jta.jar is also being added as transitive dependency in my WEB-INF/lib folder. I want to exclude this jar from my war file, but this jar is required during build of the project. The reason be

How to include librabries when compile with Maven?

2012-03-18 Thread gchoi
Hi All, As you can see from the subject, I am new to Maven. I used to develope, compile and build project using Eclipse, but recently I got some problem with Eclipse with Metro generated code. Someone suggested me that I should compile project using Maven instead Eclipse. So, hear I am. My project

Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Anders Hammar
>> If you think you should be using profiles, think again. If you still >> think they are the solution, please think it through once more. If you >> still persist, go use Ant. >> Profiles are simply very rarely a good solution. > > I'm using profiles at work for the sole purpose of deciding what to

Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Thorsten Heit
Hi, > Yes, profiles are evil. If you use them for changing / defining _what_ gets built and/or how, yes. > If you think you should be using profiles, think again. If you still > think they are the solution, please think it through once more. If you > still persist, go use Ant. > Profiles are si

Re: Exposing EJB3.1 bean as webservice and use from servlet!?

2012-03-18 Thread Wayne Fay
> Hello, can please someone help me. I am at a loss how I can expose an EJB3.1 > as a  Webservice in a maven project and access this from a Servlet. You will have better luck with this question at the Java Ranch or perhaps StackOverflow. Take out one reference to a Maven plugin (which is not even

RE: useing profiles to control properties to drive version numbers in poms

2012-03-18 Thread Martin Gainty
Chad path of least resistance is to set the version of the project in pom.xml (at top) and then reference project.version e.g. ${project.version} HTH Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht

Re: How to tell EAR packager to use the exact names created by true?

2012-03-18 Thread Anders Hammar
Well, the bug is that the generated classpath does not match the actual library file names. I haven't looked at the code, but very possibly the bug might not be in the plugin's code but some library used to calculate the classpath (which expects unique snapshot file name). In any case, file the bug