[
https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305208#comment-305208
]
Herve Boutemy edited comment on MDEP-187 at 12/17/12 8:51 PM:
--------------------------------------------------------------
copy problem looks a lot like unpack problem, but has a major difference: when
unpack finds a directory, copying it ressembles a lot to unpacking packaged
artifact (if no classifier and nothing generated during packaging)
but if copy finds a directory, what is it expected to do? copy the directory
(even if expected result is a file)? create a zip file with the directory
content? create a jar file (what to do with the Manifest?)? fail? ignore with
warning?
this seems like there is no solution other than require to package first, or
we'll get an approximation that can be more problematic than a clear failure
was (Author: hboutemy):
copy problem looks a lot like unpack problem, but has a major difference:
when unpack finds a directory, copying it ressembles a lot to unpacking
packaged artifact (if no classifier and nothing generated during packaging)
but if copy finds a directory, what is it expected to do? copy the directory
(even if expected result is a file)? create a zip file with the directory
content? fail? ignore with warning?
> 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 2.x 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira