Thursday, March 18, 2010

maven enforcer plugin

Checking a system property
        <executions>
<execution>
<id>enforce-property</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<configuration>
<rules>
<<b>requireProperty</b>>
<property>java7.home</property>
<message>"You must set a property java7.home!"</message>
</requireProperty>
</rules>
</configuration>
more rules





No comments:

Post a Comment