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

empty outputDirectory causes mvn clean to delete whole tree

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: documentation
    • Labels:
      None
    • Environment:

      Description

      On this page:

      http://maven.apache.org/plugins/maven-site-plugin/maven-3.html#Old_configuration_Maven_2__3

      There is this little code snippet:

        <reporting>
          <excludeDefaults>true</excludeDefaults>
          <outputDirectory></outputDirectory>
          <plugins>
      

      Notice the empty outputDirectory property? Well, in Maven 2.2.1 that appears to be ignored. In Maven 3.0.3 however, it deletes the entire project! The documentation for this should be changed as soon as possible. We lost a bit of work because of this.

        Attachments

          Activity

            People

            • Assignee:
              hboutemy Herve Boutemy
              Reporter:
              jmccaske jmccaske
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: