You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Cristiano Gavião <cv...@gmail.com> on 2014/09/10 17:18:51 UTC

How to extend the dependencies of a reused plugin ?

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


Re: How to extend the dependencies of a reused plugin ?

Posted by Cristiano Gavião <cv...@gmail.com>.
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