Re: My TestNG dependency not found :-(

2012-02-17 Thread Wayne Fay
> I would simply add the needed dependency as explained here: > http://maven.apache.org/plugins/maven-surefire-plugin/examples/testng.html Yes, that is correct. > To keep it simple, I am calling mvn from the console. Good. IDEs are fine once you are an advanced user but not appropriate (IMO) for

My TestNG dependency not found :-(

2012-02-17 Thread Gogirl
I have successfully used the quickstart archetype and proceeded to build and run HelloWorld. As most know, it uses junit and i wish to use TestNG. I believed that it meant that I would simply add the needed dependency as explained here: http://maven.apache.org/plugins/maven-surefire-plugin/example

RE: How to make sure developers use the latest versions of dependencies?

2012-02-17 Thread jose.nunez-zuleta
Thanks for your help Wayne, I'll dig further in the documentation and will come back to the list if I have more questions. --Jose -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Friday, February 17, 2012 10:37 AM To: Maven Users List Subject: Re: How to make sure d

Re: How to exclude resources from war?

2012-02-17 Thread Sebastian Otaegui
Just a guess from the file name. is that a test logback configuration? if that is the case you may want to put it in src/test/resources instead. On Fri, Feb 17, 2012 at 12:36 PM, David Hoffer wrote: > Where is logback-test.xml in your directory structure relative to the pom? > > -Dave > > On F

Re: How to exclude resources from war?

2012-02-17 Thread David Hoffer
Where is logback-test.xml in your directory structure relative to the pom? -Dave On Fri, Feb 17, 2012 at 11:07 AM, Greg Thomas wrote: > On 17 February 2012 17:52, David Hoffer wrote: >> Or am I missing how to exclude from war? > > I'm excluding a logback-test.xml file from the WAR using the dir

Re: How to exclude resources from war?

2012-02-17 Thread Greg Thomas
On 17 February 2012 17:52, David Hoffer wrote: > Or am I missing how to exclude from war? I'm excluding a logback-test.xml file from the WAR using the directive org.apache.maven.plugins maven-war-plugin 2.2 **/logback-test.xml And that seems to work just fine .

How to exclude resources from war?

2012-02-17 Thread David Hoffer
I have several folders in src/main/resources that need to be available during the build (compile phase) but that I do not want added to the generated war. As far as I can tell the war plugin ignores requests to exclude since they are in the standard resources folder (it seems to only exclude if fr

Re: Specifying credentials with archetype:generate

2012-02-17 Thread Greg Thomas
On 17 February 2012 16:35, Matt Walsh wrote: > From http://maven.apache.org/archetype/maven-archetype-plugin/faq.html: Thanks. It's obvious when you know where to look, clearly my Google-foo failed me on this one! Greg - To uns

RE: Copy two versions of same jar

2012-02-17 Thread Ansgar Konermann
Am 17.02.2012 04:51 schrieb "Nalini" : > > > >test >castor >0.9.5 > > >test >castor >1.0.4 > > Maven performs *conflict resolution* here. That means: if your dependencies only differ by the ve

RE: Specifying credentials with archetype:generate

2012-02-17 Thread Matt Walsh
>From http://maven.apache.org/archetype/maven-archetype-plugin/faq.html: How to generate a project from an archetype in an authenticated repository? The server id used to download the artifact is [archetypeArtifactId]-repo: you have to define corresponding server configuration in settings.xml wit

Re: How to make sure developers use the latest versions of dependencies?

2012-02-17 Thread Wayne Fay
> -          Tell the Maven pom to retrieve the 'HEAD' of the release version > every time, so there is not need to put a specific version on the pom file? No. > -          Is this something that can be solved with Snapshots?  Maybe I can > deploy both to the release and the snapshot (using pro

Summary of maven-plugin-execution times

2012-02-17 Thread Sankaran, Nambi
Hi At the end of the build maven provides the summary as follows, [INFO] [INFO] Reactor Summary: [INFO] [INFO] p1 ... SUCCESS [0.429s] [INFO] p1-parent

RE: Copy two versions of same jar

2012-02-17 Thread Lyons, Roy
or... if you REALLY want to cheat the system (yes, this is terrible, but we do have a certain use case for it). We put some jar files inside a zip file so that we could make the zip a dependency and it wouldn't be added to the classpath of the application. These jars are used by an ant proces

How to make sure developers use the latest versions of dependencies?

2012-02-17 Thread jose.nunez-zuleta
Hello Maven users, I managed to convert and connect several projects through dependencies using Maven; I do daily releases and I change the version of the aggregator pom of all the projects using 'mvn versions:set -DnewVersion=X' . But I have the following problem: - My develope

How to generically get all parameters in a Mojo

2012-02-17 Thread thu
if my pom.xml looks something like: ... com.my.group.idi my-plugin 1.0.11-SNAPSHOT generate-pdf generate-sources example.xml http://docs.rackspace.com/foo/api/v.1.0 bl...@blah.com ...

Specifying credentials with archetype:generate

2012-02-17 Thread Greg Thomas
If I have a Maven repo that requires authentication, how do I specify the credentials for that repo when using mvn archetype:generate? You can specify the URL of the repo using the archetypeRepository parameter - but I can see no way of tying that up that up with the credentials specified in setti

Re: Copy two versions of same jar

2012-02-17 Thread Stephen Connolly
Alternatively, if you just need a copy of the jar, and not the jar on the classpath, ie you are writing some app that builds its own classpath, some parts of the app use one version and other parts use the other version, and you have fancy code that sets up the class loaders correctly, this would b

How to get a summary of maven "plugin execution" times

2012-02-17 Thread Sankaran, Nambi
Hi At the end of the build maven provides the summary as follows, [INFO] [INFO] Reactor Summary: [INFO] [INFO] p1 ... SUCCESS [0.429s] [INFO] p1-parent