maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Marti (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MWAR-420) build failure in lifecycle deploy: 'Could not copy webapp sources'
Date Wed, 07 Nov 2018 09:21:00 GMT

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

Bruno Marti updated MWAR-420:
-----------------------------
    Attachment: build-error.log

> 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
>
>
> Since version 3.2.x there is a build failure in maven-war-plugin on lifecycle 'deploy'.
> {code:java}
> mvn cean install deploy -e{code}
> If you build sample webapp (see attachement) 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:#FF0000}windows{color} and with maven-war-plugin{color:#FF0000}
3.2.x{color}.
> Version {color:#14892c}3.1.0 and older{color} works fine



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

Mime
View raw message