Hi,
the first thing in such situations is to create a separate module which
contains the generation code part. In this module you can change the
configuration for maven-compiler-plugin via a pluginManagemen block...
So looks like this:
parent (pom.xml)
+-- mod-generated (pom.xml)
+-- mod-the-rest (pom.xml)
If you follow this suggestions you have clear separation of concern for
your modules and you only need to change the configuration for the
mod-generated.
Kind regards
Karl-Heinz Marbaise
On 5/9/14 2:59 AM, 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]