Found the answer, you need to use combine.self="override" in the compiler plugin settings. More details at http://stackoverflow.com/questions/1771561/maven-is-it-possible-to-override-the-configuration-of-a-plugin-already-defined

On 05/08/2014 05:59 PM, Niranjan Rao wrote:
I have a master POM file which defines common stuff such as common dependencies like junit and compiler settings.

The compiler settings are set to treat warning as error using maven-compiler-plugin and Werror as compiler argument. I have a new module which declares the master pom as parent pom, but has generated code which has lot of warnings. I would like to disable treating warnings as errors only for this module or if possible only for generated package or generated source directory.

I tried adding compiler plugin entry in module's pom file. But it looks like it overrides from parent. How do I disable warnings for this module only?

Regards,

Niranjan


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to