|
20 | 20 | <build> |
21 | 21 | <pluginManagement> |
22 | 22 | <plugins> |
23 | | - <plugin> |
24 | | - <groupId>org.apache.maven.plugins</groupId> |
25 | | - <artifactId>maven-checkstyle-plugin</artifactId> |
26 | | - <version>3.0.0</version> |
27 | | - <dependencies> |
28 | | - <dependency> |
29 | | - <groupId>com.puppycrawl.tools</groupId> |
30 | | - <artifactId>checkstyle</artifactId> |
31 | | - <version>[8.18,)</version> |
32 | | - </dependency> |
33 | | - <dependency> |
34 | | - <groupId>com.github.ngeor</groupId> |
35 | | - <artifactId>checkstyle-rules</artifactId> |
36 | | - <version>1.1.0</version> |
37 | | - </dependency> |
38 | | - </dependencies> |
39 | | - <configuration> |
40 | | - <configLocation>com/github/ngeor/checkstyle.xml</configLocation> |
41 | | - <includeTestSourceDirectory>true</includeTestSourceDirectory> |
42 | | - </configuration> |
43 | | - </plugin> |
44 | 23 | <plugin> |
45 | 24 | <groupId>org.apache.maven.plugins</groupId> |
46 | 25 | <artifactId>maven-jar-plugin</artifactId> |
|
57 | 36 | </plugin> |
58 | 37 | </plugins> |
59 | 38 | </pluginManagement> |
60 | | - <plugins> |
61 | | - <plugin> |
62 | | - <groupId>org.apache.maven.plugins</groupId> |
63 | | - <artifactId>maven-checkstyle-plugin</artifactId> |
64 | | - </plugin> |
65 | | - |
66 | | - <!-- |
67 | | - You can run jacoco in the default profile with: |
68 | | - mvn jacoco:prepare-agent test jacoco:report |
69 | | - --> |
70 | | - <plugin> |
71 | | - <groupId>org.jacoco</groupId> |
72 | | - <artifactId>jacoco-maven-plugin</artifactId> |
73 | | - <version>0.8.1</version> |
74 | | - </plugin> |
75 | | - </plugins> |
76 | 39 | </build> |
77 | | - <reporting> |
78 | | - <plugins> |
79 | | - <plugin> |
80 | | - <groupId>org.apache.maven.plugins</groupId> |
81 | | - <artifactId>maven-javadoc-plugin</artifactId> |
82 | | - <version>3.0.0</version> |
83 | | - </plugin> |
84 | | - <plugin> |
85 | | - <groupId>org.apache.maven.plugins</groupId> |
86 | | - <artifactId>maven-checkstyle-plugin</artifactId> |
87 | | - <configuration> |
88 | | - <configLocation>com/github/ngeor/checkstyle.xml</configLocation> |
89 | | - <includeTestSourceDirectory>true</includeTestSourceDirectory> |
90 | | - </configuration> |
91 | | - </plugin> |
92 | | - </plugins> |
93 | | - </reporting> |
94 | | - |
95 | | - <profiles> |
96 | | - <!-- |
97 | | - This profile enables jacoco when unit tests are run. |
98 | | - You can run it with mvn -P jacoco test. |
99 | | - It also activates itself on Travis. |
100 | | - --> |
101 | | - <!--profile> |
102 | | - <id>jacoco</id> |
103 | | - <activation> |
104 | | - <property> |
105 | | - <name>env.TRAVIS</name> |
106 | | - </property> |
107 | | - </activation> |
108 | | - <build> |
109 | | - <plugins> |
110 | | - <plugin> |
111 | | - <groupId>org.jacoco</groupId> |
112 | | - <artifactId>jacoco-maven-plugin</artifactId> |
113 | | - <executions> |
114 | | - <execution> |
115 | | - <id>prepare-agent</id> |
116 | | - <phase>validate</phase> |
117 | | - <goals> |
118 | | - <goal>prepare-agent</goal> |
119 | | - </goals> |
120 | | - </execution> |
121 | | - <execution> |
122 | | - <id>report</id> |
123 | | - <phase>test</phase> |
124 | | - <goals> |
125 | | - <goal>report</goal> |
126 | | - </goals> |
127 | | - </execution> |
128 | | - </executions> |
129 | | - </plugin> |
130 | | - </plugins> |
131 | | - </build> |
132 | | - </profile--> |
133 | | - |
134 | | - <!-- |
135 | | - For the Travis profile: |
136 | | - - we want to break the build on any checkstyle violation. |
137 | | - - we want to be able to publish coverage report to coveralls. |
138 | | - --> |
139 | | - <!--profile> |
140 | | - <id>travis</id> |
141 | | - <activation> |
142 | | - <property> |
143 | | - <name>env.TRAVIS</name> |
144 | | - </property> |
145 | | - </activation> |
146 | | - <build> |
147 | | - <plugins> |
148 | | - <plugin> |
149 | | - <groupId>org.apache.maven.plugins</groupId> |
150 | | - <artifactId>maven-checkstyle-plugin</artifactId> |
151 | | - <executions> |
152 | | - <execution> |
153 | | - <id>checkstyle</id> |
154 | | - <phase>test</phase> |
155 | | - <goals> |
156 | | - <goal>check</goal> |
157 | | - </goals> |
158 | | - </execution> |
159 | | - </executions> |
160 | | - </plugin> |
161 | | - <plugin> |
162 | | - <groupId>org.eluder.coveralls</groupId> |
163 | | - <artifactId>coveralls-maven-plugin</artifactId> |
164 | | - <version>4.3.0</version> |
165 | | - </plugin> |
166 | | - </plugins> |
167 | | - </build> |
168 | | - </profile--> |
169 | | - </profiles> |
170 | 40 | </project> |
0 commit comments