maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristiano Gavião <cvgav...@gmail.com>
Subject Re: How to extend the dependencies of a reused plugin ?
Date Wed, 10 Sep 2014 20:42:14 GMT
well, seems that there is no way to accomplish that easily.

but I found a working solution. I created another mojo in project B 
extending the mojo class from project A and changed the lifecycle 
settings properly...

best,

Cristiano

On 10-09-2014 12:18, Cristiano Gavião wrote:
> Hello,
>
> I have two maven plugins  A and B.
>
> When used separated I can extend the dependencies of A using this:
>
>      <plugin>
>           <artifactId>org.A</artifactId>
>           <dependencies>
>               <dependency>
> <artifactId>anDependency</artifactId>
>               </dependency>
>            </dependencies>
> </plugin>
>
> Now I have the plugin B that defines a custom lifecycle and there I 
> added a reference to a goal of plugin A in the install phase.
>
> question is: how can I extend the plugin A dependencies in this case ? 
> (note that final user should declares only the plugin B in its pom)
>
> thanks a lot
>
> regards,
>
> Cristiano
>
>


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


Mime
View raw message