configure Maven to dynamically select profiles

2011-07-13 Thread Vivek
Hi There, Is there any way to configure Maven to dynamically select profiles? Issue: Is it possible to have Maven dynamically pick different configuration properties and build the project and execute tests based on those dynamically acquired properties! In my case I have single pom.xml and

Re: configure Maven to dynamically select profiles

2011-07-13 Thread anis chaaba
Hi, U can play with activation method using activation tag. this may be helpful http://maven.apache.org/guides/introduction/introduction-to-profiles.html good luck :) On Wed, Jul 13, 2011 at 10:14 AM, Vivek vku...@qasource.com wrote: case I have single pom.xml an

Parent Pom and maven goals for only war projects

2011-07-13 Thread Cem Koc
Hi, I have a multi module maven project. It has 5 module and 2 of them are web projects. I want to customize my plugins to be run at only war projects. I mean at parent pom level I would like to trigger my goals and only my war projects will be affected. Is there any way for it? As a result of

Re: Parent Pom and maven goals for only war projects

2011-07-13 Thread Stephen Connolly
On 13 July 2011 11:23, Cem Koc cemalettin@gmail.com wrote: Hi, I have a multi module maven project. It has 5 module and 2 of them are web projects. I want to customize my plugins to be run at only war projects. I mean at parent pom level I would like to trigger my goals and only my war

Locking down default plugin versions

2011-07-13 Thread Moser, Christian
I start a release build with following cmd: Mvn -Darguments=-DskipTests=true -Denforcer.skip=true -Dmaven.javadoc.skip=${skipJavadoc} -Dtag=${tag} -Dmaven.javadoc.skip=${skipJavadoc} -Dgoals=deploy release:perform With maven-release-plugin:2.1:perform, maven 3.0.1 will print out:

Re: uploading existing jar+pom as one artifact

2011-07-13 Thread olaf . klischat
On 07/12/2011 04:02 AM, Wendy Smoak wrote: On Mon, Jul 11, 2011 at 8:15 PM, Olaf Klischatolaf.klisc...@sofd.de wrote: mvn deploy:deploy-file -Dfile=mylib.jar DpomFile=mypom.pom -DgeneratePom=false -Durl=repourl , it apparently just uploads the jar under the namegroupid-artifactid from

Re: Locking down default plugin versions

2011-07-13 Thread Barrie Treloar
On Wed, Jul 13, 2011 at 8:59 PM, Moser, Christian c...@metrohm.com wrote: I'm skipping javadoc, do you know  why javadoc-plugin is needed? Skipping a plugin isn't a built-in maven feature. Each plugin decides if it will allow skip, and so the plugin still needs to get loaded to decide whether to

Re: uploading existing jar+pom as one artifact

2011-07-13 Thread Stephen Connolly
mvn deploy:deployFile -Dfile=... -DpomFile=... -Durl=... should deploy both the jar and the pom. If it is not doing so can you raise a JIRA. Note that you might have to force the version of the deploy plugin as it could be an issue with an older version, mvn

AW: Locking down default plugin versions

2011-07-13 Thread Moser, Christian
Each plugin decides if it will allow skip, and so the plugin still needs to get loaded to decide whether to skip. This makes sense. Will add javadoc-plugin. What do you mean by maven super pom? Maybe maven super pom was confusing sorry for that. I meant the place where maven specified, which

Site deploy problem

2011-07-13 Thread Johan Vogelzang
Hi Maven users, I've a problem with deploying a site to an url containing property variables. The site url -as part of the distributionManagement section- is located in the company parent pom: properties reposerver.host.namemyrepohost/reposerver.host.name /properties ...

Re: Site deploy problem

2011-07-13 Thread Johan Vogelzang
Oh I forgot... I use Maven 2.2.1 and maven-site-plugin version 2.3. The behavior is the same on Windows and Linux. Johan. 2011/7/13 Johan Vogelzang johan.vogelz...@gmail.com Hi Maven users, I've a problem with deploying a site to an url containing property variables. The site url -as

Re: AW: Locking down default plugin versions

2011-07-13 Thread Jörg Schaible
Moser, Christian wrote: Each plugin decides if it will allow skip, and so the plugin still needs to get loaded to decide whether to skip. This makes sense. Will add javadoc-plugin. What do you mean by maven super pom? Maybe maven super pom was confusing sorry for that. I meant the

Antwort: Re: Site deploy problem

2011-07-13 Thread Thorsten Heit
Hi, Oh I forgot... I use Maven 2.2.1 and maven-site-plugin version 2.3. The behavior is the same on Windows and Linux. What kind of SCP transfer do you want to use? Password-less, i.e. public-key-authentification, or using username/password? In the first case: Did you upload your public

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-13 Thread DaveyBob
I essentially have the same problem. I am just getting started with Groovy for this project. Environment: Ubuntu 11.04 Eclipse 3.7 Groovy Eclipse plugin 2.5.1 Maven 2.2.1 Following the instructions in the Groovy Eclipse Plugin page

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-13 Thread Jeff MAURY
You probably need to configure your Eclipse project as a Groovy project (through a nature I think). Please not that you can configure the Maven Eclipse plugin to add specific natures when eclipse:eclipse is run. Regards Jeff On Wed, Jul 13, 2011 at 7:26 PM, DaveyBob psyn...@yahoo.com wrote: I

Re: Re: Site deploy problem

2011-07-13 Thread Johan Vogelzang
Thorsten, We use username/password authentication, and my settings.xml is set up as you described. But I don't think this is a authentication issue. As you can see the hostname is not resolved properly so there is no server connection to do the authentication. Regards, Johan. 2011/7/13 Thorsten

Re: Site deploy problem

2011-07-13 Thread Johan Vogelzang
I just did a test with maven-site-plugin version 2.0-beta-7 (instead of 2.3) and with this one the build seems to run ok (!?). build pluginManagement plugins plugin artifactIdmaven-site-plugin/artifactId version2.0-beta-7/version /plugin Can anyone confirm if this is a known bug? Regards,

Re: Site deploy problem

2011-07-13 Thread Hervé BOUTEMY
http://jira.codehaus.org/browse/MSITE-585 ? Regards, Hervé Le mercredi 13 juillet 2011, Johan Vogelzang a écrit : I just did a test with maven-site-plugin version 2.0-beta-7 (instead of 2.3) and with this one the build seems to run ok (!?). build pluginManagement plugins plugin

Re: uploading existing jar+pom as one artifact

2011-07-13 Thread Wendy Smoak
On Wed, Jul 13, 2011 at 8:14 AM, olaf.klisc...@sofd.de wrote: Hm, no, the differing timestamps resulting from the two seperate uploads are a problem. A build that references this library in its dependencies fails -- the POM isn't found: [WARNING] The POM for groupId:artifactId:jar:timestamp

Re: AW: Locking down default plugin versions

2011-07-13 Thread Barrie Treloar
On Thu, Jul 14, 2011 at 1:27 AM, Jörg Schaible joerg.schai...@gmx.de wrote: Moser, Christian wrote: Each plugin decides if it will allow skip, and so the plugin still needs to get loaded to decide whether to skip. This makes sense. Will add javadoc-plugin. What do you mean by maven super

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-13 Thread Barrie Treloar
On Thu, Jul 14, 2011 at 3:09 AM, Jeff MAURY jeffma...@jeffmaury.com wrote: You probably need to configure your Eclipse project as a Groovy project (through a nature I think). Please not that you can configure the Maven Eclipse plugin to add specific natures when eclipse:eclipse is run. Groovy

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-13 Thread Barrie Treloar
On Thu, Jul 14, 2011 at 9:07 AM, Barrie Treloar baerr...@gmail.com wrote: On Thu, Jul 14, 2011 at 3:09 AM, Jeff MAURY jeffma...@jeffmaury.com wrote: You probably need to configure your Eclipse project as a Groovy project (through a nature I think). Please not that you can configure the Maven