[jira] [Commented] (MWAR-420) build failure in lifecycle deploy: 'Could not copy webapp sources'

2019-11-10 Thread Robert Scholte (Jira)


[ 
https://issues.apache.org/jira/browse/MWAR-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16971145#comment-16971145
 ] 

Robert Scholte commented on MWAR-420:
-

Getting closer... the issue is with the "read-only" attribute on the gif-file, 
which is now respected. Hence the first time it succeeds because it doesn't 
exist yet, but during the second time it can't be overwritten and it throws the 
{{java.nio.file.AccessDeniedException}}

> build failure in lifecycle deploy: 'Could not copy webapp sources'
> --
>
> Key: MWAR-420
> URL: https://issues.apache.org/jira/browse/MWAR-420
> Project: Maven WAR Plugin
>  Issue Type: Bug
>Affects Versions: 3.2.0, 3.2.1, 3.2.2
>Reporter: Bruno Marti
>Priority: Major
> Attachments: build-error.log, testWarPlugin.zip
>
>
> Since version 3.2.x there is a build failure in maven-war-plugin on lifecycle 
> 'deploy'.
> {code:java}
> mvn package package -e{code}
> If you build sample webapp (see attachement: [^testWarPlugin.zip]) with 
> version 3.2.2 following error occurs:
> {code:java}
> [INFO] --- maven-war-plugin:3.2.2:war (default-war) @ testWarPlugin ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [testWarPlugin] in 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp resources [C:\TEMP\testWarPlugin\src\main\webapp]
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 5.106 s
> [INFO] Finished at: 2018-11-07T10:11:58+01:00
> [INFO] 
> 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on project 
> testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>  -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on 
> project testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> ...
> Caused by: java.nio.file.AccessDeniedException: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>     at sun.nio.fs.WindowsException.translateToIOException 
> (WindowsException.java:83)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:97)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:102)
>     at sun.nio.fs.WindowsFileCopy.copy (WindowsFileCopy.java:165)
>     at sun.nio.fs.WindowsFileSystemProvider.copy 
> (WindowsFileSystemProvider.java:278)
>     at java.nio.file.Files.copy (Files.java:1274)
> {code}
> It only occurs on {color:#ff}windows{color} and with 
> maven-war-plugin{color:#ff} 3.2.x{color}. Fullstacktrace here: 
> [^build-error.log]
> Version {color:#14892c}3.1.0 and older{color} works fine



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MWAR-420) build failure in lifecycle deploy: 'Could not copy webapp sources'

2019-11-10 Thread Robert Scholte (Jira)


[ 
https://issues.apache.org/jira/browse/MWAR-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16971137#comment-16971137
 ] 

Robert Scholte commented on MWAR-420:
-

[8b16d8b61abfaac13aa5df3ef9894ca857b6623a|https://github.com/codehaus-plexus/plexus-utils/commit/8b16d8b61abfaac13aa5df3ef9894ca857b6623a]
 seems to be the root cause

> build failure in lifecycle deploy: 'Could not copy webapp sources'
> --
>
> Key: MWAR-420
> URL: https://issues.apache.org/jira/browse/MWAR-420
> Project: Maven WAR Plugin
>  Issue Type: Bug
>Affects Versions: 3.2.0, 3.2.1, 3.2.2
>Reporter: Bruno Marti
>Priority: Major
> Attachments: build-error.log, testWarPlugin.zip
>
>
> Since version 3.2.x there is a build failure in maven-war-plugin on lifecycle 
> 'deploy'.
> {code:java}
> mvn package package -e{code}
> If you build sample webapp (see attachement: [^testWarPlugin.zip]) with 
> version 3.2.2 following error occurs:
> {code:java}
> [INFO] --- maven-war-plugin:3.2.2:war (default-war) @ testWarPlugin ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [testWarPlugin] in 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp resources [C:\TEMP\testWarPlugin\src\main\webapp]
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 5.106 s
> [INFO] Finished at: 2018-11-07T10:11:58+01:00
> [INFO] 
> 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on project 
> testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>  -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on 
> project testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> ...
> Caused by: java.nio.file.AccessDeniedException: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>     at sun.nio.fs.WindowsException.translateToIOException 
> (WindowsException.java:83)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:97)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:102)
>     at sun.nio.fs.WindowsFileCopy.copy (WindowsFileCopy.java:165)
>     at sun.nio.fs.WindowsFileSystemProvider.copy 
> (WindowsFileSystemProvider.java:278)
>     at java.nio.file.Files.copy (Files.java:1274)
> {code}
> It only occurs on {color:#ff}windows{color} and with 
> maven-war-plugin{color:#ff} 3.2.x{color}. Fullstacktrace here: 
> [^build-error.log]
> Version {color:#14892c}3.1.0 and older{color} works fine



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MWAR-420) build failure in lifecycle deploy: 'Could not copy webapp sources'

2019-11-10 Thread Robert Scholte (Jira)


[ 
https://issues.apache.org/jira/browse/MWAR-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16971101#comment-16971101
 ] 

Robert Scholte commented on MWAR-420:
-

Just confirmed the issue is caused by an upgrade of plexus-utils. Bringing it 
back to 3.0.24  makes it succeed again.

> build failure in lifecycle deploy: 'Could not copy webapp sources'
> --
>
> Key: MWAR-420
> URL: https://issues.apache.org/jira/browse/MWAR-420
> Project: Maven WAR Plugin
>  Issue Type: Bug
>Affects Versions: 3.2.0, 3.2.1, 3.2.2
>Reporter: Bruno Marti
>Priority: Major
> Attachments: build-error.log, testWarPlugin.zip
>
>
> Since version 3.2.x there is a build failure in maven-war-plugin on lifecycle 
> 'deploy'.
> {code:java}
> mvn package package -e{code}
> If you build sample webapp (see attachement: [^testWarPlugin.zip]) with 
> version 3.2.2 following error occurs:
> {code:java}
> [INFO] --- maven-war-plugin:3.2.2:war (default-war) @ testWarPlugin ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [testWarPlugin] in 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp resources [C:\TEMP\testWarPlugin\src\main\webapp]
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 5.106 s
> [INFO] Finished at: 2018-11-07T10:11:58+01:00
> [INFO] 
> 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on project 
> testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>  -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on 
> project testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> ...
> Caused by: java.nio.file.AccessDeniedException: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>     at sun.nio.fs.WindowsException.translateToIOException 
> (WindowsException.java:83)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:97)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:102)
>     at sun.nio.fs.WindowsFileCopy.copy (WindowsFileCopy.java:165)
>     at sun.nio.fs.WindowsFileSystemProvider.copy 
> (WindowsFileSystemProvider.java:278)
>     at java.nio.file.Files.copy (Files.java:1274)
> {code}
> It only occurs on {color:#ff}windows{color} and with 
> maven-war-plugin{color:#ff} 3.2.x{color}. Fullstacktrace here: 
> [^build-error.log]
> Version {color:#14892c}3.1.0 and older{color} works fine



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MWAR-420) build failure in lifecycle deploy: 'Could not copy webapp sources'

2019-05-23 Thread Karl Heinz Marbaise (JIRA)


[ 
https://issues.apache.org/jira/browse/MWAR-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16846995#comment-16846995
 ] 

Karl Heinz Marbaise commented on MWAR-420:
--

I checked also on MacOS unpacked the ZIP file first I can not reproduce the 
issue cause I don't see any {{Caused by: java.nio.file.AccessDeniedException: 
C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif}}
 apart from that the unpacked content of the archive looks a bit strange cause 
it contains several special information about permissions

> build failure in lifecycle deploy: 'Could not copy webapp sources'
> --
>
> Key: MWAR-420
> URL: https://issues.apache.org/jira/browse/MWAR-420
> Project: Maven WAR Plugin
>  Issue Type: Bug
>Affects Versions: 3.2.0, 3.2.1, 3.2.2
>Reporter: Bruno Marti
>Priority: Major
> Attachments: build-error.log, testWarPlugin.zip
>
>
> Since version 3.2.x there is a build failure in maven-war-plugin on lifecycle 
> 'deploy'.
> {code:java}
> mvn package package -e{code}
> If you build sample webapp (see attachement: [^testWarPlugin.zip]) with 
> version 3.2.2 following error occurs:
> {code:java}
> [INFO] --- maven-war-plugin:3.2.2:war (default-war) @ testWarPlugin ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [testWarPlugin] in 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp resources [C:\TEMP\testWarPlugin\src\main\webapp]
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 5.106 s
> [INFO] Finished at: 2018-11-07T10:11:58+01:00
> [INFO] 
> 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on project 
> testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>  -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on 
> project testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> ...
> Caused by: java.nio.file.AccessDeniedException: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>     at sun.nio.fs.WindowsException.translateToIOException 
> (WindowsException.java:83)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:97)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:102)
>     at sun.nio.fs.WindowsFileCopy.copy (WindowsFileCopy.java:165)
>     at sun.nio.fs.WindowsFileSystemProvider.copy 
> (WindowsFileSystemProvider.java:278)
>     at java.nio.file.Files.copy (Files.java:1274)
> {code}
> It only occurs on {color:#ff}windows{color} and with 
> maven-war-plugin{color:#ff} 3.2.x{color}. Fullstacktrace here: 
> [^build-error.log]
> Version {color:#14892c}3.1.0 and older{color} works fine



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MWAR-420) build failure in lifecycle deploy: 'Could not copy webapp sources'

2018-11-07 Thread Robert Scholte (JIRA)


[ 
https://issues.apache.org/jira/browse/MWAR-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16678665#comment-16678665
 ] 

Robert Scholte commented on MWAR-420:
-

Issue confirmed. Kind of surprised, there should be no need to do another copy, 
so plugin can be improved.
btw, calling {{mvn clean install deploy}} is incorrect, now the build lifecycle 
is called twice: once up until install, and again up until deploy. Just call 
{{mvn deploy}}

> build failure in lifecycle deploy: 'Could not copy webapp sources'
> --
>
> Key: MWAR-420
> URL: https://issues.apache.org/jira/browse/MWAR-420
> Project: Maven WAR Plugin
>  Issue Type: Bug
>Affects Versions: 3.2.0, 3.2.1, 3.2.2
>Reporter: Bruno Marti
>Priority: Major
> Attachments: build-error.log, testWarPlugin.zip
>
>
> Since version 3.2.x there is a build failure in maven-war-plugin on lifecycle 
> 'deploy'.
> {code:java}
> mvn package package -e{code}
> If you build sample webapp (see attachement: [^testWarPlugin.zip]) with 
> version 3.2.2 following error occurs:
> {code:java}
> [INFO] --- maven-war-plugin:3.2.2:war (default-war) @ testWarPlugin ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [testWarPlugin] in 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp resources [C:\TEMP\testWarPlugin\src\main\webapp]
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 5.106 s
> [INFO] Finished at: 2018-11-07T10:11:58+01:00
> [INFO] 
> 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on project 
> testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>  -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on 
> project testWarPlugin: Could not copy webapp sources 
> [C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT]
> ...
> Caused by: java.nio.file.AccessDeniedException: 
> C:\TEMP\testWarPlugin\target\testWarPlugin-1.0-SNAPSHOT\images\ajaxloading.gif
>     at sun.nio.fs.WindowsException.translateToIOException 
> (WindowsException.java:83)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:97)
>     at sun.nio.fs.WindowsException.rethrowAsIOException 
> (WindowsException.java:102)
>     at sun.nio.fs.WindowsFileCopy.copy (WindowsFileCopy.java:165)
>     at sun.nio.fs.WindowsFileSystemProvider.copy 
> (WindowsFileSystemProvider.java:278)
>     at java.nio.file.Files.copy (Files.java:1274)
> {code}
> It only occurs on {color:#ff}windows{color} and with 
> maven-war-plugin{color:#ff} 3.2.x{color}. Fullstacktrace here: 
> [^build-error.log]
> Version {color:#14892c}3.1.0 and older{color} works fine



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)