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 ?

Can you also share some information on how that file is consumed by other project? Does the artifacts have a classifier?
Is this file used during full and/or incremental build of the dependent project.

This might be fixable in m2e and I would like to get more information on this particular usecase.

2015-12-03 16:07 GMT+02:00 Hawkboy <chrishawk72@xxxxxxxxx>:
Hi Anton,

thanks for the information.

in order to have a quick solution and avoid the exceptions I changed our plugin to use aether to get the latest built artifact from local repository when it detects a "target/classes" file were returned.
I will study how to create an extension when I have more time ...

regards


On 02-12-2015 05:50, Anton Tanasenko wrote:
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.


_______________________________________________
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


_______________________________________________
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