You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Tatham <be...@nanometrics.ca> on 2011/05/04 15:44:24 UTC

depending on project classes in plugin

Hi,
I have a plugin that depends on the classes in the project from where the
plugin is called.  Is there a way to add the un-installed classes (ie add
target/classes) to the classpath of the plugin at runtime?  Normally, you
would do this by adding a <dependency> to the plugin definition in the pom,
but since the project itself has not been released yet, this is not
possible.

Currently, I release the project, release the plugin with updated
dependency, and then re-release the project again.  I am hoping a for a
single run of the project build, and no need to rebuild the plugin each
time.

Perhaps a multi-module build would help here...

Thanks,
Ben