Re: [jetty-user] Re: Jetty 8 and Maven Jetty Plugin jetty:run-war not working
Jan Bartel <[email protected]> Mon, 19 Mar 2012 13:40:07 +1100
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CALg=VpgAwMYiBzQgdv8z22Fp+ceawd47D+=uMNUwM2JnKz9SdQ@mail.gmail.com> |
Hi Rowatt, That message got a bit garbled - the "replace the pom with this" was missing, as was the java class. Any chance you could generate the project then zip it and attach it? thanks Jan On 19 March 2012 11:54, rowatt <[email protected]> wrote: > 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 > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email