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

site:stage should function without a URL specified in the POM

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.20.0
    • None
    • Maven 3
    • None

    Description

      Note: actual version is 3.8.6

      Documentation states:

      By default, the site will be staged in a directory target/staging/.

      Issue description:

      When I try to run site:stage without a site entry in the pom distrobutionManagement section I get an error that says the site entry must be specified.

      Specifying
      <distributionManagement>
      <site>
      <id>staging</id>
      </site>
      </distributionManagement>

      Will yield an error that states the URL must be specified. Entering an invalid URL solves the problem.

      <distributionManagement>
      <site>
      <id>staging</id>
      <url>invalid:url</url>
      </site>
      </distributionManagement>

      The above is literally the text in my pom file.

      Desired setup:

      I would like to see the URL be optional so that I can trigger the site:stage goal without having to specify the URL in the pom and without having to specify the stagingDirectory on the command line.

      I would also like this better documented.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              claude Claude Warren
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: