Hi guys,

I'm having some issues with retrieving project dependencies from a custom plugin mojo I've written. This mojo needs to be bound to the generate-sources lifecycle phase, because I'm using my plugin to create some java beans which should be added to my project. What I want to do is annotate these beans with annotation classes which are described in a project dependency.

I've done something similar before with a mojo that was bound to the process-classes phase, so I know how to retrieve and load the classes I need, but the problem I'm having is that the expression "${project.artifacts}" doesn't get the list of dependent artifacts in my project in this case: I figure that this is because the lifecycle phase I'm binding to comes before the process-resources phase, because after this phase the list is populated with the artifacts I would expect.

Does anybody have any neat solutions to this problem? Or should I accept that I can't get hold of artifacts at this phase without reimplementing all the stuff for loading artifacts?

Thanks,

Tony.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to