Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » maven-antrun-plugin(maven-antrun-plugin)
maven-antrun-plugin [message #855050] Tue, 24 April 2012 13:35
Miklos Molnar is currently offline Miklos MolnarFriend
Messages: 1
Registered: April 2012
Junior Member
Dear members,

I am not able to spawn a java process from eclipse-maven with this plugon, however from windows commandline with same maven and ant versions works well.
There are 3 issues :
1. Spawn does not always works even at starting .bat files
2. java process with fork=true and spawn=true does not start the java process at all
3. At the last stage maven hangs even it is started as spawn=true.

I use eclipse helios with maven 2.1.
Here is the pom.xml part which does not works from eclipse.
Anyone has any hint? Thanks. regards, Miklos

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>calc</id>
<phase>integration-test</phase>
<configuration>
<target>
<exec
executable="c:\\lakas\test.bat"
spawn="true">

</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>

<execution>
<id>calc2</id>
<phase>pre-integration-test</phase>
<configuration>
<target>
<exec
executable="c:\\lakas\test.bat"
spawn="true">

</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>

<execution>
<id>server</id>
<phase>pre-integration-test</phase>
<configuration>
<target>

<echo>${basedir}</echo>

<java
fork="true"
spawn="true"
maxmemory="512m"
classname="com.riskmetrics.mds.MDSProcess"
dir="${basedir}">
<jvmarg value="-Dcom.sun.management.jmxremote.port=9871"/>
<jvmarg value="-Dcom.sun.management.jmxremote.authenticate=false"/>
<jvmarg value="-Dcom.sun.management.jmxremote.ssl=false"/>
<arg value="service"/>
<arg value="src/conf/mds.properties"/>
<arg value="testcases/mdsIssuerResolve.cfg"/>
<arg value="output.out"/>
<arg value="MIDAS_HOME=C:\dev\riskmetrics\workspace\jmds;midas.root.directory=src/conf;globalobjectregistry.filename=src/conf/bootstrap_test.xml;mx4jconfiguration=src/conf/mx4j.config;schema.load=false;httpserver.disable=true;server.disable=false;server.keepalive.disable=false;server.keepalive.ports=19999"/>
<classpath>
<path refid="maven.compile.classpath"></path>
</classpath>
</java>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>

</executions>
Previous Topic:Debug function not working in Eclipse galilio
Next Topic:How to manipulate the AST?
Goto Forum:
  


Current Time: Sat Dec 20 03:07:01 GMT 2014

Powered by FUDForum. Page generated in 0.01868 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software