Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-269

File locking problem on the file associated to 'getOutpuName()', even if the report is external

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • maven-reporting-impl-2.2
    • None
    • maven-reporting-impl
    • None
    • Windows 7 64 bits
      JDK 1.7.0_29 (64 bits VM)

    Description

      Creating a Maven Report Mojo which extends the AbstractMavenReport class and returns 'true' in the 'isExternalReport' locks the file associated to the name returned by the 'getOutputName()' function of the Mojo.

      The locking problems appears inside the 'executeReport(...)' function of the Mojo, I'm not sure if its normal or not but I have to delete this file to generate a documentation with JSDuck (Javascript documentation).

      A full description of the problem is provided here http://www.mail-archive.com/users@maven.apache.org/msg127863.html

      I provide two Maven projects which allow to reproduce the problem :

      • bug-maven-plugin : A very simple plugin which only tries to delete the 'index.html' file, that's to say the name provided by the 'getOutputName()' function.
      • bug-site-project : A very simple project which uses the 'bug-maven-plugin' Reporting Plugin, running 'mvn site' on it allow to show the file locking problem I encounter.

      Attachments

        1. FileLock.zip
          5 kB

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              bouba Baptiste Gaillard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: