Re: Slow maven compile after upgrading JDK from 1.5 to 1.6

2009-05-26 Thread j_ri
B can use types form A in its public interface. Do we really want to force all C's to know which of B's dependencies appear in its public interface? Or do all B's document which dependencies they re-export, i.e. which should be considered transitive, and which not? Actually, that last idea,

Re: use relative ..\... Path in includes and excludes of maven-source-plugin?

2009-05-26 Thread Martin Höller
Hi! On Monday 25 May 2009 torsten.reinh...@gi-de.com wrote: I´m trying to include some additional files in my sources.jar: src\main\java src\main\groovy I never used it, but I guess you have to use the build helper maven plugin to add additional source paths to you project. See

Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-26 Thread Arnaud HERITIER
Hi Ari, Thanks for your feedback. Did you follow this doc to setup your eclipse project : http://maven.apache.org/plugins/maven-eclipse-plugin-2.7-SNAPSHOT/examples/specifying-source-path-inclusions-and-exclusions.html ?? Arnaud On Tue, May 26, 2009 at 2:29 AM, ari.meyer ari.me...@gmail.com

Binding to a jetty:run goal ?

2009-05-26 Thread Laurent Perez
Hi I would like to bind an ant task from maven antrun plugin only when I use the jetty:run goal : my task basically extracts and preconfigures a few files needed at webapp startup. I've managed to bind antrun to the compile phase, but this is not good enough. I've tried the goaljetty/goal or

maven-antrun-plugin java runtime version

2009-05-26 Thread Olivier . Lambert
Hello, - I'm executing maven in java 6 = OK + Error stacktraces are turned on. Maven version: 2.0.9 Java version: 1.6.0_05 OS name: windows xp version: 5.1 arch: x86 Family: windows - I want to compile in java 1.4 = OK by setting the maven-compiler-plugin - I want to execute the

Specify Output File Name : Native Maven Plugin

2009-05-26 Thread Abhinav Sharma
I'm using the native plugin to build a C++ static library. However, the output name is always ${project.artifactId}.a. I would like to the name of the out file. Is there a way to do this? Thanks, Abhinav -- View this message in context:

Re: Binding to a jetty:run goal ?

2009-05-26 Thread Nick Stolwijk
You can only bind goals to a phase, never to a goal. Just make a shell script which calls mvn ant:run jetty:run. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Tue, May 26, 2009 at 10:38 AM, Laurent Perez hak...@gmail.com wrote: Hi I

automatic patch generation

2009-05-26 Thread gpresser
Hi all! We (a software-house developing a b2b java web application) are currently planing to move from ant to maven. I successfully migrated your ant build.xml to a maven pom stucture including multiple modules etc. We are using the assembly-plugin to package all dependencies and required

maven, ant, antrun:run

2009-05-26 Thread vpalle
When executing 'mvn antrun:run' my tasks are not run.. I have an echo task, but no output is shown.. When running the phases that the tasks are bound to, they do get executed.. -- View this message in context: http://www.nabble.com/maven%2C-ant%2C-antrun%3Arun-tp23720986p23720986.html Sent from

Re: maven, ant, antrun:run

2009-05-26 Thread Roman Kournjaev
I am sure you ll get a lot of feedback on that one. It has so much details about our problem. On Tue, May 26, 2009 at 2:09 PM, vpalle vpa...@daimi.au.dk wrote: When executing 'mvn antrun:run' my tasks are not run.. I have an echo task, but no output is shown.. When running the phases that the

Re: maven, ant, antrun:run

2009-05-26 Thread vpalle
Alright.. This is how the relevant parts of my pom, looks like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.2/version executions execution

Re: automatic patch generation

2009-05-26 Thread Baptiste MATHUS
Do you mean: given two zip archives, version n and n+1, you'd like to be able to generate something like a version nton+1 zip that'd only contain the different components that'd different between n and n+1 versions? If so, then I don't know if this is possible. Maybe with a special dev/profile

Re: Exploding dependencies in a war

2009-05-26 Thread Stevo Slavić
Thanks Brian, unpack-dependencies does the trick, at least partially. Not sure if it's currently best solution, to have jar's of these unpacked dependencies excluded from the war I use maven assembly plugin. Wish war plugin or even dependency declaration itself would support such a scenario, so

Re: Specify Output File Name : Native Maven Plugin

2009-05-26 Thread Dan Tran
It is not possible to change the output file name, even using finalName http://jira.codehaus.org/browse/MOJO-896 -D http://jira.codehaus.org/browse/MOJO-896 On Tue, May 26, 2009 at 1:53 AM, Abhinav Sharma abhin...@qualcomm.com wrote: I'm using the native plugin to build a C++ static library.

How to run Exec Maven plugin for each file in a directory?

2009-05-26 Thread janszm
I have a java program which takes an input-file and output-file as parameters. I need to run this for a set of files in a directory. How can I best achieve this with Maven? I have looked at the Exec Maven plugin and as per http://mojo.codehaus.org/exec-maven-plugin/usage.html I can use this to

Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-26 Thread Martijn Dashorst
In my opinion MECLIPSE-443 is a very bad idea. Should every plugin be configured so that the resources available in src/main/java are treated as classpath entries? According to me the eclipse plugin should take the resources part of the pom into account, rather than invent yet another way of

Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-26 Thread Arnaud HERITIER
Did you try to use m2eclipse or q4e ?They'll be the future. maven-eclipse-plugin will probably die under its own weight. There are too many use cases and testing coverage isn't conclusive because we only checks what we generate and not that we are able to import/use it in eclipse . We have really

How to generate TestNG report?

2009-05-26 Thread HHB
Hey, How to generate TestNG report with Maven 2? Thanks. -- View this message in context: http://www.nabble.com/How-to-generate-TestNG-report--tp23724692p23724692.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-26 Thread Martijn Dashorst
Yes, and I've been burned by m2eclipse, and haven't heard loving reports from co-workers about q4e either. Not installing any of them anytime soon. Martijn On Tue, May 26, 2009 at 4:09 PM, Arnaud HERITIER aherit...@gmail.com wrote: Did you try to use m2eclipse or q4e ?They'll be the future.

Re: automatic patch generation

2009-05-26 Thread gerhard presser
that's exactly what i want to do. i'm just writing my own plugin which does following: -) fetch new artifact jar -) fetch old artifact jar use java.util.zip.Zipfile to get all entries and compare their crc's. if the file changed or was not present in old artifact, add the file; if entry is not

Re: How to run Exec Maven plugin for each file in a directory?

2009-05-26 Thread Stephen Connolly
The easiest way is to just write a plugin... seriously, it's quite simple start with the archetype for a maven plugin (mvn archetype:generate) then just modify the sample Mojo that it creates. you will want to add two parameters to your Mojo, e.g. /** * @parameter

Problem with maven Solaris 8 SPARC

2009-05-26 Thread _-°-TeNsHi-°-_ -
Hello I am installing maven in solaris 8 SPARC, but don't work. When I try run mvn script from bin directory. Don't run and don't prompt any error. I tried with several versions of maven (binaries) 2.0.8 , 2.0.9, 2.0.10 and the same problem. Don't run the script. Then I downloaded the

Re: How to run Exec Maven plugin for each file in a directory?

2009-05-26 Thread Baptiste MATHUS
Well, it depends on what you want to do. Maven is not designed to be used as a scripting engine for administration tasks. Do you want to do this as a part of your packaging/build process? If so, then look at Stephen answer. If you want to script something moving in a production envt, then just

Setting the JDK via property

2009-05-26 Thread emerson cargnin
Hi I need to set the jdk via command line, but having a way to use a default one. In maven one I used:maven.compile.source and maven.compile.target property In maven 2 I found at this page: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArgument It tells:

Re: Exploding dependencies in a war

2009-05-26 Thread Stephen Connolly
In general people seem to be moving towards not having any exploded jars in a war file... and indeed that would be the best practice that Maven seems to encourage. -Stephen 2009/5/26 Stevo Slavić ssla...@gmail.com Thanks Brian, unpack-dependencies does the trick, at least partially. Not sure

is there a way to run junit to display method names on success?

2009-05-26 Thread Roger Pack
I'm kind of at a loss as to how to make junit a little more verbose (sorry to ask a question not specifically maven related, but I hoped someone might have a clue). i'm looking for an output like running test a: success running test b: success that type of thing. Any thoughts? -=r

Re: Destroying process.. seems to fail in windows?

2009-05-26 Thread Roger Pack
2009/5/21 Martin Gainty mgai...@hotmail.com: can you display your pom.xml to determine which processes are being spawned/exec'ed Martin Absolutely. If I have any unit test in this module that just sleeps ex: Thread.sleep(10); and I just hit ctrl-c, it leaves an orphaned process behind.

RE: Does reactor spawn a subprocess for each submodule?

2009-05-26 Thread Tracy Hartford
Do you mean the Invoker plugin? The ultimate goal is to be able to selectively build only projects that have changed since the last build. One piece of that is that we are trying to automate the version property of the POM for each branch, based on the most recent Perforce changenum for that

Re: How to run Exec Maven plugin for each file in a directory?

2009-05-26 Thread janszm
Baptiste MATHUS wrote: Well, it depends on what you want to do. Maven is not designed to be used as a scripting engine for administration tasks. Do you want to do this as a part of your packaging/build process? If so, then look at Stephen answer. If you want to script something moving

FW: Problem with maven Solaris 8 SPARC

2009-05-26 Thread _-°-TeNsHi-°-_ -
Hello I am installing maven in solaris 8 SPARC, but don't work. When I try run mvn script from bin directory. Don't run and don't prompt any error. I tried with several versions of maven (binaries) 2.0.8 , 2.0.9, 2.0.10 and the same problem. Don't run the script. Then I downloaded

RE: Override dependency classes with another module's classes

2009-05-26 Thread Brendan Haverlock
I am using 2.1.0, and it doesn't seem to make a difference which order I put them in. Based on what you said, shouldn't this be working in my version? Thanks, Brendan Haverlock -Original Message- From: Brian Fox [mailto:bri...@infinity.nu] Sent: Monday, May 25, 2009 3:19 PM To: Maven

problem compiling the project with ubuntu's pbuilder

2009-05-26 Thread Txor
Dear community. I have a project on Ubuntu that is compiled with maven 2 (version 2.0.8), it compiles and builds perfectly, creating the correct jars. The problem comes when I try to do the same in a chrooted environment, with pbuilder. The maven instalation is created when pbuilder starts, and

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Wim Deblauwe
Is there an explanation somewhere on when to use surefire and when this failsafe plugin? What are the main differences? regards, Wim 2009/5/25 Stephen Connolly stephen.alan.conno...@gmail.com The Mojo team is pleased to announce the release of the Failsafe Maven Plugin, version

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Stephen Connolly
use surefire for unit tests use failsafe if you need to set up a integration test environment and tear it back down again after the integration tests have ran -Stephen Sent from my [rhymes with myPod] ;-) On 26 May 2009, at 19:34, Wim Deblauwe wim.debla...@gmail.com wrote: Is there an

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Paul Benedict
Will there be an effort to add the integration testing features to the original? I would like to not have multiple testing plugins. On Tue, May 26, 2009 at 1:54 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: use surefire for unit tests use failsafe if you need to set up a

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Stephen Connolly
sorry I missed your second question. the main difference is when a build failure is triggered. surefire triggers a build failure immediately after finishing running all the (unit) tests. this makes it a poor choice if you need to set up and tear down a (integration) test environment (think

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Stephen Connolly
I am not opposed to doing so. the block for me is my lack of Apache commit access. there are valid arguments for keeping these as separate plugins though, eg the excludesnone/excludes hack that people used to configure surefire for multiple executions; debugging tests from an IDE;

RE: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Jason Chaffee
One way around the excludes hack is to adopt a different directory structure for it tests and unit tests. For example src/test -- unit tests src/itest -- integration tests Jason -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Sent: Tuesday, May 26,

RE: How to run Exec Maven plugin for each file in a directory?

2009-05-26 Thread Stan Devitt
One way to attach this to (say) the process-resources phase is: plugin groupIdorg.codehaus.groovy.maven/groupId artifactIdgmaven-plugin/artifactId version1.0-rc-3/version executions execution

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Stephen Connolly
but that looses source folder config in ide setup, and hacks with test- compile Sent from my [rhymes with myPod] ;-) On 26 May 2009, at 20:22, Jason Chaffee jason.chaf...@zilliontv.tv wrote: One way around the excludes hack is to adopt a different directory structure for it tests and

RE: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Jason Chaffee
Yes, it would basically force Maven to adopt it as a standard and it would might mean even adding a itest-compile phase, etc. Not sure if I prefer this idea over the current protocol, but I do think the FailSafe plugin is very good and clever approach to integration tests with the way things

Re: Setting the JDK via property

2009-05-26 Thread Anders Hammar
Maybe you can use a profile in your pom to modify the maven-compiler-plugin configuration? http://maven.apache.org/guides/introduction/introduction-to-profiles.html /Anders On Tue, May 26, 2009 at 17:34, emerson cargnin echofloripa.y...@gmail.com wrote: Hi I need to set the jdk via command

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Stephen Connolly
and you'd probably want an integration-test scope as well for dependencies used for integration testing, and you'd need to add an integrationTestSources element to the build, as well as integrationTestResources that is if you want to do things properly. and I am not opposed to such

Re: How to run Exec Maven plugin for each file in a directory?

2009-05-26 Thread Baptiste MATHUS
2009/5/26 janszm me...@jansz.com Baptiste MATHUS wrote: Well, it depends on what you want to do. Maven is not designed to be used as a scripting engine for administration tasks. Do you want to do this as a part of your packaging/build process? If so, then look at Stephen answer.

how is hudson's maven generated site link intended to work for multi-module maven builds?

2009-05-26 Thread B Smith-Mannschott
I'm sending this missive to user's lists of both hudson and maven because it concerns using these two tools together, and I'll need help from both parties to make this work. Rather than separately site-deploying the sites of the 30 or so maven projects hudson is building for me at work, I've

RE: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Jason Chaffee
Yep, I concur with you a 100%. I think the solutions for this until now (FailSafe), were highly undesirable and caused many other issues. It might be something the Maven folks might want to think about in the future, adding support for integration testing in an more appropriate way (adding the

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Jeffrey N Hagelberg
Well, We have a multi-project build. What we do is define a url in the parent project and leave out the urls in all of the other poms. When we do this, the maven generated site correctly links the parent projects to the child projects. It kind of sounds like you may be overriding some of the

maven-scm-plugin

2009-05-26 Thread Barry Kern
Can I use this plugin for the following purpose? Project A build has a folder in its directory structure that holds assets from a different svn location/project (project B) that I want to include in my build. During my build before the compile phase I would like to use this plugin to do an svn

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Stephen Connolly
2009/5/26 Jason Chaffee jason.chaf...@zilliontv.tv Yep, I concur with you a 100%. I think the solutions for this until now (FailSafe), were highly undesirable and caused many other issues. It might be something the Maven folks might want to think about in the future, adding support for

Telling mvn to look for .m2 somewhere other than user home directory

2009-05-26 Thread Rodrigo de Salvo Braz
Hi, I am trying to tell mvn via command line not to use my OS user home directory for settings (that is, to store the directory .m2 somewhere else). I tried adding -Denvironment.home=new directory. Other things I tried were -Denv.home and setting the environment variables user_home. None of

RE: Telling mvn to look for .m2 somewhere other than user home directory

2009-05-26 Thread Dang H. Nguyen
This is covered in the help: mvn --help You want to use the -s option to tell mvn where your settings.xml file is, like so: mvn -s /some/other/dir/settings.xml -Original Message- From: Rodrigo de Salvo Braz [mailto:b...@ai.sri.com] Sent: Tuesday, May 26, 2009 3:07 PM To:

Re: Telling mvn to look for .m2 somewhere other than user home directory

2009-05-26 Thread Ed Hillmann
I also think you can use the following command-line parameters: org.apache.maven.global-settings to assign the location of global settings org.apache.maven.user-settings to assign the location of the user's settings For our developers, we use the following alias for mvn mvn

RE: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Jason Chaffee
I really like the idea of breaking up unit, integration, and functional tests. This is how I would prefer to break up my tests. I had to use TestNG groups to do this effectively in the current scheme of things. Thanks for the link! Jason -Original Message- From: Stephen Connolly

Re: maven, ant, antrun:run

2009-05-26 Thread Wayne Fay
                   execution                        idAnt: deleting EDepotServiceBindingImpl.java/id                        phasegenerate-sources/phase ...                    execution                        idAnt: Deploying service with axis-admin/id                        

[Off topic] Google IO or Community One / JavaOne?

2009-05-26 Thread Wayne Fay
Anyone (users, devs, contributors, etc) planning on going to Google IO conference this week, or Community One / JavaOne conference next week in San Francisco, CA USA? I haven't heard about a Maven BOF so I assume that's not going to happen this year. I believe there was one a couple years back

Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-26 Thread Barrie Treloar
On Tue, May 26, 2009 at 11:03 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: In my opinion  MECLIPSE-443 is a very bad idea. Should every plugin be configured so that the resources available in src/main/java are treated as classpath entries? It was my understanding that if you had

Re: Override dependency classes with another module's classes

2009-05-26 Thread Brian Fox
I expected it would, yes. On Tue, May 26, 2009 at 10:54 AM, Brendan Haverlock brend...@mirthcorp.comwrote: I am using 2.1.0, and it doesn't seem to make a difference which order I put them in. Based on what you said, shouldn't this be working in my version? Thanks, Brendan Haverlock

Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-26 Thread Kalle Korhonen
Well, here's one for q4e. Ever since they implemented the incremental builder, I haven't had any issues with it and it's been fast enough for me (got 30 or so linked Eclipse projects on my workspace). Kalle On Tue, May 26, 2009 at 7:35 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote:

Re: Override dependency classes with another module's classes

2009-05-26 Thread Wayne Fay
Like Brian, I expected this would work right in 2.0.10 and 2.1.0, so I'm a bit surprised it didn't work. Having said that, let me remind you what I said earlier... ;-) This just won't work at all, at least not consistently. Build a different jar containing just the classes you DON'T override,

Re: Telling mvn to look for .m2 somewhere other than user home directory

2009-05-26 Thread Jane Young
Are you looking for a different location for maven repository? Try -Dmaven.repo.local=new directory Rodrigo de Salvo Braz wrote: Hi, I am trying to tell mvn via command line not to use my OS user home directory for settings (that is, to store the directory .m2 somewhere else). I tried

Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Stevo Slavić
What's wrong with using TestNG? Why is it better to change Maven standard directory layout? TestNG works already and doesn't impose package or test class naming constraints. Btw, Surefire plugin support for TestNG could be better. Failsafe plugin is welcome but I'd prefer a single well maintained

RE: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.

2009-05-26 Thread Jason Chaffee
Nothing is wrong with TestNG and I agree TestNG and Maven/Surefire integration could be better, but there that is not all on Maven/Surefire, there are some issues with how TestNG supports integration as well. The point I was making is that, currently, maven doesn't really support integration

Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-26 Thread Dirk Olmes
Martijn Dashorst wrote: Yes, and I've been burned by m2eclipse, and haven't heard loving reports from co-workers about q4e either. Not installing any of them anytime soon. The same here. I'd rather maintain a fork of the m-e-p that does exactly what I want than installing one of the eclipse

Overriding basedir

2009-05-26 Thread raghu guru
Hi All I want to use pom.xml which is different than my src/main/java. lets say i have dir structure for sources has C:\src\main\java and i have my pom.xml at C:\my-mvn\pom.xml and yes i did use mvn -f C:\my-mvn\pom.xml it was reading this file. but its taking base dir has C:\my-mvn\pom.xml i

Re: Overriding basedir

2009-05-26 Thread Brian Fox
On Tue, May 26, 2009 at 8:58 PM, raghu guru raghure...@gmail.com wrote: Hi All I want to use pom.xml which is different than my src/main/java. lets say i have dir structure for sources has C:\src\main\java and i have my pom.xml at C:\my-mvn\pom.xml and yes i did use mvn -f

Re: [Off topic] Google IO or Community One / JavaOne?

2009-05-26 Thread Anders Hammar
I'm going to JavaOne. I mailed Brian Fox regarding a Maven meetup, but there is currently no plans for that. /Anders On Wed, May 27, 2009 at 00:56, Wayne Fay wayne...@gmail.com wrote: Anyone (users, devs, contributors, etc) planning on going to Google IO conference this week, or Community One