Re: Failing to get -D command line parameter acknowledged when using mvn exec:java
Hi Robert, On 25 March 2012 18:30, Robert Scholte wrote: > 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. > > MAVEN_OPTS=-Xmx1024m > > Otherwise consider using the exec goal. > {quote} You're absolutely right! That now works & now I have to solve how to set this on a case by case basis in Netbeans - Fun. Thanks again. Cheers, Martijn - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Failing to get -D command line parameter acknowledged when using mvn exec:java
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. MAVEN_OPTS=-Xmx1024m Otherwise consider using the exec goal. {quote} -Robert [1] http://mojo.codehaus.org/exec-maven-plugin/usage.html Op Sun, 25 Mar 2012 13:09:36 +0200 schreef 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): run-main org.codehaus.mojo exec-maven-plugin 1.2.1 compile java com.jclarity.jmsr.Main However I'm unable to pass through the -Djava.library.path=${basedir}/target which contains a C++ dylib that I need to reference. I've tried the following in the section: -Djava.library.path=${basedir}/target And java.library.path ${basedir}/target And -Djava.library.path=${basedir}/target And java.library.path ${basedir}/target But none have worked out. Am I going about this the wrong way? Cheers, Martijn - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Failing to get -D command line parameter acknowledged when using mvn exec:java
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): run-main org.codehaus.mojo exec-maven-plugin 1.2.1 compile java com.jclarity.jmsr.Main However I'm unable to pass through the -Djava.library.path=${basedir}/target which contains a C++ dylib that I need to reference. I've tried the following in the section: -Djava.library.path=${basedir}/target And java.library.path ${basedir}/target And -Djava.library.path=${basedir}/target And java.library.path ${basedir}/target But none have worked out. Am I going about this the wrong way? Cheers, Martijn - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org