Skip to content

Instantly share code, notes, and snippets.

@cemo
Created May 13, 2013 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemo/5568713 to your computer and use it in GitHub Desktop.
Save cemo/5568713 to your computer and use it in GitHub Desktop.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0.1</version>
<dependencies>
<dependency>
<groupId>magnet.toolchain</groupId>
<artifactId>magnet-enforce-plugin-rules-extension</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>enforce</id>
<phase>process-classes</phase>
<configuration>
<rules>
<myCustomRule implementation="magnet.plugin.enforce.rules.AnnotationEnforcerRule">
<mustHaveAnnotation>match.web.commonspring.annotation.StrutsAction</mustHaveAnnotation>
<targetSuperTypeForSubtypes>com.opensymphony.xwork2.ActionSupport
</targetSuperTypeForSubtypes>
</myCustomRule>
</rules>
</configuration>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment