Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
2.0-beta-5
-
None
-
None
Description
mvn site:run -Dport=8123 works correctly, but the log message still says that Jetty was started on 8080.
The port number is hard coded in the log message on line 86 of SiteRunMojo:
Index: src/main/java/org/apache/maven/plugins/site/SiteRunMojo.java
===================================================================
— src/main/java/org/apache/maven/plugins/site/SiteRunMojo.java (revision 428603)
+++ src/main/java/org/apache/maven/plugins/site/SiteRunMojo.java (working copy)
@@ -83,7 +83,7 @@
handlers[1] = notFoundHandler;
server.setHandlers( handlers );
- getLog().info( "Starting Jetty on http://localhost:8080/" );
+ getLog().info( "Starting Jetty on http://localhost:" + port + "/" );
try
{
server.start();