File tree Expand file tree Collapse file tree 3 files changed +37
-31
lines changed
Expand file tree Collapse file tree 3 files changed +37
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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 >
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 >
You can’t perform that action at this time.
0 commit comments