Reputation: 23443
Seems like the Maven site plugin does not have a command to stop before starting, resulting in an error if the Jetty container is already started (from previous Maven site:run), how may i solve this?
My goal is to be able to see the site on my localhost using the site:run
Maven command.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:2.0.1:run (default-cli) on project parameterized-logging-migrator: Error executing Jetty: Address already in use: bind ->
2011-12-21 20:41:11.463::INFO: Shutdown hook executing
2011-12-21 20:41:11.567::INFO: Shutdown hook complete
Upvotes: 0
Views: 2915
Reputation: 52645
mvn site:run does not have any option to shutdown an existing jetty server. If you do not want to manually do this before another run, one possibility is to run it on another port
mvn site:run -Dport=8081
Upvotes: 2