[jetty-user] Re: Jetty 8 and Maven Jetty Plugin jetty:run-war not working
rowatt <[email protected]> Sun, 18 Mar 2012 17:54:15 -0700 (PDT)
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <[email protected]> |
Hi Jan,
Below are the instructions for recreating the issue I see.
*Create a maven project:*
mvn archetype:generate -B -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.0
-DgroupId=com.gcpgroup -DartifactId=gcp-jetty -Dversion=1.0
*Remove the sample App.java and AppTest.java from created project:*
cd gcp-jetty
rm –f src/main/java/com/gcpgroup/App.java
rm –f src/test/java/com/gcpgroup/AppTest.java
*Replace the pom.xml with this:*
*Put the following java file in src/main/java/com/gcpgroup/*
*Run the jetty:run command and grep for the test string:*
mvn clean jetty:run 2>&1 | grep @@@@
*You will see in stdout the following string which means
XyzWebApplicationInitializer was called:*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*Run the jetty:run-war command and grep for the test string:*
mvn clean jetty:run-war 2>&1 | grep @@@@
*This command will not output the test string and hence
XyzWebApplicationInitializer was not called.*
I hope this helps. Let me know if you need more information,
Thanks, Shane.
--
View this message in context: http://jetty.4.n6.nabble.com/Jetty-8-and-Maven-Jetty-Plugin-jetty-run-war-not-working-tp4627356p4631715.html
Sent from the Jetty Support mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email