I am using Eclipse with Maven. In my pom file i used following Jetty plugin to use as a deployment server. Now I have two problem
-
I can run this Jetty Server from Run As > Maven Build… > jetty:run
But I do now know how to stop this server. After closing Eclipse if i go to http://localhost:8080. then i see this jetty server still running. -
After deploying first project, if I start to work with second project then i can not deploy my second project on jetty. I followed the same process as before, but it does not work.
Note: I am a new user of Maven and Jetty
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.10</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<stopKey>foo</stopKey>
</configuration>
</plugin>
By the way. I solved my problem. after a little searching i got run-jetty-run (http://code.google.com/p/run-jetty-run) for eclipse. everything is very easy with it. After using this one i can say this is better then the jetty plugin in maven.