maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Moten (JIRA)" <j...@codehaus.org>
Subject [jira] (MDEP-428) Unpack goal does not fail build when destination could not be created and unpacks to current working directory instead
Date Wed, 04 Sep 2013 06:53:52 GMT
Dave Moten created MDEP-428:
-------------------------------

             Summary: Unpack goal does not fail build when destination could not be created
and unpacks to current working directory instead
                 Key: MDEP-428
                 URL: https://jira.codehaus.org/browse/MDEP-428
             Project: Maven Dependency Plugin
          Issue Type: Bug
          Components: unpack
    Affects Versions: 2.8
            Reporter: Dave Moten
         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message