[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=353540#comment-353540 ]
Hannes Kogler commented on MDEP-187: ------------------------------------ same problem here! we have a common parent project that hosts some ant scripts we use in the single child projects what we want to do is to: => download the zip file of the parent project, including all the common ant scripts we need, and unpack it to the target folder of every single child project. on the build server, where pure Maven is used, this is no problem. But if we are in Eclipse workspace where we use m2e, and the *workspace resolution is enabled*, AND the *parent project* is also checked out *in the same workspace* directory, the download of the zip dependency doesn't work. The downloaded zip file gets corrupted and we get the message: _Error unpacking file: ... org.codehaus.plexus.archiver.ArchiverException: Error while expanding_ => the downloaded artifact is NOT the zip, but just the corresponding pom.xml file! (named as zip archive) As a workaround we tried to implement the same download concept using the maven-assembly-plugin, but this results in the same error trying to unpack the invalid archive. So I would say this is more a m2e bug than a specific problem in the maven-dependency-plugin?! > dependency:copy fails when invoked from m2e with workspace resolution > enabled, or more generally when copying within reactor for phases earlier > than package > ------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: MDEP-187 > URL: https://jira.codehaus.org/browse/MDEP-187 > Project: Maven Dependency Plugin > Issue Type: Bug > Components: copy, copy-dependencies > Affects Versions: 2.1 > Reporter: Igor Fedorenko > Attachments: MDEP-187b.diff, MDEP-187c.diff, MDEP-187.diff > > > m2e resolves workspace artifacts to their output folders but dependency:copy > expects all artifacts to be files. I will provide trivial patch shortly. -- This message was sent by Atlassian JIRA (v6.1.6#6162)