Disabling resolving test scoped dependencies when tests are skipped via maven.test.skip system property

2012-01-17 Thread Stevo Slavić
Hello Maven community, Why does Maven (3.0.3) resolve test scoped dependencies when tests compilation and execution is skipped via maven.test.skip system property? I'm trying to achieve this by defining a profile with all test scope dependencies declared in it only. Profile is activated when

Re: maven-plugin-tools-ant custom parameter

2012-01-17 Thread Maxime Carpentier
Thanxs Robert, but i still don't get it i'm just replacing my String object (which works fine) by a Person object so instead of having in my project's pom : configurationpersonJohn /person/configuration i have : configurationpersonnameJason/name/person/configuration Doesn't it work this way ? :

Re: Committing non-POM files during release:prepare?

2012-01-17 Thread Andrew Todd
I'm fairly certain the answer to the question below is no, but I'm wondering if anyone can definitively say either way. Thanks. On Mon, Jan 9, 2012 at 3:02 PM, Andrew Todd andrew.todd...@gmail.com wrote: Maven 2.2, release plugin. During the preparationGoals, I'm modifying a .properties file

Re: Committing non-POM files during release:prepare?

2012-01-17 Thread Stephen Connolly
in http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#completionGoals invoke scm:add Though I am pretty sure all unmodified files which are already in SCM get committed by default On 17 January 2012 14:47, Andrew Todd andrew.todd...@gmail.com wrote: I'm fairly certain the

Re: Disabling resolving test scoped dependencies when tests are skipped via maven.test.skip system property

2012-01-17 Thread Wayne Fay
Why does Maven (3.0.3) resolve test scoped dependencies when tests compilation and execution is skipped via maven.test.skip system property? The maven.test.skip system property is apparently not utilized by the plugin(s) responsible for resolving dependencies early in the build. Whether or not

Re: Disabling resolving test scoped dependencies when tests are skipped via maven.test.skip system property

2012-01-17 Thread Olivier Lamy
Hello, 2012/1/17 Stevo Slavić ssla...@gmail.com: Hello Maven community, Why does Maven (3.0.3) resolve test scoped dependencies when tests compilation and execution is skipped via maven.test.skip system property? That's something will happen with all maven 2.x or 3.x versions. Why because

Re: Disabling resolving test scoped dependencies when tests are skipped via maven.test.skip system property

2012-01-17 Thread Stevo Slavić
OK, thanks for explaining! A module's tests are supposed to be run only by part of the team. For others not even test dependencies are accessible, so just disabling compiling and executing tests was not enough. Resolved this with a profile and putting dependencies of those tests there. Kind

Re: Disabling resolving test scoped dependencies when tests are skipped via maven.test.skip system property

2012-01-17 Thread Benson Margulies
I'd move the 'special' tests to their own project. On Tue, Jan 17, 2012 at 11:17 AM, Stevo Slavić ssla...@gmail.com wrote: OK, thanks for explaining! A module's tests are supposed to be run only by part of the team. For others not even test dependencies are accessible, so just disabling

Google-docs - site plugin

2012-01-17 Thread Benson Margulies
Has anyone thought about how to get a google doc into a format usable in a maven site? The download choices are rather lame: html, open office, ms word, and then images. - To unsubscribe, e-mail:

Re: MVN Site doesn't bring Project Modules structure properly

2012-01-17 Thread Daivish Shah
Thanks Benson !!! This is what i was looking for. I made following entry and it's working all right now... Thx again. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId

Re: Committing non-POM files during release:prepare?

2012-01-17 Thread Andrew Todd
Thanks, I somehow missed completionGoals before. However, it doesn't really seem to do what's necessary. Looking at my build log, I can see that the source code is being tagged and committed before completionGoals runs. Not to mention that I'm not sure scm:add is the right command, since my

Re: Committing non-POM files during release:prepare?

2012-01-17 Thread Stephen Connolly
sorry yeah, completion goals is for after starting the next version. you can do the same trick in preparation goals though - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On

Skipping the TAR packaging step

2012-01-17 Thread jackett_dad
Hello, I'm working on a large project that takes time to compile. I would like to instruct Maven to only build the jar file, but after the build I have a tar, tar.bz2, and a zip file. I am brand new to Maven, but have converted a project to use Maven for the compilation of all component

Re: maven-plugin-tools-ant custom parameter

2012-01-17 Thread Robert Scholte
Hi Max, Don't confuse a mojo with a pojo. The Mojo reflects the actual goal, supports injection, etc, etc. A pojo is just that plain old java object: private fields with their getters and setters Only for mojo's the @parameters can be used. Such field can be of a lot of types: String,

Re: Skipping the TAR packaging step

2012-01-17 Thread Wayne Fay
I'm working on a large project that takes time to compile. I would like Realistically I think you should be looking for LOCAL help (from someone else in your project team, who knows Maven better than you do -- who set these projects up originally?) rather than asking here on Maven Users...

maven-metadata.xml : release vs. latest

2012-01-17 Thread Mirko Friedenhagen
Hello, what is the difference between these two tags? Say I deploy two versions 1.1 and 1.2 in this order. What should I expect for release and latest? My expectation would be to see 1.2 for both. Say I deploy 1.2 and later on 1.1. Now my expectation would be 1.2 for latest and 1.1 for

Re: maven-metadata.xml : release vs. latest

2012-01-17 Thread Stephen Connolly
1. Both of these tags are deprecated because they are a load of crap and useless. 2. Here is what they mean: LATEST = The most recently deployed version RELEASE = The most recently deployed non -SNAPSHOT version Crappy aren't they! 3. Versions-maven-plugin does not pay any heed to those

Changing the working directory of the release plugin...

2012-01-17 Thread Thiessen, Todd (Todd)
Does anyone know how to change the working directory, that the prepare phase of the release plugin uses, without also changing where it checkouts out the tag? Basically, I want to run the top level pom, but from a different working directory.

maven plugin configuration and binding execution to a phase/goal

2012-01-17 Thread Jeff Trent
I am stuck on two things while writing a plugin: (1) configuration, and (2) binding to the right goal/phase automatically.  I am using Maven 3.0.3, and trying to use the plugin for APK (android) packaged modules. (1) configuration. /** * @phase compile * @goal myGoal *

Re: maven plugin configuration and binding execution to a phase/goal

2012-01-17 Thread Manfred Moser
On 12-01-17 07:24 PM, Jeff Trent wrote: I am stuck on two things while writing a plugin: (1) configuration, and (2) binding to the right goal/phase automatically. I am using Maven 3.0.3, and trying to use the plugin for APK (android) packaged modules. (1) configuration. /** * @phase compile

Re: maven-metadata.xml : release vs. latest

2012-01-17 Thread Mirko Friedenhagen
OK, thanks for the answer. And what about the plugins-section in org/apache/maven/plugins/maven-metadata.xml? Deprecated as well? Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Jan 17, 2012