Hi
As part of my unit tests I use the maven-jetty-plugin to start up a web
server.

If I run maven from my pc it all works correctly and I get a console like

[INFO] [jetty:run {execution: start-jetty}]
[INFO] Configuring Jetty for project: ICECream
[INFO] Webapp source directory = C:\Workspace_svn_maven\ICECream
(Trunk)\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] web.xml file = C:\Workspace_svn_maven\ICECream
(Trunk)\src\main\webapp\WEB-INF\web.xml
[INFO] Classes = C:\Workspace_svn_maven\ICECream (Trunk)\target\classes
2009-01-20 10:28:17.138::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
[INFO] Context path = /ICECream
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] Webapp directory = C:\Workspace_svn_maven\ICECream
(Trunk)\src\main\webapp
[INFO] Starting jetty 6.1H.14.1 ...
2009-01-20 10:28:17.310::INFO:  jetty-6.1H.14.1
2009-01-20 10:28:17.591::INFO:  No Transaction manager found - if your
webapp requires one, please configure one.
log4j:WARN No appenders could be found for logger
(org.springframework.web.servlet.DispatcherServlet).
log4j:WARN Please initialize the log4j system properly.
2009-01-20 10:28:18.935:/ICECream:INFO:  Loading WebApplicationContext for
Spring FrameworkServlet 'icecream'
2009-01-20 10:28:19.622::INFO:  Started [email protected]:9999
[INFO] Started Jetty Server

When I try and use Hudson the jetty web server is not started and nothing is
displayed in the console. I.e there appears to be no attempt at starting the
jetty

I have no idea what is causing this....


My plugin is configured as follows

<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<stopPort>9966</stopPort>
<stopKey>stop</stopKey>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>process-test-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>prepare-package</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>

Reply via email to