Maven 2 inheritance which elements get inherited ?

2009-01-28 Thread kukudas
I have read in the documentation that the following elements get inherited (merged) : * dependencies * developers and contributors * plugin lists (including reports) * plugin executions with matching ids * plugin configuration * resources Is it possible to inherit other

Re: Archetype create v. generate

2009-01-28 Thread Raphaël Piéroni
Yup this is normal. archetype:create is the old way a copy/paste from the old archetype-1.0-alpha plugin that is kept only for backaward compatibility. archetype:generate is the prefered way to do things. Regards. Raphaël 2009/1/27 Dave Newton newton.d...@yahoo.com: Raphaël Piéroni wrote:

Re: Maven 2 inheritance which elements get inherited ?

2009-01-28 Thread Jörg Schaible
Hi kuku, kukudas wrote at Mittwoch, 28. Januar 2009 09:24: I have read in the documentation that the following elements get inherited (merged) : * dependencies * developers and contributors * plugin lists (including reports) * plugin executions with matching ids *

RE : maven / osgi / repositories

2009-01-28 Thread Deneux, Christophe
Isn't the role of the classifier field ? instead of : groupIdorg.apache.ant/groupId artifactIdant/artifactId version1.7.1/version we could use : groupIdorg.apache.ant/groupId artifactIdant/artifactId version1.7.1/version classifierosgi/classifier De: Henri

Re: Maven 2 inheritance which elements get inherited ?

2009-01-28 Thread kukudas
Ok so lets say i have a profile in my parent which is not activated. If i now call this profile with my child it will work right? I've tried it and it seems to work but i'm asking to be sure. Jörg Schaible-2 wrote: Hi kuku, kukudas wrote at Mittwoch, 28. Januar 2009 09:24: I have

Release plugin development.

2009-01-28 Thread Nord, James
Is the release plugin development ongoing or is this an orphand plugin. I ask as I and others have a showstopper with it not inheriting the process environment when doing release:perform. http://jira.codehaus.org/browse/MRELEASE-406 Or does anyone have any bright ideas how to work around this?

Unable to exclude Selenium tests from my war

2009-01-28 Thread Rene A
Hi, I'm trying to exclude my Selenium tests from the production .war, here is my structure Projet |pom.xml |-src | `--main | `--webapp | `--selenium | `--resources | `--java and so on. i'm using profiles to help me clean my war, so that when it goes into production,

Re: Unable to exclude Selenium tests from my war

2009-01-28 Thread Jeff MAURY
According to the Maven conventions, you selenium tests should be under the src/test subdirectory and not inside your webapp. So that; the Maven WAR plugin will not include them in the resulting WAR. Regards Jeff MAURY On Wed, Jan 28, 2009 at 2:13 PM, Rene A lifestyl...@hotmail.com wrote: Hi,

RE : Release plugin development.

2009-01-28 Thread Deneux, Christophe
As explain in the settings references, env variable are used with the prefix env, otherwise it's considered as a property. For example, ${env.PATH} contains the $path environment variable. Have you try ? I'm not sure that this will fix your problem, but I'm using the same mirror declaration,

Maven Assemblies

2009-01-28 Thread David Weintraub
I'm building a JAR file that needs to be packaged with some shell scripts and some configuration files. The shell scripts will be in a bin directory, the configuration files will be in a conf directory, and I'd like the jar in the lib directory with any of the dependency jars mentioned in the POM.

RE: Maven Assemblies

2009-01-28 Thread Edelson, Justin
The assembly descriptor (i.e. the file that defines the directory structure and contents of the assembly) is a separate file from the POM. They are typically placed in src/main/assembly/. See http://maven.apache.org/plugins/maven-assembly-plugin/usage.html for examples of how to configure the

Re: Maven Assemblies

2009-01-28 Thread Karl Heinz Marbaise
Hi David, I'm building a JAR file that needs to be packaged with some shell scripts and some configuration files. The shell scripts will be in a bin directory, the configuration files will be in a conf directory, and I'd like the jar in the lib directory with any of the dependency jars

Re: Maven 2 inheritance which elements get inherited ?

2009-01-28 Thread Jörg Schaible
Hi kuku, kukudas wrote at Mittwoch, 28. Januar 2009 13:37: Ok so lets say i have a profile in my parent which is not activated. If i now call this profile with my child it will work right? I've tried it and it seems to work but i'm asking to be sure. No. If the profile is activated (i.e.

Re: Maven 2 inheritance which elements get inherited ?

2009-01-28 Thread kukudas
Thanks, so when i activate a profile by using the command line (ex.: mvn clean install -P int) within a child and the profile (int) is definied in the parent it should work right? Jörg Schaible-2 wrote: Hi kuku, kukudas wrote at Mittwoch, 28. Januar 2009 13:37: Ok so lets say i have a

Re: Maven 2 inheritance which elements get inherited ?

2009-01-28 Thread Jörg Schaible
Hi kuku, kukudas wrote at Mittwoch, 28. Januar 2009 15:20: Thanks, so when i activate a profile by using the command line (ex.: mvn clean install -P int) within a child and the profile (int) is definied in the parent it should work right? Yes, but why don't you simply setup two minimal

Re: Archetype create v. generate

2009-01-28 Thread Dave Newton
Raphaël Piéroni wrote: Yup this is normal. archetype:create is the old way a copy/paste from the old archetype-1.0-alpha plugin that is kept only for backaward compatibility. archetype:generate is the prefered way to do things. Great--thanks for the info. Dave

Re: specific maven repository paths ..

2009-01-28 Thread Baptiste MATHUS
It seems like there was a relocation somewhere. One solution would be to exclude some dependency after knowing where it came from (transitively). Use dependency:tree to help you debug that. The URL part you're speaking is created by concatenating groupIds/artifactIds. Maven doesn't do any magic

RE: Release plugin development.

2009-01-28 Thread Nord, James
Yup that fixed it. Chnaged the mirror declaration to ${env.proxyURL} and it worked with the release plugin. Strage that it worked at all though and only the release plugin appeared to have issues with it. /James -Original Message- From: Deneux, Christophe

Re: RE : maven / osgi / repositories

2009-01-28 Thread Henri Gomez
2009/1/28 Deneux, Christophe christophe.den...@capgemini.com: Isn't the role of the classifier field ? instead of : groupIdorg.apache.ant/groupId artifactIdant/artifactId version1.7.1/version we could use : groupIdorg.apache.ant/groupId artifactIdant/artifactId version1.7.1/version

Using a resource/artifact from a sibling module build?

2009-01-28 Thread philion
Greetings, I have a need to copy one of the artifacts from one module build and use it as a resource (*not* a dependency) for another build. In ant, I would just copy the file over to the right directory. For example: - project + sub-a + produces sub-a.jar + sub-b + requires

Re: Problems with release:prepare on the resolution of a dependency with test classifier

2009-01-28 Thread Thiago Moreira (timba)
Thank you Barrie! Now it is working fine BUT I'm getting a new error... [INFO] [release:prepare] [INFO] Resuming release from phase 'scm-tag' [INFO] Tagging release with the label floggy-1.2.0... [INFO] Executing: svn --non-interactive copy --file /tmp/maven-scm-200887962.commit .

Re: Using a resource/artifact from a sibling module build?

2009-01-28 Thread Stephen Connolly
dependency:copy-dependencies 2009/1/28 philion phil...@gmail.com: Greetings, I have a need to copy one of the artifacts from one module build and use it as a resource (*not* a dependency) for another build. In ant, I would just copy the file over to the right directory. For example: -

RE: Problems with release:prepare on the resolution of a dependency with test classifier

2009-01-28 Thread Todd Thiessen
I have. Try doing an update. If that doesn't work, try simply deleting your check out (after of course ensuring that everything is committed) and making a brand new checkout. --- Todd Thiessen -Original Message- From: Thiago Moreira (timba) [mailto:tmoreira2...@gmail.com] Sent:

Re: Maven surefire question

2009-01-28 Thread Kalle Korhonen
I was hoping for a failfast behavior for surefire as well. My reason is that we are running a set of functional tests that take a long time to execute (say 2 hours), we require all of them to succeed but only know at the end if it did. I wonder if this feature ever made it to surefire (can't see

Re: Maven surefire question

2009-01-28 Thread Baptiste MATHUS
Well, the thing is: I'm not sure running tests in a fail-fast way does make a lot of sense since they must be independent. In fact, if a test crashes, there should never have any impact on other tests (if they're not defined in the same chain as you can do with testng for example). When ran inside

Re: Maven surefire question

2009-01-28 Thread Kalle Korhonen
Absolutely agree, shouldn't be a default. Our tests are all independent but we'd just like to know right away even if one test fails (no matter which one) - our biggest issue is the time it takes to run the whole suite (these are complex feature functional tests, not simple unit tests). So I

Re: Maven surefire question

2009-01-28 Thread Stephen Connolly
Could you not use a custom test runner? 2009/1/28 Kalle Korhonen kalle.o.korho...@gmail.com: Absolutely agree, shouldn't be a default. Our tests are all independent but we'd just like to know right away even if one test fails (no matter which one) - our biggest issue is the time it takes to

Re: Maven surefire question

2009-01-28 Thread Kalle Korhonen
Not sure. How do I configure tests to use one with surefire junit 3.8? Kalle On Wed, Jan 28, 2009 at 12:14 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Could you not use a custom test runner? 2009/1/28 Kalle Korhonen kalle.o.korho...@gmail.com: Absolutely agree, shouldn't

Re: Maven Assemblies

2009-01-28 Thread David Weintraub
Thanks for your help. I kept seeing the assembly file referenced, but nothing too much on where it should be. Here's my Assembly file: assembly idbin/id formats formattar.gz/format /formats baseDirectory${artifactId}-${version}/baseDirectory