|
10 | 10 | <scm> |
11 | 11 | <url>https://github.com/buddycloud/buddycloud-server-java</url> |
12 | 12 | </scm> |
| 13 | + |
| 14 | + <properties> |
| 15 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 16 | + <project.build.withDependencies>jar-with-dependencies</project.build.withDependencies> |
| 17 | + <maven.checkstyle.plugin.version>2.13</maven.checkstyle.plugin.version> |
| 18 | + <checkstyle.config.location>src/main/resources/checkstyle.xml</checkstyle.config.location> |
| 19 | + </properties> |
| 20 | + |
13 | 21 | <dependencies> |
14 | 22 | <dependency> |
15 | 23 | <groupId>org.xbill</groupId> |
|
148 | 156 | </repository> |
149 | 157 | </repositories> |
150 | 158 | <build> |
151 | | - <plugins> |
152 | | - <plugin> |
153 | | - <!-- Extended Maven antrun plugin --> |
154 | | - <!-- https://maven-antrun-extended-plugin.dev.java.net/ --> |
155 | | - <groupId>org.jvnet.maven-antrun-extended-plugin</groupId> |
156 | | - <artifactId>maven-antrun-extended-plugin</artifactId> |
157 | | - <executions> |
158 | | - <execution> |
159 | | - <id>test-reports</id> |
160 | | - <phase>test</phase> |
161 | | - <configuration> |
162 | | - <tasks unless="maven.test.skip"> |
163 | | - <junitreport todir="target/surefire-reports"> |
164 | | - <fileset dir="target/surefire-reports"> |
165 | | - <include name="**/*.xml" /> |
166 | | - </fileset> |
167 | | - <report format="noframes" |
168 | | - todir="target/surefire-reports" /> |
169 | | - </junitreport> |
170 | | - </tasks> |
171 | | - </configuration> |
172 | | - <goals> |
173 | | - <goal>run</goal> |
174 | | - </goals> |
175 | | - </execution> |
176 | | - </executions> |
177 | | - <dependencies> |
178 | | - <dependency> |
179 | | - <groupId>org.apache.ant</groupId> |
180 | | - <artifactId>ant-junit</artifactId> |
181 | | - <version>1.8.0</version> |
182 | | - </dependency> |
183 | | - <dependency> |
184 | | - <groupId>org.apache.ant</groupId> |
185 | | - <artifactId>ant-trax</artifactId> |
186 | | - <version>1.8.0</version> |
187 | | - </dependency> |
188 | | - </dependencies> |
189 | | - </plugin> |
190 | | - <plugin> |
191 | | - <groupId>org.apache.maven.plugins</groupId> |
192 | | - <artifactId>maven-surefire-plugin</artifactId> |
193 | | - <version>2.5</version> |
194 | | - <configuration> |
195 | | - <argLine>-Duser.timezone=UTC -XX:MaxPermSize=1024m -Xmx1024m</argLine> |
196 | | - <skipTests>false</skipTests> |
197 | | - <testFailureIgnore>true</testFailureIgnore> |
198 | | - <forkMode>once</forkMode> |
199 | | - <includes> |
200 | | - <include>**/*Test.java</include> |
201 | | - </includes> |
202 | | - <useFile>false</useFile> |
203 | | - </configuration> |
204 | | - </plugin> |
205 | | - <plugin> |
206 | | - <groupId>org.apache.maven.plugins</groupId> |
207 | | - <artifactId>maven-compiler-plugin</artifactId> |
208 | | - <version>2.5.1</version> |
209 | | - <configuration> |
210 | | - <source>1.6</source> |
211 | | - <target>1.6</target> |
212 | | - </configuration> |
213 | | - </plugin> |
| 159 | + <pluginManagement> |
| 160 | + <plugins> |
| 161 | + <plugin> |
| 162 | + <!-- Extended Maven antrun plugin --> |
| 163 | + <!-- https://maven-antrun-extended-plugin.dev.java.net/ --> |
| 164 | + <groupId>org.jvnet.maven-antrun-extended-plugin</groupId> |
| 165 | + <artifactId>maven-antrun-extended-plugin</artifactId> |
| 166 | + <executions> |
| 167 | + <execution> |
| 168 | + <id>test-reports</id> |
| 169 | + <phase>test</phase> |
| 170 | + <configuration> |
| 171 | + <tasks unless="maven.test.skip"> |
| 172 | + <junitreport |
| 173 | + todir="target/surefire-reports"> |
| 174 | + <fileset |
| 175 | + dir="target/surefire-reports"> |
| 176 | + <include name="**/*.xml" /> |
| 177 | + </fileset> |
| 178 | + <report format="noframes" |
| 179 | + todir="target/surefire-reports" /> |
| 180 | + </junitreport> |
| 181 | + </tasks> |
| 182 | + </configuration> |
| 183 | + <goals> |
| 184 | + <goal>run</goal> |
| 185 | + </goals> |
| 186 | + </execution> |
| 187 | + </executions> |
| 188 | + <dependencies> |
| 189 | + <dependency> |
| 190 | + <groupId>org.apache.ant</groupId> |
| 191 | + <artifactId>ant-junit</artifactId> |
| 192 | + <version>1.8.0</version> |
| 193 | + </dependency> |
| 194 | + <dependency> |
| 195 | + <groupId>org.apache.ant</groupId> |
| 196 | + <artifactId>ant-trax</artifactId> |
| 197 | + <version>1.8.0</version> |
| 198 | + </dependency> |
| 199 | + </dependencies> |
| 200 | + </plugin> |
| 201 | + <plugin> |
| 202 | + <groupId>org.apache.maven.plugins</groupId> |
| 203 | + <artifactId>maven-surefire-plugin</artifactId> |
| 204 | + <version>2.5</version> |
| 205 | + <configuration> |
| 206 | + <argLine>-Duser.timezone=UTC -XX:MaxPermSize=1024m -Xmx1024m</argLine> |
| 207 | + <skipTests>false</skipTests> |
| 208 | + <testFailureIgnore>true</testFailureIgnore> |
| 209 | + <forkMode>once</forkMode> |
| 210 | + <includes> |
| 211 | + <include>**/*Test.java</include> |
| 212 | + </includes> |
| 213 | + <useFile>false</useFile> |
| 214 | + </configuration> |
| 215 | + </plugin> |
| 216 | + <plugin> |
| 217 | + <groupId>org.apache.maven.plugins</groupId> |
| 218 | + <artifactId>maven-compiler-plugin</artifactId> |
| 219 | + <version>2.5.1</version> |
| 220 | + <configuration> |
| 221 | + <source>1.6</source> |
| 222 | + <target>1.6</target> |
| 223 | + </configuration> |
| 224 | + </plugin> |
214 | 225 | <plugin> |
215 | 226 | <groupId>org.apache.maven.plugins</groupId> |
216 | 227 | <artifactId>maven-shade-plugin</artifactId> |
|
233 | 244 | </execution> |
234 | 245 | </executions> |
235 | 246 | </plugin> |
236 | | - </plugins> |
| 247 | + <plugin> |
| 248 | + <groupId>org.apache.maven.plugins</groupId> |
| 249 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 250 | + <configuration> |
| 251 | + <failOnViolation>true</failOnViolation> |
| 252 | + <failsOnError>true</failsOnError> |
| 253 | + <encoding>UTF-8</encoding> |
| 254 | + <consoleOutput>false</consoleOutput> |
| 255 | + <linkXRef>false</linkXRef> |
| 256 | + <includes>**\/*.java</includes> |
| 257 | + <includeResources>false</includeResources> |
| 258 | + </configuration> |
| 259 | + <version>${maven.checkstyle.plugin.version}</version> |
| 260 | + <executions> |
| 261 | + <execution> |
| 262 | + <id>validate</id> |
| 263 | + <phase>validate</phase> |
| 264 | + <goals> |
| 265 | + <goal>check</goal> |
| 266 | + </goals> |
| 267 | + </execution> |
| 268 | + </executions> |
| 269 | + </plugin> |
| 270 | + </plugins> |
| 271 | + </pluginManagement> |
237 | 272 | </build> |
238 | | - <properties> |
239 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
240 | | - <project.build.withDependencies>jar-with-dependencies</project.build.withDependencies> |
241 | | - </properties> |
| 273 | + |
242 | 274 | </project> |
0 commit comments