Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Is this a case for a m2e extension ?

Hi,
M2E does not support resolution of artifact files produced by workspace projects. It's the same reason why most maven-dependency-plugin goals do not work in m2e.

You'll need to create an extension which would wire produced artifacts with their dependent projects.


2015-12-01 17:48 GMT+02:00 Hawkboy <chrishawk72@xxxxxxxxx>:
Hello,

We have a maven plugin using a custom packaging type whose main objective is to generate a description text file based on the configuration and declared dependencies(of the same custom type) then it groups all files into a compressed file.

In order to use it with eclipse we have created a lifecycle-mapping-metadata.xml to declare the plugin goals and allows for incremental building. Also we modified the mojos in order to avoid looping and unnecessary buildings.

it is working well (at least we can see the compressed file being generated with the nested files) except when there are any of the dependencies opened in the same eclipse workspace.
In such case we are getting an exception because aether is not resolving the artifact to the generated compressed file at workspace but its pointing to project's output directory instead.

What is the recommended steps in such case ? should we create a m2e extension just for that ?

thanks for any tip.

Chris
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-dev



--
Regards,
Anton.

Back to the top