Any thoughts on this?
Stephen

On 6 November 2013 12:37, Stephen Colebourne <scolebou...@joda.org> wrote:
> I have a plugin that needs to access just one dependency from the project.
>
> Currently I use "@requiresDependencyResolution compile" and build the
> entire classpath:
> https://github.com/JodaOrg/joda-beans-maven-plugin/blob/master/src/main/java/org/joda/beans/maven/AbstractJodaBeansMojo.java#L213
>
> This is far from ideal as it requires the whole codebase that the
> plugin is used on to compile, which is hard given that it is a code
> generator...
>
> It looks like @requiresDependencyCollection might be what I need, but
> what steps must I take to find the actual dependency I want and then
> resolve just that one into a classpath?
>
> Feel free to examine the plugin:
> https://github.com/JodaOrg/joda-beans-maven-plugin/blob/master/src/main/java/org/joda/beans/maven
>
> thanks
> Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to