Hi Martin, A quick Google search revealed this: https://github.com/andrena/no-package-cycles-enforcer-rule
I haven't tried it personally. Though now that I know about it, I'm sorely tempted—it would certainly improve the API design. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden On Tue, Jan 10, 2017 at 9:34 AM, Martin Gainty <[email protected]> wrote: > I need to detect package cycles such as what is seen here: > > class ClassA > > { > > ClassB classB; //detect this package cycle! > > } > class ClassB extends ClassA > > { > > } > > > which maven-enforcer-plugin rule will allow me to detect package cycle? > > > http://maven.apache.org/enforcer/enforcer-rules/index.html > > Apache Maven Enforcer Rules - Standard Rules<http://maven.apache.org/ > enforcer/enforcer-rules/index.html> > maven.apache.org > Standard Rules. The following standard rules ship along with the enforcer > plugin: alwaysFail - Always fail... used to test plugin configuration. > alwaysPass - Always ... > > > > > Thanks! > > Martin > ______________________________________________ > >
