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

[jira] [Updated] (MEAR-291) Exception "Failed to create directory..." thrown if "workDirectory" already exists

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

Tobias Wildgruber updated MEAR-291:
-----------------------------------
    Description: 
{{Caused by: org.apache.maven.plugin.MojoFailureException: Failed to create directory }}{{.......}}{{/target/temp/xxx.war}}
 {{at org.apache.maven.plugins.ear.EarMojo.changeManifestClasspath (EarMojo.java:763)}}
 {{at org.apache.maven.plugins.ear.EarMojo.copyModules (EarMojo.java:466)}}
 {{at org.apache.maven.plugins.ear.EarMojo.execute (EarMojo.java:336)}}
  

mkdirs() also returns false if there was nothing that had to be created (f.e. the directory still exists from a previous run)
  

  was:
{{Caused by: org.apache.maven.plugin.MojoFailureException: Failed to create directory /home/tow/ng/pm-platform/platform/ear/ng-with-tests/target/temp/ng.war}}
{{at org.apache.maven.plugins.ear.EarMojo.changeManifestClasspath (EarMojo.java:763)}}
{{at org.apache.maven.plugins.ear.EarMojo.copyModules (EarMojo.java:466)}}
{{at org.apache.maven.plugins.ear.EarMojo.execute (EarMojo.java:336)}}
 

mkdirs() also returns false if there was nothing that had to be created (f.e. the directory still exists from a previous run)
 


> Exception "Failed to create directory..." thrown if "workDirectory" already exists
> ----------------------------------------------------------------------------------
>
>                 Key: MEAR-291
>                 URL: https://issues.apache.org/jira/browse/MEAR-291
>             Project: Maven EAR Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Tobias Wildgruber
>            Priority: Major
>
> {{Caused by: org.apache.maven.plugin.MojoFailureException: Failed to create directory }}{{.......}}{{/target/temp/xxx.war}}
>  {{at org.apache.maven.plugins.ear.EarMojo.changeManifestClasspath (EarMojo.java:763)}}
>  {{at org.apache.maven.plugins.ear.EarMojo.copyModules (EarMojo.java:466)}}
>  {{at org.apache.maven.plugins.ear.EarMojo.execute (EarMojo.java:336)}}
>   
> mkdirs() also returns false if there was nothing that had to be created (f.e. the directory still exists from a previous run)
>   



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