You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by struts-restful <fs...@ufi.com> on 2010/01/22 11:28:34 UTC
maven2 not forking ant task
Hi
i have a ant task defined in Maven as below and when it runs from within the
maven build phase the jvm does not seem to fork. Does anyone have any ideas.
I have also included the output from the console when the ant task is
starting up. It does not mention any forking in the start up either.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<configuration>
<tasks>
<property name="compile_classpath" refid="maven.compile.classpath" />
<property name="runtime_classpath" refid="maven.runtime.classpath" />
<property name="test_classpath" refid="maven.test.classpath" />
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<java classname="java.main class"
fork="true" failonerror="true" clonevm="true">
<classpath>
<pathelement path="${compile_classpath}" />
<pathelement path="${runtime_classpath}" />
<pathelement path="${test_classpath}" />
</classpath>
</java>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
[INFO] [antrun:run {execution: start-jetty}]
[INFO] Executing tasks
[java] 2010-01-22 10:21:56.446::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
[java] Starting server on 8083
[java] 2010-01-22 10:21:56.446::INFO: jetty-6.1.11
[java] 2010-01-22 10:21:57.962::INFO: No Transaction manager found -
if your webapp requires one, please configure one.
------not included remaining server startup
Thanks in advance
--
View this message in context: http://old.nabble.com/maven2-not-forking-ant-task-tp27271201p27271201.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven2 not forking ant task
Posted by Siegfried Goeschl <si...@it20one.at>.
Hi struts-restfull,
according to http://ant.apache.org/manual/index.html the is also a
"spawn" attribute - have you tried that?
Cheers,
Siegfried Goeschl
struts-restful wrote:
> Hi
>
> i have a ant task defined in Maven as below and when it runs from within the
> maven build phase the jvm does not seem to fork. Does anyone have any ideas.
> I have also included the output from the console when the ant task is
> starting up. It does not mention any forking in the start up either.
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.3</version>
> <executions>
> <execution>
> <id>start-jetty</id>
> <phase>pre-integration-test</phase>
> <configuration>
> <tasks>
> <property name="compile_classpath" refid="maven.compile.classpath" />
> <property name="runtime_classpath" refid="maven.runtime.classpath" />
> <property name="test_classpath" refid="maven.test.classpath" />
> <property name="plugin_classpath" refid="maven.plugin.classpath" />
> <java classname="java.main class"
> fork="true" failonerror="true" clonevm="true">
> <classpath>
> <pathelement path="${compile_classpath}" />
> <pathelement path="${runtime_classpath}" />
> <pathelement path="${test_classpath}" />
> </classpath>
> </java>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> [INFO] [antrun:run {execution: start-jetty}]
> [INFO] Executing tasks
> [java] 2010-01-22 10:21:56.446::INFO: Logging to STDERR via
> org.mortbay.log.StdErrLog
> [java] Starting server on 8083
> [java] 2010-01-22 10:21:56.446::INFO: jetty-6.1.11
> [java] 2010-01-22 10:21:57.962::INFO: No Transaction manager found -
> if your webapp requires one, please configure one.
> ------not included remaining server startup
>
>
> Thanks in advance
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org