You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2020/10/12 13:00:00 UTC

[jira] [Resolved] (MEAR-287) Failed to create target directory when run without clean

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

Elliotte Rusty Harold resolved MEAR-287.
----------------------------------------
    Resolution: Fixed

> Failed to create target directory when run without clean
> --------------------------------------------------------
>
>                 Key: MEAR-287
>                 URL: https://issues.apache.org/jira/browse/MEAR-287
>             Project: Maven Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Mikhail Gavrilov
>            Assignee: Elliotte Rusty Harold
>            Priority: Major
>             Fix For: 3.1.1
>
>
> Steps to reproduce:
>  # Checkout [https://github.com/mabrarov/dockerfile-test]
>  # Set version of maven-ear-plugin in pom.xml to '3.1.0'
>  # Execute: {{mvn clean package -Ddocker.skip && mvn package -Ddocker.skip}}
> {code:bash}
> $ git clone --branch develop https://github.com/mabrarov/dockerfile-test.git && \
>  mvn -f dockerfile-test/pom.xml package -Dmaven-ear-plugin.version=3.1.0 -Ddocker.skip && \
>  mvn -f dockerfile-test/pom.xml package -Dmaven-ear-plugin.version=3.1.0 -Ddocker.skip
> ...
> [INFO] --- maven-ear-plugin:3.1.0:ear (default-ear) @ ear ---
> [INFO] Copying artifact [war:org.mabrarov.dockerfile-test:war:1.1.7-SNAPSHOT] to [org.mabrarov.dockerfile-test-war-1.1.7-SNAPSHOT.war]
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary for dockerfile-test 1.1.7-SNAPSHOT:
> [INFO] 
> [INFO] dockerfile-test .................................... SUCCESS [  1.728 s]
> [INFO] war ................................................ SUCCESS [  3.652 s]
> [INFO] ear ................................................ FAILURE [  0.371 s]
> [INFO] base-image ......................................... SUCCESS [  2.297 s]
> [INFO] hollow-image ....................................... SUCCESS [  1.152 s]
> [INFO] app-image .......................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  6.011 s (Wall Clock)
> [INFO] Finished at: 2020-10-01T14:34:15+03:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:3.1.0:ear (default-ear) on project ear: Failed to create directory XXX...\dockerfile-test\ear\target\temp\org.mabrarov.dockerfile-test-war-1.1.7-SNAPSHOT.war -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :ear
> {code}
> The same is described [here|https://github.com/apache/maven-ear-plugin/pull/15#issuecomment-702158521]



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