Re: Improving project build time

2012-09-17 Thread Clebert Suconic
Option one: You could have one separate project for each integration layer? I was just looking into something like, I just arrived in a project.. want to run the integration tests... then I could just do: cd /proper-integration-directory mvn integration-tests mvn tests:integration-tests optio

Re: Maven: Creating a new phase

2012-09-17 Thread Manfred Moser
Fork the book on github and write the update. Send a pull request and I will work with your for whatever else is necessary. Manfred On Mon, September 17, 2012 3:48 pm, John Riedl wrote: > And *that* was exactly what I needed. Thank you very much for your > help. It turns out the lifecycle.xml

Re: Maven: Creating a new phase

2012-09-17 Thread John Riedl
And *that* was exactly what I needed. Thank you very much for your help. It turns out the lifecycle.xml was fine, but I needed *both* a LifecycleMapping component *and* a Lifecycle component. I had discovered examples with each separately on the web, but this is the first example I've seen with

Re: Only Single Module is being Build when Executing Test Case

2012-09-17 Thread Baptiste MATHUS
Reading your mail, I seem to understand your problem is not a real one. You have a multimodule project, running A module, then B. A fails during tests, then you are surprised that B build does not even start. If so, then it's working as expected. If you want tests to not fail your whole build (s

Re: maven-assembly-plugin 2.3 and parent pom

2012-09-17 Thread Ron Wheeler
I believe that this is the correct behaviour. The Parent pom has a dependencyManagement section where you can put the versions of libraries that you want to use but this does not push dependencies into child POMs. This is a good thing since we have about 60 POMs that share a parent and do not w

maven-assembly-plugin 2.3 and parent pom

2012-09-17 Thread Simon Temple
Hi I'm trying to use the assembly plugin to build a product distribution. I include a parent POM declaration in my POM. The parent POM has many dependencies (mixed scope: compile, provided and test) When I execute make-assembly the resulting distribution does not contain the dependent artifa

Re: Improving project build time

2012-09-17 Thread John Kramer
I would suggest that you make sure that your tests are idempotent (http://geekswithblogs.net/dthakur/archive/2004/11/19/15282.aspx) and independent and deterministic. This will not only allow you to run tests in parallel, but it will also help maintainability a lot. It is also a red flag that you

Re: Improving project build time

2012-09-17 Thread Hanmay Udgiri
thx guys for your comments.. yes we have integration tests included in the build. I have tried running them parallel but the tests are not atomic so are not working as expected. we have some DB call where we are using thread sleep,is there anything by which this can be improved Also we have any bes

Re: Only Single Module is being Build when Executing Test Case

2012-09-17 Thread Wayne Fay
> I am implementing Maven for the build Automation and as well as Test Run. > Now i have two different projects and i have created one Parent Project to > build both of them. > But now some error is coming when i am running parent pom.xml. > Its Building only single Module. > And after running Test

Re: Improving project build time

2012-09-17 Thread John Kramer
I understand your point, and agree that I might be nice to have a bit more of a standard place for integration tests. However, one point that should be mentioned is that there are frequently multiple levels of integration tests (in container, out of container, ui, etc). Thus it might not be so si

RE: Improving project build time

2012-09-17 Thread Danny Thomas
Use the Failsafe plugin, though a separate module is good practice too: http://maven.apache.org/plugins/maven-failsafe-plugin/ Danny -Original Message- From: Clebert Suconic [mailto:clebert.suco...@gmail.com] Sent: 17 September 2012 14:05 To: Maven Users List Subject: Re: Improving proje

Re: Improving project build time

2012-09-17 Thread Clebert Suconic
That's one thing I always thought that maven should have an explicit spot for integration tests. We also had to create a separate profile. Having them into a more standard place would make it cleaner IMO. That's a feature request I know. But does it make sense? Sent from my iPhone On Sep 17, 201

Re: JNI jars dependencies

2012-09-17 Thread Jeff MAURY
Simone, You're right, this is a limitation of artifact produced by profiles. Unless you can live with classifier computed from the running platform. Jeff On Mon, Sep 17, 2012 at 9:09 AM, Simone Tripodi wrote: > Salut Jeff, > > profiling sounds a good idea but I didn't understand how mvn is abl

Re: Only Single Module is being Build when Executing Test Case

2012-09-17 Thread Anders Hammar
Extremely difficult to help without seeing the error text message. At least post that. /Anders On Mon, Sep 17, 2012 at 1:31 PM, TarunKhandelwal wrote: > Hello All, > > I am implementing Maven for the build Automation and as well as Test Run. > Now i have two different projects and i have created

Only Single Module is being Build when Executing Test Case

2012-09-17 Thread TarunKhandelwal
Hello All, I am implementing Maven for the build Automation and as well as Test Run. Now i have two different projects and i have created one Parent Project to build both of them. But now some error is coming when i am running parent pom.xml. Its Building only single Module. And after running Test

Re: Improving project build time

2012-09-17 Thread Barrie Treloar
On Mon, Sep 17, 2012 at 5:26 PM, Kristian Rosenvold wrote: > You should probably be looking into parallelizing your tests :) . Or looking at what your tests are doing. 32 minutes sounds like you are doing integration type testing and not unit tests. Pull the integration tests into their own modu

[SOLVED]: Maven plugin configuration properties in execution element not working.

2012-09-17 Thread Markku Saarela
Hi, It seems to be impossible to have multiple execution configuration for direct cli plugin invocation. So i refactored plugin that now it can invoke directly from cli with multiple configurations. Markku On 09/17/2012 11:30 AM, Markku Saarela wrote: Hi, I have problem with plugin devel

Re: Maven plugin configuration properties in execution element not working.

2012-09-17 Thread Markku Saarela
Hi, I have problem with plugin developed by myself. I have just figured out that the problem is with executionIds when running from command line. It get default-cli as execution id and not found configuration from other execution id. I just try to figure out how you can have different exec

Re: Maven plugin configuration properties in execution element not working.

2012-09-17 Thread Baptiste MATHUS
Sorry Markku, but I'm not sure I understand what you want. You have a problem using a plugin you developed? The best thing is to post at least an excerpt of that POM part, the problematic one, so that we can have a look. Even better would be having a test project posted somewhere. Cheers 2012/9/

Re: Improving project build time

2012-09-17 Thread Kristian Rosenvold
You should probably be looking into parallelizing your tests :) . Either through using the parallel attribute of surefire or or forkMode=perThread. ( see http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html) forkMode=perThread is probably the easiest to get going with, but the pa

Maven plugin configuration properties in execution element not working.

2012-09-17 Thread Markku Saarela
Hi, I made Maven plugin and it's parameter configuration is working plugin element but notin execution elements. Maven reports parameters are missing or invalid. So how to get execution configuration working? rgds, Markku

Re: JNI jars dependencies

2012-09-17 Thread Jörg Schaible
Hi Simone, Simone Tripodi wrote: > Salut Jeff, > > profiling sounds a good idea but I didn't understand how mvn is able > to resolve profiled dependencies, I mean, in my project X I need to > import the c.jar dependency with mac-x86_64 as classifier - how to > guarantee transitive dependencies a

Re: JNI jars dependencies

2012-09-17 Thread Simone Tripodi
Salut Jeff, profiling sounds a good idea but I didn't understand how mvn is able to resolve profiled dependencies, I mean, in my project X I need to import the c.jar dependency with mac-x86_64 as classifier - how to guarantee transitive dependencies are imported for the same platform (same classif