Re: Release a version

2009-10-07 Thread Jörg Schaible
Arnaud HERITIER wrote at Dienstag, 6. Oktober 2009 23:58: It isn't possible actually.We do that to enforce our users to have SNAPSHOTs version in their SVN and this is for a good reason: If somebody change some file of the project, but does not adjust the POM, the next build will produce an

Differences between app servers

2009-10-07 Thread Jim C.
Are there archetypes or something else out there that will differentiate between application servers? We try to write cross platform Java and it seems like our app server vendors are fighting us tooth and nail. I suppose that is the reason for GlassFish but our shop isn't allowed to use it. Jim

Re: How to add generated resources directory in a plugin

2009-10-07 Thread Werner Guttmann
Which is exactly what I ended up doing. Thanks for everybody's patience ... Werner Roland Asmann wrote: Werber, Understandable. Then add the generated folder as a sources-folder and a resources-folder with a filter on '**/*.java'. I guess that would be the easiest way, in case more

Re: Invoking a plugin from within another plugin

2009-10-07 Thread Samuel Le Berrigaud
Hey Allan, you might want to check out the Mojo Executor: http://code.google.com/p/mojo-executor/ SaM On Wed, Oct 7, 2009 at 8:01 AM, Allan Ditzel allan.dit...@gmail.com wrote: Hi all, What is the best accepted way for one plugin to invoke another? I can obviously do it out of process from

Re: Differences between app servers

2009-10-07 Thread Brett Randall
On Wed, Oct 7, 2009 at 11:21 AM, Jim C. jclli...@gmail.com wrote: Are there archetypes or something else out there that will differentiate between application servers? We try to write cross platform Java and it seems like our app server vendors are fighting us tooth and nail. I suppose that

HowTo assemble assemblies?

2009-10-07 Thread mrichey
Hi, we got stuck in assembling an assembly. Given the situation as shown below: |-| | B1 | | pom | |-| |-| |-| | A1 | | A2 | | pom | | pom | |-|

Re: Buildable standalone source bundles with the assembly plugin

2009-10-07 Thread Mark Hobson
2009/10/7 Brett Porter br...@apache.org: On 06/10/2009, at 8:22 PM, Mark Hobson wrote: Oh right, I hadn't seen that mentioned anywhere.  So does -pl support building the project list dynamically from subdirectories like -r does? Yes, though I think it requires the proper modules set up to do

Getting error while configuring Maven

2009-10-07 Thread anshree123
Hi everyone. I am working with ServiceMix ESB and for that i need maven configured on my system. I work behind a proxy so i did the proxy settings in settings.xml file in ${Maven_Home}/conf/settings.xml. But when i run the command mvn jetty:run or for that matter mvn install for a pom.xml file,

Re: The plugin 'org.apache.maven.plugins:maven-site-plugin' does not exist or no valid version could be found

2009-10-07 Thread anshree123
Hi Thanks for your reply. I have removed the comment markings. I think i am missing something out in configuration. I have just modified the proxy settings. Is there anything else i need ot modify?? Regards, Anushree Wayne Fay wrote: I am new at Maven so not able to figure out the problem.

Re: Maven Assembly Plugin

2009-10-07 Thread Bert van Brakel
Try adding a directory./directory under fileset like below ?xml version=1.0? assembly ... fileSets fileSet directory./directory includes /includes

Re: Getting error while configuring Maven

2009-10-07 Thread Anders Hammar
Could you please post your proxy configuration in your settings.xml? /Anders On Wed, Oct 7, 2009 at 12:20, anshree123 anushre...@tcs.com wrote: Hi everyone. I am working with ServiceMix ESB and for that i need maven configured on my system. I work behind a proxy so i did the proxy settings

Re: My application is not getting compiled using Maven

2009-10-07 Thread rasahere
what value i should give here is it like maven.compile.encoding=UTF8 Lukas Theussl-4 wrote: Setting the maven.compile.encoding property should be more useful for your case than maven.compile.source. HTH, -Lukas Thomas Sundberg wrote: Hi! What happens if you remove the

Re: My application is not getting compiled using Maven

2009-10-07 Thread rasahere
The existing application uses Maven 1.0 . Luca Li Greci wrote: 2009/9/23 rasahere rasa.still.h...@gmail.com Hi, I am using Maven 1.0 and my jdk is 1.5. Now when i am trying to build my application jar i am getting some strange errors. warning: unmappable character for encoding UTF8

Re: My application is not getting compiled using Maven

2009-10-07 Thread Lukas Theussl
rasahere wrote: what value i should give here Whatever your source files are encoded in. is it like maven.compile.encoding=UTF8 I guess it's something else as the error suggests. -Lukas Lukas Theussl-4 wrote: Setting the maven.compile.encoding property should be more useful

Re: Invoking a plugin from within another plugin

2009-10-07 Thread Allan Ditzel
Hi Sam, That's beautiful! Thanks! Allan On Tue, Oct 6, 2009 at 5:06 PM, Samuel Le Berrigaud sleberrig...@atlassian.com wrote: Hey Allan, you might want to check out the Mojo Executor: http://code.google.com/p/mojo-executor/ SaM On Wed, Oct 7, 2009 at 8:01 AM, Allan Ditzel

Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen
All, I have split my unit tests out into a separate project which will eventually become a module (not there yet). I've got it mostly sorted but I'm getting compile errors on classes that are part of the main project which uses war packaging. Maven doesn't seem to add the WAR's code into

Re: Unit test project depending on WAR project code

2009-10-07 Thread Roland Asmann
Personally, I don't put ANY code in the WAR. That will definitely solve your problem! :-) On Wednesday 07 October 2009 16:03, Chris Bredesen wrote: All, I have split my unit tests out into a separate project which will eventually become a module (not there yet). I've got it mostly sorted

Re: Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen
Why stop there? I'll just not write ANY code. Stress-free life! :) :) On 10/07/2009 10:13 AM, Roland Asmann wrote: Personally, I don't put ANY code in the WAR. That will definitely solve your problem! :-) On Wednesday 07 October 2009 16:03, Chris Bredesen wrote: All, I have split my unit

Re: Unit test project depending on WAR project code

2009-10-07 Thread Roland Asmann
Thatś not the way I meant it... Sorry if it looked that way! When I have a WAR-project, I normally create 2 modules: 1 with the java-code (package: JAR) and 1 with the other WAR-stuff (JSP, CSS, etc - package: WAR). That way, I can use the code inside the JAR as a normal dependency in any and

Re: Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen
I got your meaning and I will investigate that. I generally try to KISS and adding a module to create a jar to go in a war kinda violates that. But if it's the only way out of this, I'll try it. Oddly, when I remove the packagingwar/packaging from the unit test project's dependency list, it

Versions plugin and metadata

2009-10-07 Thread Lewis, Eric
Hi I'm having a lot of trouble with the versions plugin. I was doing a lot of tests where I deployed a lot of versions and SNAPSHOTs into our local Nexus repo. After the tests I deleted all these test versions from Nexus and rebuilt the index. However, I forgot the local repo, where

AW: Versions plugin and metadata

2009-10-07 Thread Lewis, Eric
Umm... after re-reading: I don't mean that the versions plugin is the source of trouble, but my messed up repo is! Best regards, Eric -Ursprüngliche Nachricht- Von: Lewis, Eric [mailto:eric.le...@ipi.ch] Gesendet: Mittwoch, 7. Oktober 2009 17:17 An: Maven Users List Betreff:

[Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread NGUYEN Cong Kinh
Hello everybody, Is there anyway to configure MAVEN_OPTS from the POM file (no variable)? For example, I want to configure Maven's memory is 768m. But I don't want to add the MAVEN_OPTS variable in the environment. This is possible to configure my POM? If yes, please send to me how to do

Injecting custom ConflictResolver using Embedder

2009-10-07 Thread Fabian Christ
Hi, I'm doing some research on conflict resolving between Java components. Now I would like to use my own ConflictResolver during a Maven run. I'm using Maven Embedder in my application and tried several ways on how to manipulate the Plexus container to use my own ConflictResolver. I used the

Fetching the latest snapshot version without maven

2009-10-07 Thread Beat Strasser
Hi My task is to fetch the latest snapshot version of a maven artifact. How can I do this without having to parse the maven-metadata.xml and figuring out what the latest timestamp is? We used to deploy snapshot artifacts with a unique identifier, so the artifacts URL was fix and I could

RE: Unit test project depending on WAR project code

2009-10-07 Thread Edelson, Justin
If you question is - can I use a WAR file as a dependency and get the classes inside the WAR file added to the classpath, the answer is no. This has nothing to do with Maven - it's Java. -Original Message- From: Chris Bredesen [mailto:cbrede...@redhat.com] Sent: Wednesday, October 07,

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Paul Benedict
You could set it in your mvn.bat, right? On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh cong_kinh.ngu...@it-sudparis.eu wrote: Hello everybody, Is there anyway to configure MAVEN_OPTS from the POM file (no variable)? For example, I want to configure Maven's memory is 768m. But I don't want

Re: Differences between app servers

2009-10-07 Thread Jim Collings
Not so much. Take Weblogic for example. You really can't deploy a Struts2 based WAR file to it because of library conflicts. It would be cool if I could specify somehow, somewhere that this is a Weblogic project. Then it would always build as an ear and would include a weblogic-application.xml

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread NGUYEN Cong Kinh
Hello Paul, In fact, I don't want to set this. My question is that how to directly do this in my POM? Kinh Paul Benedict a écrit : You could set it in your mvn.bat, right? On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh cong_kinh.ngu...@it-sudparis.eu wrote: Hello everybody, Is

Re: Fetching the latest snapshot version without maven

2009-10-07 Thread Jeff Johnston
Nexus has a REST API that could help http://www.sonatype.com/people/2008/11/searching-with-the-sonatype-nexus-rest-api-groovy/ 2009/10/7 Beat Strasser beat.stras...@inventage.com Hi My task is to fetch the latest snapshot version of a maven artifact. How can I do this without having to

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Paul Benedict
You can't and you shouldn't. The POM describes a Project, not the Java environment for Maven. On Wed, Oct 7, 2009 at 11:07 AM, NGUYEN Cong Kinh cong_kinh.ngu...@it-sudparis.eu wrote: Hello Paul, In fact, I don't want to set this. My question is that how to directly do this in my POM? Kinh

RE: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Todd Thiessen
I believe the compiler plugin does what you want. http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html --- Todd Thiessen -Original Message- From: NGUYEN Cong Kinh [mailto:cong_kinh.ngu...@it-sudparis.eu] Sent: Wednesday, October 07,

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread NGUYEN Cong Kinh
Hello Todd, This is other thing. Thank you, Kinh Todd Thiessen a écrit : I believe the compiler plugin does what you want. http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html --- Todd Thiessen -Original Message- From: NGUYEN

RE: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Edelson, Justin
No. Nor could their be, at least for the case you're describing. Maven's JVM has already started by the time it parses the POM. For plugins which fork a new VM, you may be able to provide these options. For example:

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread David Hoffer
And the surefire plugin support this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version${maven-surefire-plugin.version}/version configuration forkModeonce/forkMode

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread David Hoffer
Right, maven would have to fork a new vm for the project. On Wed, Oct 7, 2009 at 10:21 AM, Edelson, Justin justin.edel...@mtvstaff.com wrote: No. Nor could their be, at least for the case you're describing. Maven's JVM has already started by the time it parses the POM. For plugins which fork

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Ivalo
Even better is use files to put these MAVEN_OPTS definitions in Linux env : /etc/mavenrc or $HOME/.mavenrc file in Windows %HOMEDRIVE%%HOMEPATH%\mavenrc_pre.bat file which is usually C:\Documents and Settings\username\mavenrc_pre.bat With this way each Maven user can configure exact values

Re: Injecting custom ConflictResolver using Embedder

2009-10-07 Thread Jason van Zyl
Do not cross post between the user and dev list. On 2009-10-07, at 8:48 AM, Fabian Christ wrote: Hi, I'm doing some research on conflict resolving between Java components. Now I would like to use my own ConflictResolver during a Maven run. I'm using Maven Embedder in my application and

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread Paul Benedict
Just so you guys know, if you use a Maven plugin to set MAVEN_OPTS, it would only take effect if Maven spawns a child process. It will never effect the main Maven execution. Paul On Wed, Oct 7, 2009 at 11:24 AM, Ivalo iv...@iki.fi wrote: Even better is use files to put these MAVEN_OPTS

Maven/Nexus/Hudson/EC2

2009-10-07 Thread Michael Hüttermann
Hello, do you plan to continue the work in the context nexus/hudson/ec2 you kicked off and described here: http://www.sonatype.com/people/2009/06/nexus-open-source-and-hudson-on-ec2/ E.g. are you planning to provide new Maven versions in ec2 continuously, to add more convenience features, .. or

Re: Problem compiling FlexLibrary using include directive

2009-10-07 Thread Marvin Froeder
What maven plugin are you using? VELO On Tue, Oct 6, 2009 at 3:03 AM, boyetp boy...@yahoo.com wrote: Hi All, I hope someone can help me with my issue using Maven to compile Flex Library Project. I got this following files. the class App.as package com.test { public class

Re: Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen
This makes sense. Thanks Justin. -Chris On 10/07/2009 11:51 AM, Edelson, Justin wrote: If you question is - can I use a WAR file as a dependency and get the classes inside the WAR file added to the classpath, the answer is no. This has nothing to do with Maven - it's Java. -Original

release notes for plugins

2009-10-07 Thread EJ Ciramella
Is there a report (like the changes report) that the various plugins (things like the war plugin) run? I'm going through the process of upgrading to 2.2.1 of maven (from 2.0.9) and want to see what's actually changed versus just building and diffing my brains out.

Re: resources in an ant plugin

2009-10-07 Thread yoyomohan
Hi Ben, I'm stuck in the same problem .pls. can you share the solution for the problem 'placing and calling scripts [ perl ] from custom ant plugin jar file' only. Thanks in advance. BenTatham wrote: For future finders of this message, see here for some solutions:

Re: Access file resources from ant based plugin

2009-10-07 Thread yoyomohan
Hi , I'm stuck in the same problem .pls. can you share the solution for the problem 'placing and calling scripts [ perl ] from custom ant plugin jar file' only. Thanks in advance. Marcel Schutte wrote: Hello, I've written an ant based plugin that needs access to file based

Re: Differences between app servers

2009-10-07 Thread Brett Randall
Hi Jim If you are not already using them, you might like to take a look at Maven Profiles. By activating a profile, you can influence the artifacts and resources which make up a particular build e.g. targeting a specific appserver. If you write a lot of web apps for deployment to different

Sonar 1.11 just released

2009-10-07 Thread Olivier Gaudin
The Sonar Team is pleased to announce the release of Sonar 1.11. The new version brings three main functionality to the platform : * A Components service to navigate within resources and compare them * Addition of the branch code coverage by unit tests to complete the coverage by line

pdf/site plugin and images not found

2009-10-07 Thread Roberto Lo Giacco
The PDF plugin seems not able to find my site images producing this output: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-pdf-plugin:1.0:pdf' -- [DEBUG] (f) aggregate = true [DEBUG] (f) docDescriptor = /shared/Java/smartweb/core/doc/site/pdf.xml [DEBUG] (f) implementation = fo

Setting Java heap space

2009-10-07 Thread Lionel van den Berg
Hi all, I'm having some issues with Java heap space. To get around this I have added the line MAVEN_OPTS=-Xmx128m to my mvn.bat file. However, I would prefer to set it on a project by project basis or even on command line. Is it possible to pass it as an argument when running mvn ...? Or can it

Re: Getting error while configuring Maven

2009-10-07 Thread anshree123
Hi thanks for the reply.. Here is the entire settings.xml file. ?xml version=1.0 encoding=UTF-8? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright