Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Detaching project from build reactor before executing a mojo

Hi all,
I'm trying to create a connector for the maven-dependency-plugin (copy, unpack goals etc). If the dependency which has to be copied or unpacked is already open in the workspace, while executing the mojo via a configurator, then the plugin throws the below error

Artifact has not been packaged yet. When used on reactor artifact, copy should be executed after packaging: see MDEP-187 is thrown


This doesn't go away if the dependent project is configured to package the dependency during an m2e build.


So,basically I'm trying to detach the dependent project from the reactor before invoking the plugin via m2eclipse and add it back after the execution.

Is this possible? Is it possible to programatically find out what all artifactitems are part of the build reactor and remove the ones you want to exclude?

Back to the top