Uploaded image for project: 'Maven Invoker Plugin'
  1. Maven Invoker Plugin
  2. MINVOKER-187

Cloned IT project must be writable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.10
    • 2.0.0
    • None

    Description

      m-invoker-p-1.10, it keeps the same file permissions when cloning IT projects to target/it, and fail for not able to interpolate the clone source. This only happens for SCM like Perforce where source by default is read only

      Here is the stack trace

      Caused by: java.io.FileNotFoundException: C:\views\dev\maven-tools\plugins\thirdparty-maven-plugin\target\it\cli\pom.xml (Access is denied)
              at java.io.FileOutputStream.open(Native Method)
              at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
              at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
              at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59)
              at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117)
              at org.apache.maven.plugin.invoker.AbstractInvokerMojo.buildInterpolatedFile(AbstractInvokerMojo.java:2313)

      Need this fix in order to upgrade to maven-3.3.x at Perforce environment

      Attachments

        1. MINVOKER-187.patch
          0.7 kB
          Dan Tran

        Activity

          People

            dantran Dan Tran
            dantran Dan Tran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: