Hi Conny,
what about this idea:
1. Create a properties file 'something.properties' in Your parent POM
module directory and set the 'skip' property for the enforcer plugin in
there:
enforcer.skip=true
2. Configure the Properties Plugin in the build section of Your parent POM:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<goals>
<goal>read-project-properties</goal>
</goals>
<!--
Bind the execution to the validate phase so
that it is executed BEFORE the enforcer plugin
-->
<phase>validate</phase>
<configuration>
<!--
The execution should not fail if
the properties file cannot be found
-->
<quiet>true</quiet>
<files>
<file>something.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
With this, the execution of the Enforcer plugin should be skipped only
in modules that contain the 'something.properties' with the property
'enforcer.skip=true'.
I only tested it briefly, but it seems to work.
Hope that helps
Marc
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]