I want to specify vm args -Djava.library.path =. / Src / main / resources so that the DLL is automatically taken, and I want to specify this in maven, so other developers do not need to manually configure eclipse.
I thought it might be that the maven eclipse plugin might help, so I could do something like
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.7</version> <configuration> DO MAGIC HERE ???? <<----- </configuration> </plugin>
But I see no way to add VM args from inside the plugin.
I fixed this to run my tests through maven on the command line
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.3</version> <configuration> <argLine>-Xmx768m -Xms128m -Djava.library.path=${basedir}/src/main/resources/</argLine> </configuration> </plugin>
My current solution is that I will have to tell the developers to add this manually in eclipse, which does not look very good.
Does anyone have any ideas on how to solve this.
amuses
David.
eclipse maven jvm-arguments maven-eclipse-plugin
David turner
source share