Best way for packaging maven plugin

2014-03-09 Thread alexscott
Hello,

I have a maven project with many modules, some of them use a maven plugin
into the goal compile. This plugin is also a module.

When I clean then package the parent project everything is OK, the plugin is
well executed into child module.

But when I clean - compile the parent project, the first module that need to
execute the plugin throw an error : No plugin descriptor found at
META-INF/maven/plugin.xml

Indeed, the file plugin.xml seems to be generated during the packaging,
that's why I have an error on the goal compile.

Please, Do you know I could resolve that ?
How do you package your plugin with the rest of the project ?

Thanks for your helps.

Alex





--
View this message in context: 
http://maven.40175.n5.nabble.com/Best-way-for-packaging-maven-plugin-tp5787233.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Best way for packaging maven plugin

2014-03-09 Thread Wayne Fay
 I have a maven project with many modules, some of them use a maven plugin
 into the goal compile. This plugin is also a module.

Best practice (IMO  IME) is to have the plugin as its own,
independent project. Then depend on the plugin in your other projects.

Wayne

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