[ANN] Maven Compiler Plugin 2.4 Released

2012-05-01 Thread Olivier Lamy
Hi, The Maven team is pleased to announce the release of the Maven Compiler Plugin, version 2.4 The Compiler Plugin is used to compile the sources of your project. The default compiler is javac and is used to compile Java sources. http://maven.apache.org/plugins/maven-compiler-plugin You

Surefire unable to find bar test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
I have a test class; let's call it TestCaseFoo. When I run surefire:test with no value for the test property, this class is found and all of its test methods execute. I would like to run just one of those methods. So I tried invoking Maven like this: mvn clean test -Dtest=TestCaseFoo#testBar

Re: Surefire unable to find bar test method when passed -Dtest=Foo#bar

2012-05-01 Thread Stephen Connolly
ahem... are you running on a unix system? you do know # is the comment start marker for most unix shells you'd need to escape it with \ or quote the entire -D On 1 May 2012 16:24, Laird Nelson ljnel...@gmail.com wrote: I have a test class; let's call it TestCaseFoo. When I run

Re: Surefire unable to find bar test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
On Tue, May 1, 2012 at 12:31 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: you'd need to escape it with \ or quote the entire -D Yes, I am running on MacOS. Sorry; didn't indicate that I had done that (single-quoted the string). Here was the totality of my command line, in

Re: Surefire unable to find bar test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
On Tue, May 1, 2012 at 12:36 PM, Laird Nelson ljnel...@gmail.com wrote: mvn clean install -fae -Pminlog -Dtest='TestCaseFoo#testBar' I also tried -Dtest='TestCaseFoo#testB*' which failed with the same error, so that told me that it was indeed able to find the name of the test method, as the

[ANN] Maven Site Plugin 3 3.1 Released

2012-05-01 Thread Dennis Lundberg
The Maven team is pleased to announce the release of the Maven Site Plugin 3, version 3.1 The Maven Site Plugin is a plugin that generates a site for the current project. http://maven.apache.org/plugins/maven-site-plugin You should specify the version in your project's plugin configuration:

Re: How to include WAR dependency in project

2012-05-01 Thread Ron Wheeler
What are you trying to do? It is unusual for a WAR to be a dependency. Even more unusual for a WebService to be a dependency. What are you testing? Ron On 01/05/2012 2:44 PM, Daivish Shah wrote: Hi, I have following dependency declared in my UNIT Testing module project. dependency

Re: How to include WAR dependency in project

2012-05-01 Thread Daivish Shah
I have some integration UNIT test cases. Which require me to include those JAVA files in my integration unit test module, And this module is designed to include all UNIT test case for that parent project. I hope you got it. But do you have any solution of my question ? On Tue, May 1, 2012 at

Re: How to include WAR dependency in project

2012-05-01 Thread Ron Wheeler
Break the WAR project into 2 projects. One with code that makes a JAR and one without code to make a WAR. You could put your unit tests in the jar project which is what most people do or make a third project that has some test routines that test your code. Ron On 01/05/2012 3:12 PM, Daivish

Re: How to include WAR dependency in project

2012-05-01 Thread Stanimir Stamenkov
Tue, 1 May 2012 11:44:27 -0700, /Daivish Shah/: I have following dependency declared in my UNIT Testing module project. dependency groupIdsample-project-ws/groupId artifactIdsample-project-ws/artifactId version${project.version}/version typewar/type scopetest/scope

Re: How to include WAR dependency in project

2012-05-01 Thread Daivish Shah
Thanks Stanimir, I modified my code like this. JUNIT Module POM.XML dependency groupIdsample-project-ws/groupId artifactIdsample-project-ws/artifactId version${project.version}/version classifierclasses/classes scopetest/scope /dependency My

Re: Surefire unable to find bar test method when passed -Dtest=Foo#bar

2012-05-01 Thread Stephen Connolly
On 1 May 2012 17:36, Laird Nelson ljnel...@gmail.com wrote: On Tue, May 1, 2012 at 12:31 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: you'd need to escape it with \ or quote the entire -D Yes, I am running on MacOS. Sorry; didn't indicate that I had done that

Re: Surefire unable to find bar test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
On Tue, May 1, 2012 at 5:30 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: there is your #fail mvn clean install -fae -Pminlog '-Dtest=TestCaseFoo#testBar' Thanks again for your prompt response. I don't see how the quoting of the -Dtest= part would help, but I did it just the

Re: Surefire unable to find bar test method when passed -Dtest=Foo#bar

2012-05-01 Thread Stephen Connolly
On 1 May 2012 22:43, Laird Nelson ljnel...@gmail.com wrote: On Tue, May 1, 2012 at 5:30 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: there is your #fail mvn clean install -fae -Pminlog '-Dtest=TestCaseFoo#testBar' Thanks again for your prompt response. I don't see

Re: Surefire unable to find bar test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
On Tue, May 1, 2012 at 5:56 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Looks like something is going wrong alright The part I don't understand is why it appears that the method description indicates that the method takes a parameter. I wonder if this is a problem in JUnit

Dependency in an assembly (zip file)

2012-05-01 Thread Jorge Medina
Hi, I have a project A with multiple modules, one of the modules called alfa has jar packaging that produces a JAR file but it also produces a ZIP file through the maven-asembly-plugin. In my Nexus repository I get the JAR and ZIP file as alfa-X.Y.Z.jar

Re: Dependency in an assembly (zip file)

2012-05-01 Thread Jorge Medina
Never mind, adding the classifier with the id of the assembly from project A does the trick:        dependency            groupIdcom.example.projectA/groupId            artifactIdalfa/artifactId            typezip/type classifieralfa/classifier            versionX.Y.Z/version

maven-scm-plugin example/help

2012-05-01 Thread Billy Newman
I was looking at possibly using the maven-scm-plugin to tag my releases in scm. A couple quick questions. Does anyone have a quick example of creating a tag from an scm trunk inside of a maven build, maybe a profile? What about only running the scm:tag goal if the version I am deploying is