Re: setting ant attribute with value from pom

2008-12-17 Thread SamehAnsary
Well my first shot at this is that you are embedding artifact:pom inside artifact:dependencies. The correct way is: !-- This loads the POM -- artifact:pom id=maven.project file=pom.xml / !-- This loads stuff from the POM -- artifact:dependencies pathId=dependency.classpath pom

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Martin Höller
On Tuesday 16 December 2008 Trevor Harmon wrote: On Dec 16, 2008, at 10:42 AM, Martin Höller wrote: You are doing it wrong. Maven has no targets like ant has. Maven has lifecylces [0] which is built of phases (e.g. 'compile', package', 'install'). Plugins are attached to phases and are

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Martin Höller
On Tuesday 16 December 2008 Trevor Harmon wrote: Let me use a different plugin as an example. Let's say I'm developing a desktop application, and it runs in two different modes depending on the command-line options. I don't want to keep typing in the same long string of options all the time,

Re: Version ranges

2008-12-17 Thread Stephen Connolly
2008/12/17 Bracewell, Robert rbrac...@qualcomm.com Hi, Do version ranges work across Maven plugins or are they limited to Maven core functionality? As an example I defined a dependency with a range of version [4.4.2.01,)/version and all was well. But when I tried to use the same notation

site:deploy vs. site:stage vs. site:stage-deploy

2008-12-17 Thread Harper, Brad
I've been struggling with multi-module site deployment [via scp] in conjunction with the dashboard reporting plugin and am convinced that it must be due to a basic misunderstanding about expected behavior on my part. From http://maven.apache.org/plugins/maven-site-plugin/plugin-info.html, I see

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 9:14 AM, Todd Thiessen wrote: This prints hello and goodbye as part of the clean phase. ... Doesn't this fit your needs? No, it doesn't fit my needs because it always prints both hello and goodbye. I want to print either hello or goodbye. For example, in the scenario

Maven and JBoss

2008-12-17 Thread Rouvinez, Jean-Claude
Hi, I want to do the following: - Start a Jboss 5 App Server located on a remote server. - Stop a Jboss 5 App Server located on a remote server. - Deploy artifacts on a Jboss 5 App Server on a remote server. - Deploy artifacts on a locally installed Jboss 5 App Server. I had a look at: -

override the maven profile doesn't work

2008-12-17 Thread aymen83
hi all, i have a question: profiles are done to provide a specific environment of building a project, so what i wanna do is: - i wanna provide a profile for building my project using a différent version of framework such as spring, to do this i changed the settings.xml of maven and added another

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 3:33 AM, Martin Höller wrote: mvn -Pinstall4j package Why would you have to use a profile for this? Because it takes five minutes to run. I don't want to wait five minutes every time I package, install, or deploy my code. The install4j stuff only needs to happen

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Martin Höller
On Wednesday 17 December 2008 Trevor Harmon wrote: On Dec 17, 2008, at 3:33 AM, Martin Höller wrote: mvn -Pinstall4j package Why would you have to use a profile for this? Because it takes five minutes to run. Ok. My approach would then be to create one profile which is only executed

RE: Version ranges

2008-12-17 Thread Brian E. Fox
The dependency:copy/unpack goals don't work with ranges and probably won't since replicating it is a huge mess. Instead, declare the artifact as a dependency and use copy-dependencies/unpack-dependencies along with some include/exclude filters in the config and it will do the same thing.

Re: How do I build one jar per class file controlling the name of the jar?

2008-12-17 Thread CheapLisa
Yes, I posted that I needed to create individual jar files for each class in my posting for help so my question is , How do I create individual jar files for each class? If you have any ideas, and have an example, please let me know. In my original posting I ask for help with creating

RE: [2.0.10 RC6] please test

2008-12-17 Thread Brian E. Fox
Interesting, what about RC4? -Original Message- From: Henrique Prange [mailto:hpra...@gmail.com] Sent: Wednesday, December 17, 2008 12:54 PM To: Maven Developers List Cc: Maven Users List Subject: Re: [2.0.10 RC6] please test Hi Brian, RC6 - ERROR! RC5 - ERROR! RC3 - OK! Sorry for not

Re: [2.0.10 RC6] please test

2008-12-17 Thread Henrique Prange
Hi Brian, RC4 also works correctly. Cheers, Henrique Brian E. Fox wrote: Interesting, what about RC4? -Original Message- From: Henrique Prange [mailto:hpra...@gmail.com] Sent: Wednesday, December 17, 2008 12:54 PM To: Maven Developers List Cc: Maven Users List Subject: Re: [2.0.10

RE: How do I build one jar per class file controlling the name of the jar?

2008-12-17 Thread Edelson, Justin
Did you try using additional executions of the jar plugin? I imagine with a combination of the classifier and includes you could accomplish this. It wouldn't be dynamic in the sense that you would need to specify each class file in a separate execution. I suspect you'd need to write your own

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Martin Höller
On Wednesday 17 December 2008 Trevor Harmon wrote: On Dec 17, 2008, at 3:54 AM, Martin Höller wrote: And BTW: Maven's primary goal is to help building and packaging software, not starting the developed piece of software, so IMHO the exec- plugin is not a good example here. Well I have

Re: Tests run fine in NetBeans, but fail using command line Maven

2008-12-17 Thread James Adams
Thanks a lot for your attempts to help me solve this problem. This appears to be unrelated to Maven, sorry to bother this group with a non-Maven issue. --James Geoffrey Wiseman wrote: On Tue, Dec 16, 2008 at 5:45 PM, James Adams monoco...@gmail.com wrote: Yes I get the same thing from

Re: maven 2.0.9+ and windows absolute paths

2008-12-17 Thread Dmitry Beransky
On Tue, Dec 16, 2008 at 3:34 PM, Jörg Schaible joerg.schai...@gmx.de wrote: Dmitry Beransky wrote: Hi, It seems that Maven 2.0.9 has introduced a bug where Windows absolute paths aren't being properly resolved. [snip] Are you running Maven under Cygwin? Nope, pure unadulterated Windows.

RE: Are Maven profiles like Ant targets?

2008-12-17 Thread Todd Thiessen
Hmmm. Did you try putting something like this in your POM? ... plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution idprint-hello/id phaseclean/phase goals

Re: Keep version when doing a release

2008-12-17 Thread Anders Hammar
Not happy with the answers in your earlier post? http://www.nabble.com/-ANN--Maven-Release-Plugin-2.0-beta-8-Released-td20256939.html I believe a best practise advice is in there. Keep your stable projects in separate trunks! /Anders Gunnar.Bostrom wrote: Hi, I have a multi module project

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 12:18 PM, Martin Höller wrote: Ok. My approach would then be to create one profile which is only executed before releasing or when running in the contiuous-integration server. This profile would configure the antrun plugin to execute install4j, run integration tests, and

RE: Using a SNAPSHOT version for a parent

2008-12-17 Thread Todd Thiessen
Thanks for the response Brian. I was able to track it down from a few hints from others on this list. The problem was in my settings.xml file. I didn't set snapshots to true. --- Todd Thiessen -Original Message- From: Brian E. Fox [mailto:bri...@reply.infinity.nu] Sent: Tuesday,

Re: [2.0.10 RC6] please test

2008-12-17 Thread Borut Bolčina
Hello, I don't know if this was discussed before - why does super pom have plugins which are betas and even alphas? Why are not versions of the plugins consolidated to solid versions for each release of Maven? I know the quality of some alpha product may be even better then some not-beta or

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Geoffrey Wiseman
On Wed, Dec 17, 2008 at 12:17 PM, Trevor Harmon tre...@vocaro.com wrote: Yes, I was trying to simplify things with that subject line but I guess I just made them more confusing. Perhaps a better question would be, Are Maven profiles the only way to accomplish what I was able to accomplish with

Re: [2.0.10 RC6] please test

2008-12-17 Thread Henrique Prange
Hi Brian, RC6 - ERROR! RC5 - ERROR! RC3 - OK! Sorry for not detecting the problem in the RC5. I didn't find time to test this release candidate. :( Cheers, Henrique Brian E. Fox wrote: Henrique, could you also try with RC5 to see if it is a new issue in this RC? I'm betting it is related

RE: [2.0.10 RC6] please test

2008-12-17 Thread Brian E. Fox
Henrique, could you also try with RC5 to see if it is a new issue in this RC? I'm betting it is related to the Modello change introduced in RC6. RC5 is at: http://people.apache.org/~brianf/RC-5/org/apache/maven/apache-maven/2.0. 10-RC5/ -Original Message- From: Henrique Prange

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 3:54 AM, Martin Höller wrote: And BTW: Maven's primary goal is to help building and packaging software, not starting the developed piece of software, so IMHO the exec- plugin is not a good example here. Well I have to disagree with you there. Testing is also not about

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 11:45 AM, Geoffrey Wiseman wrote: All I'm really trying to say (and I suspect what others are trying to say) is that the answer to your original question, Are profiles intended to play the same role as Ant targets? is No. They aren't. Yes, I was trying to simplify

Re: [2.0.10 RC6] please test

2008-12-17 Thread Henrique Prange
Hi Brian, I found a problem while executing 'mvn clean install' in one of my projects. (See the error below) I verified and the build works with 2.0.9 and 2.1.0-M1 without problems. Cheers, Henrique [ERROR] FATAL

Promoteing SNAPSHOT to releases.

2008-12-17 Thread Clark, Michael
I have a problem that I assume is not unique in that we have no idea what build will actually be our shipping product prior to releasing. We use the standard method of RC1, RC2 ... GA So how do you promote a SNAPSHOT to a releases build. TIA Michael Clark

custuminsing profile

2008-12-17 Thread aymen83
hi all, i have a question: profiles are done to provide a specific environment of building a project, so what i wanna do is: - i wanna provide a profile for building my project using a différent version of framework such as spring, to do this i changed the settings.xml of maven and added another

RE: Promoteing SNAPSHOT to releases.

2008-12-17 Thread Todd Thiessen
http://maven.apache.org/plugins/maven-release-plugin/ The documentation ok for the plugin but you should find many other references online when googling how to do a maven release. Here is one decent one: http://weblogs.java.net/blog/johnsmart/archive/2008/08/using_the_maven.h tml --- Todd

RE: Deploy a POM with Properties Filterred/interpolated

2008-12-17 Thread De Smet Ringo
Trevor, we have many variable properties in our POMs to control artifact and depedency artifact versions and need these interpolated before deployment. If you use the maven-release-plugin, you can use -DgenerateReleasePoms=true as a command line option to generate a release-pom.xml.

RE: Maven and JBoss

2008-12-17 Thread Durbha, Praveen (GE Healthcare)
I used the maven ant run plugin to ftp the build artifacts(WARs) into a remote jboss server..only pre-requisite for this is that you need to have an FTP server set up on the remote machine... Hope this helps! Thanks -Original Message- From: Rouvinez, Jean-Claude

RE: [2.0.10 RC6] please test

2008-12-17 Thread Brian E. Fox
I absolutely agree but it's not that simple. When we introduced the concept of providing defaults in 2.0.9, we had to maintain the status quo. That is we had to lock down at the current versions of plugins to avoid reverting people. This was the line in the sand as they say. We then have a

Keep version when doing a release

2008-12-17 Thread Gunnar.Bostrom
Hi, I have a multi module project that I want to make a release for. Some of the modules changes frequently and they are marked as SNAPSHOTS. Some modules are very stable and have a fixed version. I run maven 2 release plug-in 2.0-beta-7 with the --batch-mode parameter. The problem is that the

Re: Promoteing SNAPSHOT to releases.

2008-12-17 Thread Geoffrey Wiseman
On Wed, Dec 17, 2008 at 3:12 PM, Todd Thiessen thies...@nortel.com wrote: http://maven.apache.org/plugins/maven-release-plugin/ The documentation ok for the plugin but you should find many other references online when googling how to do a maven release. Here is one decent one: The upshot

Access Is Denied Error

2008-12-17 Thread ufuk dogdu
Hi, i downloaded logicaldoc-3.6.0 sources from sourgeforge.net and i want to change it and compile. my configuration is Maven version: 2.0.9Java version: 1.6.0_10OS name: windows xp version: 5.1 arch: x86 Family: windows i changed the source and want to make a new war file. i am compiling

Re: Keep version when doing a release

2008-12-17 Thread Baptiste MATHUS
I might be only me, but I find it very disrespectful to people who tried to help you to just re-post your original question as if nobody ever gave any answer. Maybe you did it unintentionally because you didn't receive the mail? then check your mail configuration. If not and you received those

Is it possible to override the location of a module?

2008-12-17 Thread Matthew Jaskula
As part of a conversion from ant to maven I'm exploring the use of a multi-module project. Since this is a legacy project we'd rather not move things around. So the child modules will not necessarily be in directories directly beneath the parent pom. Is there any way to override this location in

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Geoffrey Wiseman
On Wed, Dec 17, 2008 at 11:17 AM, Trevor Harmon tre...@vocaro.com wrote: No, it doesn't fit my needs because it always prints both hello and goodbye. I want to print either hello or goodbye. For example, in the scenario I mentioned earlier, I want to launch a desktop application with one

Re: Problems with maven 2.0.9, 2.1.0-M1 and profiles.

2008-12-17 Thread Carlos Chávez
Hi everyone, thanks for the answer. Want i found now, is that i need to run two times the install goal in order to get the substitution of the variables. mvn -Pgator clean install - The variables don't work. So i have to do: mvn clean mvn -Pgator install - The variables don't work. mvn -Pgator

SV: Keep version when doing a release

2008-12-17 Thread Gunnar.Bostrom
Hi, Sorry for the repost, but I couldn't find my message in any archive for maven so I thought it did not get to the mailing list. I have not seen any response either. At least I know now that the post reached the list. Thank you! /Gunnar -Ursprungligt meddelande- Från:

ITs/verification and comparison of results - tools to support this?

2008-12-17 Thread Barrie Treloar
Does anyone know any tools to support integration tests and verifying that the results match what was expected? Something that checks the files created against the expected files after replacing variables or perhaps using pattern matching.

Re: ITs/verification and comparison of results - tools to support this?

2008-12-17 Thread Arnaud HERITIER
I think you have in mind to replace ITs in the maven-eclipse-plugin ?? Arnaud On Wed, Dec 17, 2008 at 9:32 PM, Barrie Treloar baerr...@gmail.com wrote: Does anyone know any tools to support integration tests and verifying that the results match what was expected? Something that checks the

maven-eclipse-plugin generates bad source-folders in combination with relative folders

2008-12-17 Thread Thomas . Rosendorf
Hi, I want to migrate some existing projects to maven. My Directory-Stucture looks following: D:\ - Projekte - Maven -maven-user-list - maven-project-dir - existing-src-dir I need to add the Sources in existing-src-dir to the pom in maven-project-dir. In my pom.xml I

Re: maven-eclipse-plugin generates bad source-folders in combination with relative folders

2008-12-17 Thread Barrie Treloar
Can you raise a JIRA with a test case please? On Wed, Dec 17, 2008 at 10:04 PM, thomas.rosend...@bg-phoenics.de wrote: Hi, I want to migrate some existing projects to maven. My Directory-Stucture looks following: D:\ - Projekte - Maven -maven-user-list - maven-project-dir

Re: ITs/verification and comparison of results - tools to support this?

2008-12-17 Thread Barrie Treloar
On Thu, Dec 18, 2008 at 7:12 AM, Arnaud HERITIER aherit...@gmail.com wrote: I think you have in mind to replace ITs in the maven-eclipse-plugin ?? :) Yes. More specifically documenting a common approach so that all plugins can take advantage of it. We already have enough invoker type plugins but

Re: ITs/verification and comparison of results - tools to support this?

2008-12-17 Thread Brett Porter
You'll find this helpful: http://docs.codehaus.org/display/MAVENUSER/Review+of+Plugin+Testing+Strategies It needs updating and finishing :) - Brett On 18/12/2008, at 7:55 AM, Barrie Treloar wrote: On Thu, Dec 18, 2008 at 7:12 AM, Arnaud HERITIER aherit...@gmail.com wrote: I think you have

Re: ITs/verification and comparison of results - tools to support this?

2008-12-17 Thread Barrie Treloar
On Thu, Dec 18, 2008 at 7:31 AM, Brett Porter br...@apache.org wrote: You'll find this helpful: http://docs.codehaus.org/display/MAVENUSER/Review+of+Plugin+Testing+Strategies It needs updating and finishing :) Thanks. I'm interested in the specifics of the verification steps. I'd prefer not

Compiling one module into another

2008-12-17 Thread Brendon Davidson
Hello, We have three projects under a single parent project. The structure is as follows: ParentProject - Core (jar) - Project A (war) - Project B (war) Core is a set of classes that are used for DB access by both Project A and Project B. We want to keep the size of the war files

Re: Compiling one module into another

2008-12-17 Thread Brett Randall
Hi Brendon, Perhaps this article on Creating Skinny WARshttp://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.htmlmight help, demonstrating the use of packagingExcludeshttp://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#packagingExcludes. Busting-out the Core library

Re: maven 2.0.9+ and windows absolute paths

2008-12-17 Thread Dmitry Beransky
Another datapoint: I've taken out the ant plugin where the problem was showing up before, so now the Cargo plugin is failing with the same error. Here's my Cargo configuration: configuration container containerIdtomcat5x/containerId

RE: Promoteing SNAPSHOT to releases.

2008-12-17 Thread Brian E. Fox
Technically you can't without rebuilding the entire transitive hull. -Original Message- From: Clark, Michael [mailto:mcl...@170systems.com] Sent: Wednesday, December 17, 2008 3:09 PM To: Maven Users List Subject: Promoteing SNAPSHOT to releases. I have a problem that I assume is not

RE: Compiling one module into another

2008-12-17 Thread Brian E. Fox
I think what you want is the new maven-reactor-plugin. This functionality isn't yet built into core. -Original Message- From: Brett Randall [mailto:javabr...@gmail.com] Sent: Wednesday, December 17, 2008 5:59 PM To: Maven Users List Subject: Re: Compiling one module into another Hi

[2.0.10 RC7] please test

2008-12-17 Thread Brian E. Fox
This fixes the NPE reported in the last RC: http://jira.codehaus.org/browse/MNG-3921 (Thanks Benjamin and Henrique) Here's the list of issues fixed in 2.0.10: http://jira.codehaus.org/secure/ReleaseNote.jspa?version=14112styleName =HtmlprojectId=10500Create=Create And I've staged RC-6 here:

[2.0.10 RC7] please test

2008-12-17 Thread Brian E. Fox
(once again with the right url) This fixes the NPE reported in the last RC: http://jira.codehaus.org/browse/MNG-3921 (Thanks Benjamin and Henrique) Here's the list of issues fixed in 2.0.10: http://jira.codehaus.org/secure/ReleaseNote.jspa?version=14112styleName

How to configure resources plugin to copy extra files

2008-12-17 Thread zorro2b
I am converting a project to use Maven. I have got it to compile but the tests are failing because there are xml files in with the java source that need to be copied over with the classes. I don't want to move these into the resources dir, so I followed the example here:

Re: How to configure resources plugin to copy extra files

2008-12-17 Thread Brett Porter
You shouldn't need to configure the resource plugin at all, just the following will work: resources resource directorysrc/main/java/directory includes include**/*.xml/include /includes /resource /resources Cheers, Brett On 18/12/2008, at 5:19 PM, zorro2b wrote: I am

SV: SV: Keep version when doing a release

2008-12-17 Thread Gunnar.Bostrom
Hi again, OK, now I understand what I did wrong. Thanks for pointing this out. I did not mean to hijack a thread! I will think about the advices given in the thread. Thanks to all of you! /Gunnar -Ursprungligt meddelande- Från: Martin Höller [mailto:mar...@xss.co.at] Skickat: den