You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2017/04/16 18:00:43 UTC

[jira] [Assigned] (MDEP-428) Unpack goal does not fail build when destination could not be created and unpacks to current working directory instead

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

Michael Osipov reassigned MDEP-428:
-----------------------------------

    Assignee: Michael Osipov

> Unpack goal does not fail build when destination could not be created and unpacks to current working directory instead
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: MDEP-428
>                 URL: https://issues.apache.org/jira/browse/MDEP-428
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: unpack
>    Affects Versions: 2.8
>            Reporter: Dave Moten
>            Assignee: Michael Osipov
>             Fix For: 3.0.1
>
>         Attachments: mdep-bug-patch, mdep-bug.zip
>
>
> The unpack goal attempts to create the outputDirectory using File.mkdirs() if it does not exist. If this attempt fails for example due to not having write permission to the parent directory of outputDirectory then unfortunately the build reports that it succeeded and moreover unpacks the artifact to the current working directory.
> Attached is a example project in mdep-bug.zip that does not fail to build on mvn clean install on linux/unix despite the outputDirectory being on the root of the file system that would not normally be writeable by a non-root user. Additionally the artifacts are unpacked into the mdep-bug directory!
> Attached also is a patch to fix the behaviour and to unit test it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)