Re: Mvn command line options

2012-03-25 Thread sarmahdi
Oh i did not reject it. It the actual way of doing it i know and i understand ( a more logical way as well) but I have an eclipse workspace which i mavenized and some vendors also use it to help in development and it will be hard for them to get changes on their end. they usually arent flexible so

Re: Mvn command line options

2012-03-25 Thread Dirk Olmes
Am 24.03.2012 um 16:45 schrieb sarmahdi sarma...@hotmail.com: Hello, I did the mvn.bat --help and it gave me a list of options. I need to know that IF i want to write a batch or shell script for three different projects. how can i do that. /echo Starting Maven build process cd

Re: Mvn command line options

2012-03-25 Thread sarmahdi
Thanks Dirk, Yes ! :) when i realized that i need something in batch scripting i did search I used Start as well it makes a new window open and makes batch commands in parallel.. but i actually needed call as you pointed out .. Wayne, Is there a way in eclipse that i can make a Parent POM

Failing to get -D command line parameter acknowledged when using mvn exec:java

2012-03-25 Thread Martijn Verburg
Hi all, I'm executing a Java main class with the following: mvn compile -Prun-main With exec plugin being run with a java goal during the compile phase (in the run-main profile): profiles profile idrun-main/id build plugins plugin groupIdorg.codehaus.mojo/groupId

Re: Mvn command line options

2012-03-25 Thread Wayne Fay
Is there a way in eclipse that i can make a Parent POM project (with package type POM) which is in the work space that the other projects are located but not inside the parent project (like a relative reference to them would work This is somewhat common for certain sets of Maven users (mostly

Re: generate-sources target called twice

2012-03-25 Thread Stephen Connolly
Nothing wrong with using build helper... But *if* you have written a plugin to do your code generation, then the mojo that generates the source code should also add the generated source to the compile class path (projecthelper.addsources iirc) For example I wrote a plugin to generate some code

Re: Failing to get -D command line parameter acknowledged when using mvn exec:java

2012-03-25 Thread Robert Scholte
Looks like you missed the important note on the bottom of the usage-page[1]. {quote} Note: The java goal doesn't spawn a new process. Any VM specific option that you want to pass to the executed class must be passed to the Maven VM using the MAVEN_OPTS environment variable. E.g.

RE: Assembly plugin with multiple XMLs - appending assembly ID

2012-03-25 Thread Jim McCaskey
Zeba, It's probably not Maven best practice to have a .jar file with no classifier popped out of a pom project. But I'll let the Maven experts discuss that. I think you can accomplish what you want with multiple executions, something like this maybe. This is just a guess so YMMV.