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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.1
    • documentation
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: