Perforce checks out fiel with only, maven invoker 1.10 copy file over to
target and keep the permission intact ( not with 1.9), and test file sine
some test modified the readonly file

btw, the fix uses java 6 API

-Dan

On Fri, Jun 19, 2015 at 10:08 AM, Kristian Rosenvold <
[email protected]> wrote:

> I am a bit surprised the proposed fix does the trick; I thought perforce
> checked out *every file* read only ?
>
> Kristian
>
> 2015-06-19 17:22 GMT+02:00 Karl Heinz Marbaise (JIRA) <[email protected]>:
>
> >
> >     [
> >
> https://issues.apache.org/jira/browse/MINVOKER-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14593510#comment-14593510
> > ]
> >
> > Karl Heinz Marbaise commented on MINVOKER-187:
> > ----------------------------------------------
> >
> > Could you test the current state if that would really fix you problem? I
> > have made a [snapshot version available|
> > https://repository.apache.org/content/repositories/snapshots/]...If it
> > will fix your problem i can start a release for 1.10.1 ?
> >
> > > Cloned IT project must be writable
> > > ----------------------------------
> > >
> > >                 Key: MINVOKER-187
> > >                 URL:
> https://issues.apache.org/jira/browse/MINVOKER-187
> > >             Project: Maven Invoker Plugin
> > >          Issue Type: Bug
> > >    Affects Versions: 1.10
> > >            Reporter: Dan Tran
> > >            Priority: Critical
> > >             Fix For: 3.0.0
> > >
> > >         Attachments: MINVOKER-187.patch
> > >
> > >
> > > 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
> > > {noformat}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){noformat}
> > > Need this fix in order to upgrade to maven-3.3.x at Perforce
> environment
> >
> >
> >
> > --
> > This message was sent by Atlassian JIRA
> > (v6.3.4#6332)
> >
>

Reply via email to