Skip to content

Commit bce7ea5

Browse files
author
Ben Romberg
committed
improve readme
remove pom warnings
1 parent c2f3304 commit bce7ea5

File tree

3 files changed

+37
-31
lines changed

3 files changed

+37
-31
lines changed

README

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[![Build Status](https://buildhive.cloudbees.com/job/andrena/job/no-package-cycles-enforcer-rule/badge/icon)](https://buildhive.cloudbees.com/job/andrena/job/no-package-cycles-enforcer-rule/)
2+
3+
Usage: Build and add the following plugin:
4+
5+
```
6+
<plugin>
7+
<artifactId>maven-enforcer-plugin</artifactId>
8+
<version>1.2</version>
9+
<dependencies>
10+
<dependency>
11+
<groupId>de.andrena.tools.nopackagecycles</groupId>
12+
<artifactId>no-package-cycles-enforcer-rule</artifactId>
13+
<version>1.0.0</version>
14+
</dependency>
15+
</dependencies>
16+
<executions>
17+
<execution>
18+
<id>enforce-no-package-cycles</id>
19+
<goals>
20+
<goal>enforce</goal>
21+
</goals>
22+
<phase>verify</phase>
23+
<configuration>
24+
<rules>
25+
<NoPackageCyclesRule implementation="de.andrena.tools.nopackagecycles.NoPackageCyclesRule" />
26+
</rules>
27+
</configuration>
28+
</execution>
29+
</executions>
30+
</plugin>
31+
```
32+
33+
See also: original version at http://stackoverflow.com/questions/3416547/maven-jdepend-fail-build-with-cycles
34+
35+
Improved by showing all packages afflicted with cycles and the corresponding classes importing the conflicting packages.

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
<plugin>
5858
<groupId>org.apache.maven.plugins</groupId>
5959
<artifactId>maven-source-plugin</artifactId>
60+
<version>2.2.1</version>
6061
<executions>
6162
<execution>
6263
<id>attach-sources</id>
@@ -69,6 +70,7 @@
6970
<plugin>
7071
<groupId>org.apache.maven.plugins</groupId>
7172
<artifactId>maven-javadoc-plugin</artifactId>
73+
<version>2.9</version>
7274
<executions>
7375
<execution>
7476
<id>attach-javadocs</id>

0 commit comments

Comments
 (0)