Re: [ANN] Versions Maven Plugin 2.0 released

2012-11-28 Thread Wheeler, Dennis
Someone please help me from navigating through the forest of no return, that is Google, and tell me how to force our projects back to using the older 1.2 version of the Versions plugin, instead of this newer 2.0 version which is now giving us null pointer exceptions with this simple command:

Re: [ANN] Versions Maven Plugin 2.0 released

2012-11-28 Thread Anders Hammar
mvn org.codehaus.mojo:versions-maven-plugin:1.2:set /Anders On Wed, Nov 28, 2012 at 9:04 AM, Wheeler, Dennis dwhee...@cobaltgroup.comwrote: Someone please help me from navigating through the forest of no return, that is Google, and tell me how to force our projects back to using the older

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Olivier Lamy
2012/11/28 Barrie Treloar baerr...@gmail.com: While trying to sort out http://maven.40175.n5.nabble.com/Retrieving-the-project-source-directories-from-MavenProject-td5733602.html I was hacking his code and found that Java 1.5 @Component MavenProject returns null But when I changed it to use

AW: MissingProjectException

2012-11-28 Thread Stadelmann Josef
Hi Do you know that NetBeans has its own maven on board? C:\Program Files\NetBeans 7.2\java\maven\bin Your EXTERNAL maven - pointed to by MAVEN_HOME or M2_HOME might work nicely, i.e. USE $ mvn -version as a always first to check and tell us a bit more about what you have. In order to

Re: can't find maven dependencies

2012-11-28 Thread Mikhail Kalkov
To add a dependency to my pom.xml, usually, I google the artifact, class, jar and then go to http://mvnrepository.com and try luck by searching key words, however sometimes it takes too much time, or I get stuck. So the question is, is there any formal/structured procedure to find

Re: MissingProjectException

2012-11-28 Thread Mikhail Kalkov
These escapes would work in bash, but Windows batch interpreter uses ^ character for escaping, and ignores double backslashes. Additionally, in Windows you cannot set variables with VAR=VALUE syntax. What is the interpreter this command is being passed to? Do you run it in Cygwin bash? Kind

Re: [ANN] Versions Maven Plugin 2.0 released

2012-11-28 Thread Stephen Connolly
Can you please raise a JIRA for the NPE On 28 November 2012 08:04, Wheeler, Dennis dwhee...@cobaltgroup.com wrote: Someone please help me from navigating through the forest of no return, that is Google, and tell me how to force our projects back to using the older 1.2 version of the

How to generate ZIP containing another generated ZIP with resources ?

2012-11-28 Thread Xavier NOPRE
Hi all, With Maven (3.0.3), I can generate a ZIP file containing some resources from my projet, with maven-assembly-plugin and an assembly.xml descriptor. OK. I can also generate 2 different ZIP files with 2 executions binded on different phases. OK. Now, I need to generate the second ZIP file

Re: How to generate ZIP containing another generated ZIP with resources ?

2012-11-28 Thread Jeff MAURY
Can'y you use a fileset with directory element being to your project output directory, it should include the first ZIP file, no ? Jeff On Wed, Nov 28, 2012 at 2:39 PM, Xavier NOPRE xno...@gmail.com wrote: Hi all, With Maven (3.0.3), I can generate a ZIP file containing some resources from

Re: How to generate ZIP containing another generated ZIP with resources ?

2012-11-28 Thread Ron Wheeler
General rule - one artifact from one project. First get your zip with a zip included, working by doing it the Maven way. Then see if it is worth optimizing the process. Ron On 28/11/2012 8:42 AM, Jeff MAURY wrote: Can'y you use a fileset with directory element being to your project output

Re: release:branch creates branch only from HEAD?

2012-11-28 Thread Benson Margulies
You're not the first people to complain about this. I believe I filed a JIRA. Let me see if I can stir up action. On Wed, Nov 28, 2012 at 8:51 AM, Aliaksei Lahachou aliaksei.lahac...@gmail.com wrote: Hello everyone! release:prepare/perform creates release only from HEAD revision and I can

Re: externalize conf files

2012-11-28 Thread Aliaksei Lahachou
Hello, I'm not sure what exactly you need, but here's a couple of guesses: 1. If you want to copy files from the project to another location, you may try resources:copy-resources [1]. 2. If you need to load properties from properties file, you may try build-configurator-maven-plugin [2]. [1]

Re: How to generate ZIP containing another generated ZIP with resources ?

2012-11-28 Thread Jeff MAURY
I don't feel he is not following the Maven way if the first ZIP is not attached to the project Jeff On Wed, Nov 28, 2012 at 2:50 PM, Ron Wheeler rwhee...@artifact-software.com wrote: General rule - one artifact from one project. First get your zip with a zip included, working by doing it

Re: AW: [mvn] bad artifacs returned

2012-11-28 Thread andhdo
Using an old copy of the libraries should work for you. (I have packaged the following dependencies: * jargs:jargs:1.0 * org.apache.xalan:xalan:2.7.1 * org.opensaml:openws:1.2.2) it applies to compile axis2:1.6.0 _m2_repo.rar http://maven.40175.n5.nabble.com/file/n5733969/_m2_repo.rar --

Re: How to generate ZIP containing another generated ZIP with resources ?

2012-11-28 Thread Xavier NOPRE
Hi Jeff, Ron, and other ! Yes, I had tried to use a fileset with directory. It did'nt work. But I had some mistakes, like ${project.build.outputDirectory} instead of ${project.build.directory}. I have found a solution on this way. I put it here if it can help anybody ... In my pom.xml, I have

assembly plugin - pass property from pom.xml to assembly descriptor

2012-11-28 Thread Steve Cohen
Are properties defined in pom.xml available in the execution of an assembly descriptor invoked from pom.xml via the assembly plugin? If not, is there a way to pass such definitions to the assembly plugin? - To unsubscribe,

assembly plugin - pass property from pom.xml to assembly descriptor?

2012-11-28 Thread Steve Cohen
Are properties defined in pom.xml available in the execution of an assembly descriptor invoked from pom.xml via the assembly plugin? If not, is there a way to pass such definitions to the assembly plugin? - To unsubscribe,

Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Jasper Floor
I use mvn on the command line. I actually solved the problem by setting the java version explicitly. I have jdk 1.6.0_33. I found some things on various sites which suggested mvn always compiles in 1.3 mode. You might not notice this in an IDE (if it is true) since your IDE is likely to fix this

Re: assembly plugin - pass property from pom.xml to assembly descriptor

2012-11-28 Thread Thomas Broyer
On Wed, Nov 28, 2012 at 4:06 PM, Steve Cohen stevec...@comcast.net wrote: Are properties defined in pom.xml available in the execution of an assembly descriptor invoked from pom.xml via the assembly plugin? I don't think so (TBH, I didn't even try, because I first saw… see below) If not, is

Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Stephen Connolly
Up until m-c-p 2.5ish the default value for source was 1.3. That was updated and newer versions of m-c-p use 1.5 as the default http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#source Maven 3.1.0 will have m-c-p's default version pinned at least at 2.5, so when that gets

Re: assembly plugin - pass property from pom.xml to assembly descriptor

2012-11-28 Thread Steve Cohen
On 11/28/2012 09:27 AM, Thomas Broyer wrote: On Wed, Nov 28, 2012 at 4:06 PM, Steve Cohen stevec...@comcast.net wrote: Are properties defined in pom.xml available in the execution of an assembly descriptor invoked from pom.xml via the assembly plugin? I don't think so (TBH, I didn't even try,

Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Ron Wheeler
Good to know that Maven is now only 8 years behind. Better than 12, I suppose! Ron On 28/11/2012 10:40 AM, Stephen Connolly wrote: Up until m-c-p 2.5ish the default value for source was 1.3. That was updated and newer versions of m-c-p use 1.5 as the default

Create text file in maven?

2012-11-28 Thread Steve Cohen
Is there a way in maven to echo some text provided via a property in pom.xml into a text file at a given location? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail:

RE: Create text file in maven?

2012-11-28 Thread Jim McCaskey
Steve, You can use the antrun plugin for that just using ant echo statements. http://maven.apache.org/plugins/maven-antrun-plugin/ There might be a plugin that can do just the echo, but I don't know what that would be. -Jim -Original Message- From: Steve Cohen

Re: Create text file in maven?

2012-11-28 Thread Mark H. Wood
On Wed, Nov 28, 2012 at 10:13:47AM -0600, Steve Cohen wrote: Is there a way in maven to echo some text provided via a property in pom.xml into a text file at a given location? Perhaps [modest cough] http://mypage.iu.edu/~mwood/FileWeaver/ -- Mark H. Wood, Lead System Programmer

Re: Retrieving the project source directories from MavenProject

2012-11-28 Thread Javier Ortiz
It worked! Thanks a lot. Now trying to figure out how to make the unit test work... On Tue, Nov 27, 2012 at 9:23 PM, Barrie Treloar baerr...@gmail.com wrote: On Wed, Nov 28, 2012 at 9:08 AM, Javier Ortiz javier.ortiz...@gmail.com wrote: Added the link to the sources:

Re: Create text file in maven?

2012-11-28 Thread Steve Cohen
On 11/28/2012 10:13 AM, Steve Cohen wrote: Is there a way in maven to echo some text provided via a property in pom.xml into a text file at a given location? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For

Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Curtis Rueden
Hi Ron, Good to know that Maven is now only 8 years behind. I blame Apple. -Curtis On Wed, Nov 28, 2012 at 9:51 AM, Ron Wheeler rwhee...@artifact-software.com wrote: Good to know that Maven is now only 8 years behind. Better than 12, I suppose! Ron On 28/11/2012 10:40 AM, Stephen

Re: Create text file in maven?

2012-11-28 Thread Jochen Wiedmann
Use the groovy-maven-plugin: http://groovy.codehaus.org/GMaven On Wed, Nov 28, 2012 at 5:13 PM, Steve Cohen sco...@javactivity.org wrote: Is there a way in maven to echo some text provided via a property in pom.xml into a text file at a given location?

Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Mark Derricutt
Now that Oracle are controlling Java on OSX we can no longer blame Apple - I'd love to see the default become Java 7 now. And if one needs to lock down to the older versions, lock them down. On 29/11/2012, at 7:07 AM, Curtis Rueden ctrue...@wisc.edu wrote: Good to know that Maven is now only

Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Curtis Rueden
Hi Mark, Now that Oracle are controlling Java on OSX we can no longer blame Apple Well, the new problem is that Java 7 only runs on Lion or later. So then I blame whoever made that decision. It has forced my projects to stay with Java 6 (which can for the most part be run in a Java 5

Re: assembly plugin - pass property from pom.xml to assembly descriptor?

2012-11-28 Thread Curtis Rueden
Hi Steve, Are properties defined in pom.xml available in the execution of an assembly descriptor invoked from pom.xml via the assembly plugin? I did a quick test, and it works for me. Anything defined in the pom.xml properties gets passed to the assembly descriptor, accessible via the usual

Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Ron Wheeler
+1 On 28/11/2012 1:36 PM, Mark Derricutt wrote: Now that Oracle are controlling Java on OSX we can no longer blame Apple - I'd love to see the default become Java 7 now. And if one needs to lock down to the older versions, lock them down. On 29/11/2012, at 7:07 AM, Curtis Rueden

Re: How to unpack dependencies in specific order ?

2012-11-28 Thread Jeff MAURY
Does not seem to be possible with unpack dependencies. One option would be to use unpack-dep with the flag that tell to unpack each dependency in a separate folder and then use the assembly, specifying the folders in the proper order. The drawback is that you must list each dependency and

Re: Create text file in maven?

2012-11-28 Thread Stephen Connolly
Resource filtering! On Wednesday, 28 November 2012, Steve Cohen wrote: Is there a way in maven to echo some text provided via a property in pom.xml into a text file at a given location? --**--**- To unsubscribe, e-mail:

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Barrie Treloar
I've not used the Java 1.5 annotations before. Does anyone know why this might be? weird as it works for all our plugins :-) How do you build that ? any sample ? Got one I can take a look at? Google isn't helpful because it picks up the javadoc ones too.

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Olivier Lamy
2012/11/28 Barrie Treloar baerr...@gmail.com: I've not used the Java 1.5 annotations before. Does anyone know why this might be? weird as it works for all our plugins :-) How do you build that ? any sample ? Got one I can take a look at?

Re: Retrieving the project source directories from MavenProject

2012-11-28 Thread Barrie Treloar
On Thu, Nov 29, 2012 at 3:32 AM, Javier Ortiz javier.ortiz...@gmail.com wrote: It worked! Thanks a lot. Now trying to figure out how to make the unit test work... Its more like an integration test than a unit test, as your mojo will need a lot of structure that it just painful to Mock. Have a

Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Manfred Moser
+1 even though that would trip up lots if users IMHO. Given that Jdk 6 will be deprecated in spring it might be a good move Ron Wheeler rwhee...@artifact-software.com wrote: +1 On 28/11/2012 1:36 PM, Mark Derricutt wrote: Now that Oracle are controlling Java on OSX we can no longer blame

gwt-maven-plugin - maven-release-plugin

2012-11-28 Thread Karl Heinz Marbaise
Hello to all, i just want to know if someone knows about some influences between the gwt-maven-plugin and the maven-release-plugin ? may be someone has already some kind of this experience ? Thanks in advance. Karl-Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 /

Re: gwt-maven-plugin - maven-release-plugin

2012-11-28 Thread Karl Heinz Marbaise
i just want to know if someone knows about some influences between the gwt-maven-plugin and the maven-release-plugin ? missed to add the link to this: https://groups.google.com/forum/?fromgroups=#!topic/codehaus-mojo-gwt-maven-plugin-users/dExd-zgzs9k But doesn't the hint have the

Re: gwt-maven-plugin - maven-release-plugin

2012-11-28 Thread Joachim Van der Auwera
We have used gwt-maven-plugin in combination with the maven-release-plugin without problems in the Geomajas project. We do not use compileSourcesArtifacts though, we always either include the sources in the jars themselves or include the sources jars as dependency in the project. Kind

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Jason van Zyl
The MavenProject is not a component that is injected by the container. It's handled by the PluginParameterExpressionEvaluator[1] which looks at all the non-@component things and sets their values once the Mojo instance is constructed. [1]:

Re: How to unpack dependencies in specific order ?

2012-11-28 Thread Xavier NOPRE
Hi Jeff, I found a solution using the copy-maven-plugin that allows to unpack and pack (and other operations) : https://gist.github.com/4164769 The plugin : http://evgeny-goldin.com/wiki/Copy-maven-plugin Thanks, Xavier 2012/11/28 Jeff MAURY jeffma...@jeffmaury.com Does not seem to be

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Barrie Treloar
On Thu, Nov 29, 2012 at 8:49 AM, Jason van Zyl ja...@tesla.io wrote: The MavenProject is not a component that is injected by the container. It's handled by the PluginParameterExpressionEvaluator[1] which looks at all the non-@component things and sets their values once the Mojo instance is

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Olivier Lamy
see http://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/index.html and http://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html 2012/11/29 Barrie Treloar baerr...@gmail.com: On Thu, Nov 29, 2012 at 8:49 AM, Jason van Zyl ja...@tesla.io wrote:

Re: [ANN] Versions Maven Plugin 2.0 released

2012-11-28 Thread Wheeler, Dennis
While I would love to assist, this issue has not been consistently reproducible. It hasn't yet failed on our automated trunk builds, but consistently fails on our automated branch builds (it consistently fails for me locally both in the trunk and the branch, but the project's primary developer

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Barrie Treloar
On Thu, Nov 29, 2012 at 9:37 AM, Olivier Lamy ol...@apache.org wrote: see http://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/index.html and http://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html I tried those with his example project I

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Olivier Lamy
2012/11/29 Barrie Treloar baerr...@gmail.com: On Thu, Nov 29, 2012 at 9:37 AM, Olivier Lamy ol...@apache.org wrote: see http://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/index.html and http://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Barrie Treloar
On Thu, Nov 29, 2012 at 10:14 AM, Olivier Lamy ol...@apache.org wrote: then don't miss plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-plugin-plugin/artifactId version3.2/version configuration !-- see

Re: [ANN] Versions Maven Plugin 2.0 released

2012-11-28 Thread Stephen Connolly
Even the stack trace from the NPE would help On 28 November 2012 23:31, Wheeler, Dennis dwhee...@cobaltgroup.com wrote: While I would love to assist, this issue has not been consistently reproducible. It hasn't yet failed on our automated trunk builds, but consistently fails on our automated

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Jason van Zyl
Internally the way @component works is to take the role of component supplied or figure it out. With that role a lookup against the container is executed. The MavenProject is not something that is available from the container because it is not a component. So I doubt it works, unless some magic

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Hervé BOUTEMY
magic has been done: see http://maven.apache.org/plugin-tools/apidocs/src- html/org/apache/maven/tools/plugin/util/PluginUtils.html#line.40 Le mercredi 28 novembre 2012 18:54:11 Jason van Zyl a écrit : Internally the way @component works is to take the role of component supplied or figure it

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Jason van Zyl
That's not right, and confusing. It's not a component. jvz On 2012-11-28, at 6:57 PM, Hervé BOUTEMY herve.bout...@free.fr wrote: magic has been done: see http://maven.apache.org/plugin-tools/apidocs/src- html/org/apache/maven/tools/plugin/util/PluginUtils.html#line.40 Le mercredi 28

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Jason van Zyl
I would remove that from the doco. I assume the @Parameter method still works and just keep that method. jvz On 2012-11-28, at 6:57 PM, Hervé BOUTEMY herve.bout...@free.fr wrote: magic has been done: see http://maven.apache.org/plugin-tools/apidocs/src-

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Hervé BOUTEMY
it's confusing for people mastering a lot of things for normal people, it was really not easy to understand, and not really documented, neither PluginParameterExpressionEvaluator (which I documented after I uderstood) nor the '@parameter default-value=${project} readonly=true' pattern (lots of

Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Mark Derricutt
Do users often accidentally upgrade major releases of maven without care or thought? ….maybe I shouldn't ask that tho :) On 29/11/2012, at 9:47 AM, Manfred Moser manf...@mosabuam.com wrote: +1 even though that would trip up lots if users IMHO.

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Hervé BOUTEMY
no, we choose to do that for ease of use for the average plugin developer we had a long discussion on how to ease plugin development, find a better name than expression, understand that such Maven object injection case is best written as default-value than expression, and so on... and actual

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Jason van Zyl
How does it help by telling them something factually incorrect? A component has a specific definition of being an instance created by the container. On Nov 28, 2012, at 7:23 PM, Hervé BOUTEMY herve.bout...@free.fr wrote: no, we choose to do that for ease of use for the average plugin

Re: Mojo Java 1.5 @Component MavenProject (returns null) vs JavaDoc @parameter expression=${project} works

2012-11-28 Thread Hervé BOUTEMY
I wish we had this good discussion in may, when we wroked on plugin-tools ease of use enhancements I understand your point And in fact, when I write that the feature was added partly because parameter default-value=${project} read-only=true, I see I didn't document it either, now that I'm able