How to get plugin mojo to run without using executions in pom?

2007-01-11 Thread Thierry Lach
Warning - m2 programming noobie here. I'm trying to write a mojo that will execute when maven runs anytime the plugin is referenced, without adding the executions. In other words, I want the pom to be: plugin groupIdorg.example.maven/groupId

Re: How to get plugin mojo to run without using executions in pom?

2007-01-11 Thread drekka
Hi, I got into this as well a few weeks ago. The answer is that you have to have a parent pom where you declare the plugin and it's executions. Inside that you have two choices: 1. Declare the plugin (and executions) as per normal. Then when executing any derived poms, the pluglin will be

Re: How to get plugin mojo to run without using executions in pom?

2007-01-11 Thread kovalen pechaycaren
Maybe this could be helpful: http://www.nabble.com/maven-plugin-execution-phase%3A-post-site--tf2513362.html#a7014966 Kovalen