Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-175

Log message shows wrong port number for site:run

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-5
    • Fix Version/s: 2.0-beta-6
    • Component/s: None
    • Labels:
      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 );

        Attachments

          Activity

            People

            • Assignee:
              dennisl@apache.org Dennis Lundberg
              Reporter:
              wsmoak Wendy Smoak
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: