Description
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.