-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution fails for artifacts from workspace resolved projects #2
Comments
Just so I'm clear is org.richfaces.sandbox.ui.bootstrap:bootstrap-ui a module in the same build as the module containing the configuration snippet above? If so then I'd agree that this is really a manifestation of MDEP-187/98. I've hit this bug before myself, and have voted for it in JIRA. If memory serves my only workaround was to reorganize my modules such that the needed resources were in the same project as I was trying to unpack into. I'm not aware of anything I could do in the connector to work around this issue. I'm all ears if there are any suggestions? Otherwise I'm not sure what else I could do other than close this as "Can't Fix Here". |
Yeah, let's close this - we can address it in scope of #1. |
Having slept on it the only option that has come to mind is to re-implement the Mojos in the connector itself. We'd then perform the unpack directly instead of invoking the Mojo itself, accounting of course for dependencies that resolve to directories as well as archives. Since the root bug can occur when invoking from the command line as well as from m2e, that wouldn't seem a very productive endeavor. I've reached the current Maven Dependency Plugin maintainer on the Maven Dev mailing list. I'll see if I can't do anything to help expedite a fix in the plugin itself. It looks like there is a new release in the works. Hopefully we can act fast enough to get something for this included. |
Awesome! Thanks for bringing the issue under the light again. :-) |
unpack
on workspace resolved project
Migrating conversation from issue #1, @coderplus wrote:
...and @karlvr wrote:
|
I think that the issue is not with the plugin but M2E's Workspace resolution would mean that the dependencies or artifactItems which the maven-dependency-plugin tries to resolve will be resolved to the output directory of the corresponding workspace project(if workspace resolution is turned on and the dependency/artifactItem exists in workspace). I have amended the connector in such a way that the execution is not delegated to the plugin but is done within the connector itself. I have ignored the markers, but most of it does work though it is not tested well enough.Can you folks have a look at that? |
Thanks @coderplus. I guess this is a practical solution. I don't like the idea of copying a lot of functionality from the dependency plugin in order to achieve this, as I'm sure none of us do - perhaps it is the only way. Does it feel like it's impossible to get this support into the dependency plugin itself? I guess realistically the m2e support should be in there too - I know @ianbrandt has written about why there are advantages to the m2e support being separate, but it would obviously be tonnes easier if they were combined. Am I barking up the wrong tree? |
I'm confused, I thought this connector is supposed to solve the problem of unpacking workspace-resolved artifacts.
|
PS. This appears when I do a clean build. After that, when I run |
Confirmed, I still see the workspace-resolved artifact unpack issue mentioned above with version 0.0.4.201409291703. The error doesn't disappear after running
|
I've seen a lot of people having trouble with this issue, mostly in the |
MDEP-187 has a pull request attached to it. It was closed because tests were never added. apache/maven-plugins#31 |
I just got hit by this issue again after starting fresh with a new Eclipse installation. |
Configuration:
Note that referenced
artifactItem
is resolved loaded into workspace.Following error occurs:
This is bug which maven-dependency-plugin suffers from:
The text was updated successfully, but these errors were encountered: