You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Igor Fedorenko (JIRA)" <ji...@codehaus.org> on 2008/11/12 23:28:13 UTC
[jira] Created: (MDEP-187) dependency:copy fails when invoked from
m2e with workspace resolution enabled
dependency:copy fails when invoked from m2e with workspace resolution enabled
-----------------------------------------------------------------------------
Key: MDEP-187
URL: http://jira.codehaus.org/browse/MDEP-187
Project: Maven 2.x Dependency Plugin
Issue Type: Bug
Affects Versions: 2.1
Reporter: Igor Fedorenko
Assignee: Brian Fox
Attachments: 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled, or more generally when copying within reactor
for phases earlier than package
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MDEP-187:
-------------------------------
Summary: dependency:copy fails when invoked from m2e with workspace resolution enabled, or more generally when copying within reactor for phases earlier than package (was: dependency:copy fails when invoked from m2e with workspace resolution enabled)
> 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
[jira] Commented: (MDEP-187) dependency:copy fails when invoked
from m2e with workspace resolution enabled
Posted by "Felipe desiderati (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174788#action_174788 ]
Felipe desiderati commented on MDEP-187:
----------------------------------------
I have the same problem too, and the only solution I´ve found was to simply disable workspace resolution. I know that is terrible and with this approach I have to install locally all the time the other dependent projects :(
Meanwhile, waiting for the fix.
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: http://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: MDEP-187.diff, MDEP-187b.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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MDEP-187:
-------------------------------
Component/s: copy
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: https://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Components: copy
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> 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
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled
Posted by "Art O Cathain (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=298748#comment-298748 ]
Art O Cathain commented on MDEP-187:
------------------------------------
Nicolas, I fiddled with your patch a bit (to add some debug logging) and added integration tests. I attached the result to MDEP-194. Can you take a look?
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: https://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> 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
[jira] Commented: (MDEP-187) dependency:copy fails when invoked
from m2e with workspace resolution enabled
Posted by "derek (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=186652#action_186652 ]
derek commented on MDEP-187:
----------------------------
Is there any other workarounds for this one?
Thanks,
Derek
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: http://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: MDEP-187.diff, MDEP-187b.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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305211#comment-305211 ]
Herve Boutemy commented on MDEP-187:
------------------------------------
error message improved in [r1368246|http://svn.apache.org/viewvc?rev=1368246&view=rev]
this doesn't fix the problem but at least makes it easier to track
notice that another corner case to take care is when the dependency to copy has a classifier: we can't imagine the content before the artifact has been packaged
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> 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
> Assignee: Brian Fox
> 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
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled
Posted by "Nicolás Cornaglia (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolás Cornaglia updated MDEP-187:
-----------------------------------
Attachment: MDEP-187c.diff
My 2cents to this bug with m2e.
Added support to copy the expanded directory to expanded folders.
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: https://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> 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
[jira] Issue Comment Edited: (MDEP-187) dependency:copy fails when
invoked from m2e with workspace resolution enabled
Posted by "Walt (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277905#comment-277905 ]
Walt edited comment on MDEP-187 at 9/6/11 6:02 PM:
---------------------------------------------------
I'm hitting this problem from the command line.
{code:xml}
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>obtain instrumentation candidates</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
<classifier>sources</classifier>
<includes>**/GeneratedPlugin.java</includes>
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
{code}
gives me
[code]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project my-control-plugins-cobertura: Error unpacking file: /home/me/devel/my/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
[ERROR] org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project oo-control-plugins-cobertura: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:267)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:116)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:94)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:185)
at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:118)
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:258)
... 23 more
[/code]
>From the looks of it, this has been an issue now for 4 years and it's still not fixed?????
was (Author: hemna):
I'm hitting this problem from the command line.
[code]
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>obtain instrumentation candidates</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
<classifier>sources</classifier>
<includes>**/GeneratedPlugin.java</includes>
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
[/code]
gives me
[code]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project my-control-plugins-cobertura: Error unpacking file: /home/me/devel/my/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
[ERROR] org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project oo-control-plugins-cobertura: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:267)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:116)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:94)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:185)
at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:118)
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:258)
... 23 more
[/code]
>From the looks of it, this has been an issue now for 4 years and it's still not fixed?????
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: https://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: MDEP-187b.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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MDEP-187) dependency:copy fails when invoked
from m2e with workspace resolution enabled
Posted by "Marcelo Alcantara (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=172471#action_172471 ]
Marcelo Alcantara commented on MDEP-187:
----------------------------------------
I was having the same problem as mentioned on the [MNGECLIPSE-1027] and saw the recomendation to update the maven-dependency-plugin to version 2.1.
I updated the plugin but still have the same problem.
Any ideas?
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: http://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: MDEP-187.diff, MDEP-187b.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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (MDEP-187) dependency:copy fails when
invoked from m2e with workspace resolution enabled
Posted by "Walt (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277905#comment-277905 ]
Walt edited comment on MDEP-187 at 9/6/11 6:02 PM:
---------------------------------------------------
I'm hitting this problem from the command line.
{code:xml}
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>obtain instrumentation candidates</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
<classifier>sources</classifier>
<includes>**/GeneratedPlugin.java</includes>
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
{code}
gives me
{code}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project my-control-plugins-cobertura: Error unpacking file: /home/me/devel/my/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
[ERROR] org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project oo-control-plugins-cobertura: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:267)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:116)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:94)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:185)
at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:118)
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:258)
... 23 more
{code}
>From the looks of it, this has been an issue now for 4 years and it's still not fixed?????
was (Author: hemna):
I'm hitting this problem from the command line.
{code:xml}
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>obtain instrumentation candidates</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
<classifier>sources</classifier>
<includes>**/GeneratedPlugin.java</includes>
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
{code}
gives me
[code]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project my-control-plugins-cobertura: Error unpacking file: /home/me/devel/my/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
[ERROR] org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project oo-control-plugins-cobertura: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:267)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:116)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:94)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:185)
at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:118)
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:258)
... 23 more
[/code]
>From the looks of it, this has been an issue now for 4 years and it's still not fixed?????
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: https://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: MDEP-187b.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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MDEP-187) dependency:copy fails when invoked
from m2e with workspace resolution enabled
Posted by "Walt (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277905#comment-277905 ]
Walt commented on MDEP-187:
---------------------------
I'm hitting this problem from the command line.
[code]
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>obtain instrumentation candidates</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>my-control-plugins</artifactId>
<classifier>sources</classifier>
<includes>**/GeneratedPlugin.java</includes>
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
[/code]
gives me
[code]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project my-control-plugins-cobertura: Error unpacking file: /home/me/devel/my/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
[ERROR] org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.3:unpack (obtain instrumentation candidates) on project oo-control-plugins-cobertura: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error unpacking file: /home/me/devel/execution/exec-plugins/my-control-plugins/target/classes to: /home/me/devel/execution/exec-plugins/my-control-plugins-cobertura/target/dependency
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:267)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:116)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:94)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
at org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:185)
at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:118)
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:258)
... 23 more
[/code]
>From the looks of it, this has been an issue now for 4 years and it's still not fixed?????
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: https://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: MDEP-187b.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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy reassigned MDEP-187:
----------------------------------
Assignee: (was: Brian Fox)
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> 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
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled, or more generally when copying within reactor
for phases earlier than package
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Updated: (MDEP-187) dependency:copy fails when invoked from
m2e with workspace resolution enabled
Posted by "Igor Fedorenko (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Fedorenko updated MDEP-187:
--------------------------------
Attachment: MDEP-187.diff
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: http://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MDEP-187) dependency:copy fails when invoked from
m2e with workspace resolution enabled
Posted by "Igor Fedorenko (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Fedorenko updated MDEP-187:
--------------------------------
Attachment: MDEP-187b.diff
updated path that fixes same exception in unpack mojo and also includes two unit tests.
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: http://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: MDEP-187.diff, MDEP-187b.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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MDEP-187) dependency:copy fails when invoked
from m2e with workspace resolution enabled
Posted by "Clint Shank (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=198438#action_198438 ]
Clint Shank commented on MDEP-187:
----------------------------------
My current workaround for this issue is to use the antrun plug-in. For example,
{code:xml}
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<!-- copy just built artifact to some lib dir -->
<id>copy-to-lib</id>
<goals>
<goal>run</goal>
</goals>
<phase>package</phase>
<configuration>
<tasks>
<copy
file="${project.build.directory}/${project.build.finalName}.${project.packaging}"
tofile="${some.lib.dir}/${project.artifactId}.${project.packaging}" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
{code}
This allows "Resolve dependencies from Workspace projects" to work.
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: http://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: MDEP-187.diff, MDEP-187b.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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled, or more generally when copying within reactor
for phases earlier than package
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305211#comment-305211 ]
Herve Boutemy edited comment on MDEP-187 at 12/17/12 8:52 PM:
--------------------------------------------------------------
error message improved in [r1368246|http://svn.apache.org/viewvc?rev=1368246&view=rev]
this doesn't fix the problem (which cannot be fixed IMHO) but at least makes it easier to track
notice that another corner case to take care is when the dependency to copy has a classifier: we can't even imagine the content before the artifact has been packaged
was (Author: hboutemy):
error message improved in [r1368246|http://svn.apache.org/viewvc?rev=1368246&view=rev]
this doesn't fix the problem but at least makes it easier to track
notice that another corner case to take care is when the dependency to copy has a classifier: we can't imagine the content before the artifact has been packaged
> 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
[jira] Commented: (MDEP-187) dependency:copy fails when invoked
from m2e with workspace resolution enabled
Posted by "Julien Wajsberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179432#action_179432 ]
Julien Wajsberg commented on MDEP-187:
--------------------------------------
Is it possible to have this patch applied if it works ?
Thanks.
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> Key: MDEP-187
> URL: http://jira.codehaus.org/browse/MDEP-187
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Igor Fedorenko
> Assignee: Brian Fox
> Attachments: MDEP-187.diff, MDEP-187b.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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305208#comment-305208 ]
Herve Boutemy commented on MDEP-187:
------------------------------------
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
> -----------------------------------------------------------------------------
>
> 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
> Assignee: Brian Fox
> 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
[jira] (MDEP-187) dependency:copy fails when invoked from m2e with
workspace resolution enabled
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDEP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MDEP-187:
-------------------------------
Component/s: copy-dependencies
> dependency:copy fails when invoked from m2e with workspace resolution enabled
> -----------------------------------------------------------------------------
>
> 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
> Assignee: Brian Fox
> 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