Skip to content

davidburkhart/no-package-cycles-enforcer-rule

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

This Maven Enforcer Rule checks your project for package cycles. It fails the build if any package cycle is found, showing you the packages and classes involved in the cycle.

Usage: Add the following plugin to your POM:

<plugin>
	<artifactId>maven-enforcer-plugin</artifactId>
	<version>1.2</version>
	<dependencies>
		<dependency>
			<groupId>de.andrena.tools.nopackagecycles</groupId>
			<artifactId>no-package-cycles-enforcer-rule</artifactId>
			<version>1.0.4</version>
		</dependency>
	</dependencies>
	<executions>
		<execution>
			<id>enforce-no-package-cycles</id>
			<goals>
				<goal>enforce</goal>
			</goals>
			<phase>test-compile</phase>
			<configuration>
				<rules>
					<NoPackageCyclesRule implementation="de.andrena.tools.nopackagecycles.NoPackageCyclesRule" />
				</rules>
			</configuration>
		</execution>
	</executions>
</plugin>

See also:

Packages

No packages published

Languages

  • JavaScript 64.2%
  • CSS 29.3%
  • Java 6.5%