Debian Codegraph @

poms/cobertura-parent/pom.xml

raw
1 <?xml version='1.0' encoding='UTF-8'?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4
5 <!--
6 ################################################
7 # Section 1: Project information
8 ################################################
9 -->
10 <parent>
11 <groupId>org.sonatype.oss</groupId>
12 <artifactId>oss-parent</artifactId>
13 <version>7</version>
14 <relativePath />
15 </parent>
16
17 <groupId>net.sourceforge.cobertura.poms</groupId>
18 <artifactId>cobertura-parent</artifactId>
19 <version>2.1.1</version>
20 <packaging>pom</packaging>
21 <name>${project.artifactId}</name>
22 <url>${url.prefix}/${path.in.reactor}</url>
23 <inceptionYear>2013</inceptionYear>
24 <description>Cobertura checks and reports on test coverage in your code.</description>
25
26 <organization>
27 <name>Cobertura</name>
28 <url>https://github.com/cobertura/cobertura</url>
29 </organization>
30
31 <prerequisites>
32 <maven>3.0.5</maven>
33 </prerequisites>
34
35 <licenses>
36 <license>
37 <name>The Apache Software License, Version 2.0</name>
38 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
39 <distribution>repo</distribution>
40 </license>
41 </licenses>
42
43 <developers>
44 <developer>
45 <id>schristou88</id>
46 <name>Steven Christou</name>
47 <email>[email protected]</email>
48 <roles>
49 <role>Developer</role>
50 </roles>
51 <timezone>+6</timezone>
52 </developer>
53 <developer>
54 <id>lj</id>
55 <name>Lennart Jörelid</name>
56 <email>[email protected]</email>
57 <roles>
58 <role>Developer</role>
59 </roles>
60 <timezone>+1</timezone>
61 </developer>
62 </developers>
63
64 <properties>
65 <!-- Build-controlling properties -->
66 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
67 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
68 <build.number />
69 <artifact.distribution.directory>${project.build.outputDirectory}</artifact.distribution.directory>
70 <check.plugins.phase>package</check.plugins.phase>
71 <jdk.version>1.6</jdk.version>
72
73 <!-- Version number properties -->
74 <maven.version>3.0.4</maven.version>
75 <openjpa.version>2.3.0</openjpa.version>
76 <activemq.version>5.9.0</activemq.version>
77 <maven.release.plugin.version>2.5.1</maven.release.plugin.version>
78 <aspectj.runtime.version>1.7.4</aspectj.runtime.version>
79 <aspectj-maven-plugin.version>1.5</aspectj-maven-plugin.version>
80 <osgiVersion>4.3.1</osgiVersion>
81 <scalaplugin.version>2.15.2</scalaplugin.version>
82 <slf4j.version>1.7.5</slf4j.version>
83 <maven-project-info-reports-plugin.version>2.7</maven-project-info-reports-plugin.version>
84 <dependency.plugin.version>2.8</dependency.plugin.version>
85 <asm.version>4.2</asm.version>
86
87 <!-- Code style properties -->
88 <skip.verify.code>false</skip.verify.code>
89
90 <!-- Enforcer configuration parameters -->
91 <enforcer.includedGroupIdPatterns>^net\\.sourceforge\\.cobertura\\..*</enforcer.includedGroupIdPatterns>
92 <enforcer.excludedGroupIdPatterns>^net\\.sourceforge\\.cobertura\\..*\\.generated\\..*
93 </enforcer.excludedGroupIdPatterns>
94
95 <!-- Checkstyle configuration parameters. -->
96 <checkstyle.plugin.version>2.11</checkstyle.plugin.version>
97 <checkstyle.config.location>codestyle/cobertura/checkstyle.xml</checkstyle.config.location>
98 <checkstyle.suppressions.location>codestyle/cobertura/checkstyle-suppressions.xml
99 </checkstyle.suppressions.location>
100 <checkstyle.violationSeverity>error</checkstyle.violationSeverity>
101
102 <!-- PMD configuration parameters. -->
103 <pmd.plugin.version>3.0.1</pmd.plugin.version>
104 <pmd.ruleset>/codestyle/cobertura/pmd-rules.xml</pmd.ruleset>
105
106 <!-- Findbugs configuration parameters. -->
107 <findbugs.plugin.version>2.5.2</findbugs.plugin.version>
108 <findbugs.only.analyze>net.sourceforge.cobertura.*</findbugs.only.analyze>
109 <findbugs.includeFilterFile>codestyle/cobertura/findbugs.xml</findbugs.includeFilterFile>
110 <findbugs.excludeFilterFile>codestyle/cobertura/findbugs-excludes.xml</findbugs.excludeFilterFile>
111
112 <!-- Surefire configuration parameters. -->
113 <surefire.argLine>-Dfile.encoding=UTF-8 -Xmx1024m -XX:MaxPermSize=512m</surefire.argLine>
114
115 <!-- License plugin configuration parameters. -->
116 <license.id>apache_v2</license.id>
117 <license.licenseResolver>classpath://codestyle/license</license.licenseResolver>
118
119 <!-- Define code-breaking constants -->
120 <breakOnFailure.checkstyle>true</breakOnFailure.checkstyle>
121 <breakOnFailure.pmd>true</breakOnFailure.pmd>
122 <breakOnFailure.enforcer>true</breakOnFailure.enforcer>
123 <breakOnFailure.license>true</breakOnFailure.license>
124
125 <!--
126 Define the URL prefixes for Site Deployment and DistributionManagement.
127 These can be overridden in sub-reactors to tailor releases to other locations.
128 -->
129 <path.in.reactor>poms/cobertura-parent</path.in.reactor>
130 <reactor.name>cobertura</reactor.name>
131 <scm.host>github.com</scm.host>
132 <reactor.url.remote.prefix>http://${scm.host}/${reactor.name}</reactor.url.remote.prefix>
133 <site.url.prefix>scp://www-data@angmar/var/www/${reactor.name}</site.url.prefix>
134 <site.staging.localDirectory>/tmp/${reactor.name}</site.staging.localDirectory>
135 <url.prefix>${reactor.url.remote.prefix}/${reactor.name}/${project.version}</url.prefix>
136 <distro.url.prefix>${site.url.prefix}/${reactor.name}/${project.version}</distro.url.prefix>
137 <scm.conn>scm:git:git://${scm.host}/${reactor.name}/${reactor.name}</scm.conn>
138 <scm.devConnection>scm:git:git@${scm.host}:${reactor.name}/${reactor.name}.git</scm.devConnection>
139 <nazgul-tools.version>2.0.9</nazgul-tools.version>
140 <nazgul-core.version>1.6.0</nazgul-core.version>
141 </properties>
142
143 <!--
144 ################################################
145 # Section 2: Dependency (management) settings
146 ################################################
147 -->
148 <dependencyManagement>
149 <dependencies>
150 <!--
151 Logging dependencies.
152 -->
153 <dependency>
154 <groupId>org.slf4j</groupId>
155 <artifactId>slf4j-api</artifactId>
156 <version>${slf4j.version}</version>
157 </dependency>
158 <dependency>
159 <groupId>ch.qos.logback</groupId>
160 <artifactId>logback-classic</artifactId>
161 <version>1.0.13</version>
162 </dependency>
163
164 <!--
165 ASM dependencies.
166 -->
167 <dependency>
168 <groupId>org.ow2.asm</groupId>
169 <artifactId>asm</artifactId>
170 <version>${asm.version}</version>
171 </dependency>
172 <dependency>
173 <groupId>org.ow2.asm</groupId>
174 <artifactId>asm-tree</artifactId>
175 <version>${asm.version}</version>
176 </dependency>
177 <dependency>
178 <groupId>org.ow2.asm</groupId>
179 <artifactId>asm-commons</artifactId>
180 <version>${asm.version}</version>
181 </dependency>
182 <dependency>
183 <groupId>org.ow2.asm</groupId>
184 <artifactId>asm-util</artifactId>
185 <version>${asm.version}</version>
186 </dependency>
187 <dependency>
188 <groupId>org.ow2.asm</groupId>
189 <artifactId>asm-analysis</artifactId>
190 <version>${asm.version}</version>
191 </dependency>
192
193 <!--
194 Persistence and JPA jars
195 -->
196 <dependency>
197 <groupId>org.apache.geronimo.specs</groupId>
198 <artifactId>geronimo-jpa_2.0_spec</artifactId>
199 <version>1.1</version>
200 <scope>provided</scope>
201 </dependency>
202 <dependency>
203 <groupId>org.apache.openjpa</groupId>
204 <artifactId>openjpa</artifactId>
205 <version>${openjpa.version}</version>
206 <scope>test</scope>
207 </dependency>
208 <dependency>
209 <groupId>se.jguru.nazgul.core.xmlbinding.spi.jaxb</groupId>
210 <artifactId>nazgul-core-xmlbinding-spi-jaxb</artifactId>
211 <version>${nazgul-core.version}</version>
212 </dependency>
213
214 <!--
215 AOP dependencies.
216 -->
217 <dependency>
218 <groupId>org.aspectj</groupId>
219 <artifactId>aspectjrt</artifactId>
220 <version>${aspectj.runtime.version}</version>
221 </dependency>
222 <dependency>
223 <groupId>org.aspectj</groupId>
224 <artifactId>aspectjtools</artifactId>
225 <version>${aspectj.runtime.version}</version>
226 </dependency>
227
228 <!--
229 Messaging dependencies
230 -->
231 <dependency>
232 <groupId>org.apache.activemq</groupId>
233 <artifactId>activemq-osgi</artifactId>
234 <version>${activemq.version}</version>
235 </dependency>
236 <dependency>
237 <groupId>org.apache.activemq</groupId>
238 <artifactId>activemq-camel</artifactId>
239 <version>${activemq.version}</version>
240 </dependency>
241 <dependency>
242 <groupId>org.apache.activemq</groupId>
243 <artifactId>activemq-all</artifactId>
244 <version>${activemq.version}</version>
245 </dependency>
246 <dependency>
247 <groupId>org.apache.activemq</groupId>
248 <artifactId>activemq-pool</artifactId>
249 <version>${activemq.version}</version>
250 </dependency>
251 <dependency>
252 <groupId>javax.jms</groupId>
253 <artifactId>jms</artifactId>
254 <version>1.1</version>
255 </dependency>
256
257 <!--
258 OSGi dependencies
259 -->
260 <dependency>
261 <groupId>org.osgi</groupId>
262 <artifactId>org.osgi.core</artifactId>
263 <version>${osgiVersion}</version>
264 </dependency>
265 <dependency>
266 <groupId>org.osgi</groupId>
267 <artifactId>org.osgi.compendium</artifactId>
268 <version>${osgiVersion}</version>
269 </dependency>
270
271 <!--
272 Ambiguous dependencies.
273 -->
274 <dependency>
275 <groupId>org.apache.commons</groupId>
276 <artifactId>commons-lang3</artifactId>
277 <version>3.1</version>
278 </dependency>
279 <dependency>
280 <groupId>joda-time</groupId>
281 <artifactId>joda-time</artifactId>
282 <version>2.3</version>
283 </dependency>
284
285 <!--
286 Test framework dependencies
287 -->
288 <dependency>
289 <groupId>junit</groupId>
290 <artifactId>junit</artifactId>
291 <scope>test</scope>
292 <version>4.11</version>
293 </dependency>
294 <dependency>
295 <groupId>org.dbunit</groupId>
296 <artifactId>dbunit</artifactId>
297 <version>2.4.9</version>
298 <scope>test</scope>
299 </dependency>
300 <dependency>
301 <groupId>org.mockito</groupId>
302 <artifactId>mockito-all</artifactId>
303 <version>1.9.5</version>
304 <scope>test</scope>
305 </dependency>
306 <dependency>
307 <groupId>se.jguru.nazgul.test.xmlbinding</groupId>
308 <artifactId>nazgul-core-xmlbinding-test</artifactId>
309 <version>${nazgul-core.version}</version>
310 <scope>test</scope>
311 </dependency>
312
313 <!--
314 JEE dependencies
315 -->
316 <dependency>
317 <groupId>javax.servlet</groupId>
318 <artifactId>servlet-api</artifactId>
319 <version>2.5</version>
320 <scope>provided</scope>
321 </dependency>
322 <dependency>
323 <groupId>javax.transaction</groupId>
324 <artifactId>transaction-api</artifactId>
325 <version>1.1-rev-1</version>
326 <scope>provided</scope>
327 </dependency>
328 <dependency>
329 <groupId>javax.xml.bind</groupId>
330 <artifactId>jaxb-api</artifactId>
331 <version>2.2.11</version>
332 </dependency>
333
334 <!--
335 Algorithm dependencies
336 -->
337 <dependency>
338 <groupId>se.jguru.nazgul.core.algorithms.api</groupId>
339 <artifactId>nazgul-core-algorithms-api</artifactId>
340 <version>${nazgul-core.version}</version>
341 </dependency>
342
343 <!--
344 Adapter dependencies
345 -->
346 <dependency>
347 <groupId>org.apache.axis2</groupId>
348 <artifactId>axis2-kernel</artifactId>
349 <version>1.6.2</version>
350 </dependency>
351 <dependency>
352 <groupId>commons-pool</groupId>
353 <artifactId>commons-pool</artifactId>
354 <version>1.6</version>
355 </dependency>
356 <dependency>
357 <groupId>cglib</groupId>
358 <artifactId>cglib-nodep</artifactId>
359 <version>3.0</version>
360 </dependency>
361
362 </dependencies>
363 </dependencyManagement>
364
365 <!--
366 ################################################
367 # Section 3: Build settings
368 ################################################
369 -->
370 <build>
371 <pluginManagement>
372 <plugins>
373
374 <!--
375 Provides Plantuml integration into site deployments.
376
377 Why: Convert Plantuml documents to png images.
378 Used: Site lifecycle, mvn site.
379 -->
380 <plugin>
381 <groupId>com.github.jeluard</groupId>
382 <artifactId>plantuml-maven-plugin</artifactId>
383 <version>7954</version>
384 <configuration>
385 <sourceFiles>
386 <directory>${basedir}</directory>
387 <includes>
388 <include>src/site/**/*.puml</include>
389 </includes>
390 </sourceFiles>
391 <outputDirectory>${project.build.directory}/site/images/plantuml</outputDirectory>
392 </configuration>
393 <executions>
394 <execution>
395 <id>generate-plantuml-diagrams</id>
396 <goals>
397 <goal>generate</goal>
398 </goals>
399 <phase>pre-site</phase>
400 </execution>
401 </executions>
402 <dependencies>
403 <dependency>
404 <groupId>net.sourceforge.plantuml</groupId>
405 <artifactId>plantuml</artifactId>
406 <version>7985</version>
407 </dependency>
408 </dependencies>
409 </plugin>
410
411 <!--
412 Use the latest maven-clean-plugin.
413
414 Why: Override the version in Maven's super pom.xml.
415 Used: Clean lifecycle
416 -->
417 <plugin>
418 <artifactId>maven-clean-plugin</artifactId>
419 <version>2.5</version>
420 <configuration>
421 <excludeDefaultDirectories>true</excludeDefaultDirectories>
422 <filesets>
423 <fileset>
424 <directory>${project.build.directory}</directory>
425 <excludes>
426 <exclude>generated-resources/eclipse/**</exclude>
427 </excludes>
428 </fileset>
429 </filesets>
430 </configuration>
431 </plugin>
432
433 <!--
434 Configure/define a lightweight JPA provider.
435
436 Why: Use in production or unit tests.
437 Used: Standard lifecycle
438 -->
439 <plugin>
440 <groupId>org.apache.openjpa</groupId>
441 <artifactId>openjpa-maven-plugin</artifactId>
442 <version>${openjpa.version}</version>
443 <configuration>
444 <includes>no/classes/included/automatically/*.class</includes>
445 <addDefaultConstructor>true</addDefaultConstructor>
446 <enforcePropertyRestrictions>true</enforcePropertyRestrictions>
447 <schemaFile>${project.build.directory}/${project.artifactId}-schema.xml</schemaFile>
448 <sqlFile>${project.build.directory}/${project.artifactId}-database.sql</sqlFile>
449 </configuration>
450
451 <!--
452 These Executions should not be enabled in this parent pom.
453 Instead, they are left as examples of copy/paste for when
454 this definition should be used within poms in subprojects.
455
456 // Lennart Jorelid, 2010-09-15
457 -->
458 <!-- executions>
459 <execution>
460 <id>enhance-classes</id>
461 <phase>process-classes</phase>
462 <goals>
463 <goal>enhance</goal>
464 </goals>
465 </execution>
466 <execution>
467 <id>enhance-test-classes</id>
468 <phase>process-test-classes</phase>
469 <goals>
470 <goal>test-enhance</goal>
471 </goals>
472 </execution>
473 <execution>
474 <id>build-schema-and-sql-files</id>
475 <phase>process-classes</phase>
476 <goals>
477 <goal>sql</goal>
478 <goal>schema</goal>
479 </goals>
480 </execution>
481 </executions -->
482
483 <dependencies>
484 <dependency>
485 <groupId>org.apache.openjpa</groupId>
486 <artifactId>openjpa</artifactId>
487 <version>${openjpa.version}</version>
488 </dependency>
489 </dependencies>
490 </plugin>
491
492 <!--
493 This is not a proper maven plugin configuration, but instead Eclipse metadata for M2E.
494
495 Why: Eclipse metadata for M2E lifecycle mappings
496 Used: Only by Eclipse; neither used by Maven nor any other IDE.
497 -->
498 <plugin>
499 <groupId>org.eclipse.m2e</groupId>
500 <artifactId>lifecycle-mapping</artifactId>
501 <version>1.0.0</version>
502 <configuration>
503 <lifecycleMappingMetadata>
504 <pluginExecutions>
505
506 <pluginExecution>
507 <pluginExecutionFilter>
508 <groupId>org.codehaus.mojo</groupId>
509 <artifactId>license-maven-plugin</artifactId>
510 <goals>
511 <goal>check-file-header</goal>
512 <goal>update-project-license</goal>
513 </goals>
514 <versionRange>[1.4,2)</versionRange>
515 </pluginExecutionFilter>
516 <action>
517 <execute>
518 <runOnConfiguration>true</runOnConfiguration>
519 <runOnIncremental>false</runOnIncremental>
520 </execute>
521 </action>
522 </pluginExecution>
523
524 <pluginExecution>
525 <pluginExecutionFilter>
526 <groupId>org.apache.maven.plugins</groupId>
527 <artifactId>maven-ear-plugin</artifactId>
528 <goals>
529 <goal>ear</goal>
530 <goal>generate-application-xml</goal>
531 </goals>
532 <versionRange>2.5</versionRange>
533 </pluginExecutionFilter>
534 <action>
535 <ignore />
536 </action>
537 </pluginExecution>
538
539 <pluginExecution>
540 <pluginExecutionFilter>
541 <groupId>org.codehaus.mojo</groupId>
542 <artifactId>buildnumber-maven-plugin</artifactId>
543 <goals>
544 <goal>create-timestamp</goal>
545 </goals>
546 <versionRange>[0.0,)</versionRange>
547 </pluginExecutionFilter>
548 <action>
549 <ignore />
550 </action>
551 </pluginExecution>
552
553 <pluginExecution>
554 <pluginExecutionFilter>
555 <groupId>org.codehaus.mojo</groupId>
556 <artifactId>build-helper-maven-plugin</artifactId>
557 <versionRange>[1.0,)</versionRange>
558 <goals>
559 <goal>add-source</goal>
560 <goal>add-test-source</goal>
561 <goal>add-resource</goal>
562 <goal>add-test-resource</goal>
563 <goal>maven-version</goal>
564 <goal>parse-version</goal>
565 </goals>
566 </pluginExecutionFilter>
567 <action>
568 <execute>
569 <runOnConfiguration>true</runOnConfiguration>
570 <runOnIncremental>true</runOnIncremental>
571 </execute>
572 </action>
573 </pluginExecution>
574
575 <pluginExecution>
576 <pluginExecutionFilter>
577 <groupId>org.apache.maven.plugins</groupId>
578 <artifactId>maven-dependency-plugin</artifactId>
579 <goals>
580 <goal>list</goal>
581 <goal>copy</goal>
582 <goal>copy-dependencies</goal>
583 <goal>unpack</goal>
584 </goals>
585 <versionRange>[0.0,)</versionRange>
586 </pluginExecutionFilter>
587 <action>
588 <ignore />
589 </action>
590 </pluginExecution>
591
592 <pluginExecution>
593 <pluginExecutionFilter>
594 <groupId>org.zeroturnaround</groupId>
595 <artifactId>jrebel-maven-plugin</artifactId>
596 <goals>
597 <goal>generate</goal>
598 </goals>
599 <versionRange>[0.0,)</versionRange>
600 </pluginExecutionFilter>
601 <action>
602 <ignore />
603 </action>
604 </pluginExecution>
605
606 <pluginExecution>
607 <pluginExecutionFilter>
608 <groupId>org.codehaus.mojo</groupId>
609 <artifactId>gwt-maven-plugin</artifactId>
610 <goals>
611 <goal>resources</goal>
612 <goal>compile</goal>
613 <goal>i18n</goal>
614 <goal>generateAsync</goal>
615 </goals>
616 <versionRange>[0.0,)</versionRange>
617 </pluginExecutionFilter>
618 <action>
619 <ignore />
620 </action>
621 </pluginExecution>
622
623 <pluginExecution>
624 <pluginExecutionFilter>
625 <groupId>org.codehaus.mojo</groupId>
626 <artifactId>aspectj-maven-plugin</artifactId>
627 <versionRange>[1.0,)</versionRange>
628 <goals>
629 <goal>test-compile</goal>
630 <goal>compile</goal>
631 </goals>
632 </pluginExecutionFilter>
633 <action>
634 <execute />
635 </action>
636 </pluginExecution>
637
638 <pluginExecution>
639 <pluginExecutionFilter>
640 <groupId>org.apache.maven.plugins</groupId>
641 <artifactId>maven-war-plugin</artifactId>
642 <versionRange>[2.3,)</versionRange>
643 <goals>
644 <goal>exploded</goal>
645 </goals>
646 </pluginExecutionFilter>
647 <action>
648 <execute />
649 </action>
650 </pluginExecution>
651
652 <pluginExecution>
653 <pluginExecutionFilter>
654 <groupId>org.apache.maven.plugins</groupId>
655 <artifactId>maven-enforcer-plugin</artifactId>
656 <goals>
657 <goal>enforce</goal>
658 </goals>
659 <versionRange>[1.0.0,)</versionRange>
660 </pluginExecutionFilter>
661 <action>
662 <ignore />
663 </action>
664 </pluginExecution>
665
666 <pluginExecution>
667 <pluginExecutionFilter>
668 <groupId>org.apache.servicemix.tooling</groupId>
669 <artifactId>depends-maven-plugin</artifactId>
670 <goals>
671 <goal>generate-depends-file</goal>
672 </goals>
673 <versionRange>[1.2,)</versionRange>
674 </pluginExecutionFilter>
675 <action>
676 <ignore />
677 </action>
678 </pluginExecution>
679
680 <pluginExecution>
681 <pluginExecutionFilter>
682 <groupId>org.apache.openjpa</groupId>
683 <artifactId>openjpa-maven-plugin</artifactId>
684 <goals>
685 <goal>enhance</goal>
686 <goal>test-enhance</goal>
687 </goals>
688 <versionRange>[1.2,)</versionRange>
689 </pluginExecutionFilter>
690 <action>
691 <ignore />
692 </action>
693 </pluginExecution>
694
695 </pluginExecutions>
696 </lifecycleMappingMetadata>
697 </configuration>
698 </plugin>
699
700 <!--
701 Define OSGi bundle plugin version.
702
703 Why: Plugin used to generate OSGi Manifest headers in JARs.
704 Used: As included in [sub]projects.
705 -->
706 <plugin>
707 <groupId>org.apache.felix</groupId>
708 <artifactId>maven-bundle-plugin</artifactId>
709 <version>2.4.0</version>
710 <executions>
711 <execution>
712 <id>bundle-manifest</id>
713 <phase>process-classes</phase>
714 <goals>
715 <goal>manifest</goal>
716 </goals>
717 </execution>
718 </executions>
719 <configuration>
720 <supportedProjectTypes>
721 <supportedProjectType>ejb</supportedProjectType>
722 <supportedProjectType>jar</supportedProjectType>
723 <supportedProjectType>bundle</supportedProjectType>
724 <supportedProjectType>war</supportedProjectType>
725 <supportedProjectType>ear</supportedProjectType>
726 </supportedProjectTypes>
727 <instructions>
728 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
729 </instructions>
730 </configuration>
731 </plugin>
732
733 <!--
734 Define JAXB2 plugin version.
735
736 Why: Plugin used to handle Java <-> XML <-> XSD production [in Model projects].
737 Used: As included in entity model [sub]projects.
738 -->
739 <plugin>
740 <groupId>org.codehaus.mojo</groupId>
741 <artifactId>jaxb2-maven-plugin</artifactId>
742 <version>1.5</version>
743 </plugin>
744
745 <!--
746 Use same release tags for all projects within a release.
747
748 Why: Include some DVCS SCM providers, and define some default values for releases.
749 Used: Standard lifecycle, release process.
750 -->
751 <plugin>
752 <groupId>org.apache.maven.plugins</groupId>
753 <artifactId>maven-release-plugin</artifactId>
754 <version>${maven.release.plugin.version}</version>
755 <configuration combine.self="override">
756 <goals>deploy</goals>
757 <localCheckout>true</localCheckout>
758 <mavenExecutorId>forked-path</mavenExecutorId>
759 <tagNameFormat>${reactor.name}-@{project.version}</tagNameFormat>
760 </configuration>
761 <dependencies>
762 <dependency>
763 <groupId>org.apache.maven.scm</groupId>
764 <artifactId>maven-scm-provider-hg</artifactId>
765 <version>1.9.2</version>
766 </dependency>
767 </dependencies>
768 </plugin>
769
770 <!--
771 Configures the WAR plugin to properly use the generated OSGi-compliant manifest.
772
773 Why: Assigns some manifest data within the WARs in WAR projects. Reads bundle-generated manifest.
774 Used: Standard lifecycle, mvn package.
775 -->
776 <plugin>
777 <groupId>org.apache.maven.plugins</groupId>
778 <artifactId>maven-war-plugin</artifactId>
779 <version>2.4</version>
780 <configuration>
781 <archive>
782 <manifest>
783 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
784 </manifest>
785 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
786 <manifestEntries>
787 <name>${project.name}</name>
788 <description>${project.description}</description>
789 <groupId>${project.groupId}</groupId>
790 <artifactId>${project.artifactId}</artifactId>
791 </manifestEntries>
792 </archive>
793 </configuration>
794 </plugin>
795
796 <!--
797 Configure EAR plugin, directs all normal dependencies in the /lib directory.
798
799 Why: Assigns some manifest data within JARs.
800 Reads bundle-generated manifest. Uses JEE 6 style EARs.
801 Used: Standard lifecycle, mvn package.
802 -->
803 <plugin>
804 <groupId>org.apache.maven.plugins</groupId>
805 <artifactId>maven-ear-plugin</artifactId>
806 <version>2.8</version>
807 <executions>
808 <execution>
809 <id>packageEar</id>
810 <goals>
811 <goal>generate-application-xml</goal>
812 <goal>ear</goal>
813 </goals>
814 <configuration>
815 <defaultJavaBundleDir>lib</defaultJavaBundleDir>
816 <defaultLibBundleDir>lib</defaultLibBundleDir>
817 <version>6</version>
818 <archive>
819 <manifest>
820 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
821 </manifest>
822 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
823 <manifestEntries>
824 <name>${project.name}</name>
825 <description>${project.description}</description>
826 <groupId>${project.groupId}</groupId>
827 <artifactId>${project.artifactId}</artifactId>
828 </manifestEntries>
829 </archive>
830 </configuration>
831 </execution>
832 </executions>
833 </plugin>
834
835 <!--
836 Configure EJB plugin, uses EJB version 3.1 by default.
837
838 Why: Assigns some manifest data within JARs. Reads bundle-generated manifest.
839 Used: Standard lifecycle, mvn package.
840 -->
841 <plugin>
842 <groupId>org.apache.maven.plugins</groupId>
843 <artifactId>maven-ejb-plugin</artifactId>
844 <version>2.3</version>
845 <configuration>
846 <generateClient>false</generateClient>
847 <ejbVersion>3.1</ejbVersion>
848 <detail>true</detail>
849 <archive>
850 <manifest>
851 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
852 </manifest>
853 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
854 <manifestEntries>
855 <description>${project.description}</description>
856 <groupId>${project.groupId}</groupId>
857 <artifactId>${project.artifactId}</artifactId>
858 </manifestEntries>
859 </archive>
860 </configuration>
861 </plugin>
862
863 <!--
864 Configure JAR plugin.
865
866 Why: Assigns some manifest data within JARs. Reads bundle-generated manifest.
867 Used: Standard lifecycle, mvn package.
868 -->
869 <plugin>
870 <groupId>org.apache.maven.plugins</groupId>
871 <artifactId>maven-jar-plugin</artifactId>
872 <version>2.4</version>
873 <configuration>
874 <archive>
875 <manifest>
876 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
877 </manifest>
878 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
879 <manifestEntries>
880 <name>${project.name}</name>
881 <description>${project.description}</description>
882 <groupId>${project.groupId}</groupId>
883 <artifactId>${project.artifactId}</artifactId>
884 </manifestEntries>
885 </archive>
886 </configuration>
887 </plugin>
888
889 <!--
890 Configure Compiler plugin.
891
892 Why: Ensures source and target Java versions, as well as source encoding (UTF-8).
893 Used: Standard lifecycle, mvn compile.
894 -->
895 <plugin>
896 <groupId>org.apache.maven.plugins</groupId>
897 <artifactId>maven-compiler-plugin</artifactId>
898 <version>3.1</version>
899 <configuration>
900 <source>${jdk.version}</source>
901 <target>${jdk.version}</target>
902 <showWarnings>true</showWarnings>
903 <showDeprecation>true</showDeprecation>
904 <encoding>${project.build.sourceEncoding}</encoding>
905 </configuration>
906 </plugin>
907
908 <!--
909 Define deploy plugin version.
910
911 Why: Version definition only.
912 Used: Standard lifecycle, mvn deploy
913 -->
914 <plugin>
915 <groupId>org.apache.maven.plugins</groupId>
916 <artifactId>maven-deploy-plugin</artifactId>
917 <version>2.8.1</version>
918 </plugin>
919
920 <!--
921 Define project-info-reports plugin version, and reduce the time taken to run it.
922
923 Why: Version definition only.
924 Used: Standard lifecycle, mvn site.
925 -->
926 <plugin>
927 <groupId>org.apache.maven.plugins</groupId>
928 <artifactId>maven-project-info-reports-plugin</artifactId>
929 <version>${maven-project-info-reports-plugin.version}</version>
930 <configuration>
931 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
932 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
933 </configuration>
934 </plugin>
935
936 <!--
937 Configures the maven resources plugin.
938
939 Why: Ensures that all resources are handled using the standard source encoding.
940 Used: Standard lifecycle, mvn process-resources.
941 -->
942 <plugin>
943 <groupId>org.apache.maven.plugins</groupId>
944 <artifactId>maven-resources-plugin</artifactId>
945 <version>2.6</version>
946 <configuration>
947 <encoding>${project.build.sourceEncoding}</encoding>
948 <escapeString>\</escapeString>
949 </configuration>
950 </plugin>
951
952 <!--
953 Analyzes imported dependencies.
954
955 Why: Provide warnings when imported dependencies are not used within the project.
956 Used: Standard lifecycle.
957 -->
958 <plugin>
959 <groupId>org.apache.maven.plugins</groupId>
960 <artifactId>maven-dependency-plugin</artifactId>
961 <version>${dependency.plugin.version}</version>
962 </plugin>
963
964 <!--
965 Configures the maven surefire plugin, which runs the unit tests invoking JUnit.
966 Surefire's argument line is overridable in subprojects using the property "surefire.argLine".
967
968 Why: Supply required encoding (UTF-8), as well as memory sizing definitions.
969 Used: Standard lifecycle, mvn test.
970 -->
971 <plugin>
972 <groupId>org.apache.maven.plugins</groupId>
973 <artifactId>maven-surefire-plugin</artifactId>
974 <version>2.16</version>
975 <configuration>
976 <argLine>${surefire.argLine}</argLine>
977 <trimStackTrace>false</trimStackTrace>
978 </configuration>
979 </plugin>
980
981 <!--
982 Define source plugin version, which generates source:jars.
983
984 Why: Version definition only.
985 Used: Standard lifecyle, mvn source:jar.
986 -->
987 <plugin>
988 <groupId>org.apache.maven.plugins</groupId>
989 <artifactId>maven-source-plugin</artifactId>
990 <version>2.2.1</version>
991 </plugin>
992
993 <!--
994 Configures the site plugin to properly cope with link relativization, staging and deployment
995 in a controlled and extensible manner.
996
997 Why: Generates site documentation. Adds wagon remote deployment capability.
998 Used: Standard lifecycle, mvn site, mvn site:stage.
999 -->
1000 <plugin>
1001 <groupId>org.apache.maven.plugins</groupId>
1002 <artifactId>maven-site-plugin</artifactId>
1003 <version>3.3</version>
1004 <executions>
1005 <execution>
1006 <id>attach-descriptor</id>
1007 <goals>
1008 <goal>attach-descriptor</goal>
1009 </goals>
1010 </execution>
1011 </executions>
1012 <configuration>
1013 <topSiteURL>${site.url.prefix}/${reactor.name}</topSiteURL>
1014 <stagingSiteURL>${site.url.prefix}/${reactor.name}</stagingSiteURL>
1015 <stagingDirectory>${site.staging.localDirectory}</stagingDirectory>
1016 <generateSitemap>true</generateSitemap>
1017 <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
1018 <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
1019 </configuration>
1020 <dependencies>
1021 <dependency>
1022 <groupId>org.apache.maven.wagon</groupId>
1023 <artifactId>wagon-ssh</artifactId>
1024 <version>2.2</version>
1025 </dependency>
1026 <dependency>
1027 <groupId>org.apache.maven.wagon</groupId>
1028 <artifactId>wagon-file</artifactId>
1029 <version>2.4</version>
1030 </dependency>
1031 <dependency>
1032 <groupId>org.apache.maven.doxia</groupId>
1033 <artifactId>doxia-module-confluence</artifactId>
1034 <version>1.5</version>
1035 </dependency>
1036 <dependency>
1037 <groupId>org.apache.maven.doxia</groupId>
1038 <artifactId>doxia-module-markdown</artifactId>
1039 <version>1.5</version>
1040 </dependency>
1041 <dependency>
1042 <groupId>org.apache.maven.doxia</groupId>
1043 <artifactId>doxia-module-xhtml</artifactId>
1044 <version>1.5</version>
1045 </dependency>
1046 <!--
1047 Reflow skin and dependencies.
1048 -->
1049 <!-- dependency>
1050 <groupId>lt.velykis.maven.skins</groupId>
1051 <artifactId>reflow-velocity-tools</artifactId>
1052 <version>1.0.0</version>
1053 </dependency>
1054 <dependency>
1055 <groupId>org.apache.velocity</groupId>
1056 <artifactId>velocity</artifactId>
1057 <version>1.7</version>
1058 </dependency -->
1059 </dependencies>
1060 </plugin>
1061
1062 <!--
1063 Provides PMD code-style checking integration into the project.
1064
1065 Why: Validates the codestyle.
1066 Used: Standard lifecycle, mvn package.
1067 -->
1068 <plugin>
1069 <groupId>org.apache.maven.plugins</groupId>
1070 <artifactId>maven-pmd-plugin</artifactId>
1071 <version>${pmd.plugin.version}</version>
1072 <configuration>
1073 <skip>${skip.verify.code}</skip>
1074 <targetJdk>${jdk.version}</targetJdk>
1075 <rulesets>
1076 <ruleset>${pmd.ruleset}</ruleset>
1077 </rulesets>
1078 <printFailingErrors>true</printFailingErrors>
1079 <failOnViolation>${breakOnFailure.pmd}</failOnViolation>
1080 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
1081 </configuration>
1082 <executions>
1083 <execution>
1084 <goals>
1085 <goal>check</goal>
1086 <goal>cpd-check</goal>
1087 </goals>
1088 </execution>
1089 </executions>
1090 <dependencies>
1091 <dependency>
1092 <groupId>se.jguru.nazgul.tools.codestyle</groupId>
1093 <artifactId>nazgul-codestyle</artifactId>
1094 <version>${nazgul-tools.version}</version>
1095 </dependency>
1096 <dependency>
1097 <groupId>net.sourceforge.cobertura.codestyle</groupId>
1098 <artifactId>cobertura-codestyle</artifactId>
1099 <version>2.1.1</version>
1100 </dependency>
1101 <dependency>
1102 <groupId>log4j</groupId>
1103 <artifactId>log4j</artifactId>
1104 <version>1.2.17</version>
1105 </dependency>
1106 </dependencies>
1107 </plugin>
1108
1109 <!--
1110 Enforces the defined code style, as provided within the codestyle project.
1111
1112 Why: Validates the codestyle.
1113 Used: Standard lifecycle, mvn package.
1114 -->
1115 <plugin>
1116 <groupId>org.apache.maven.plugins</groupId>
1117 <artifactId>maven-checkstyle-plugin</artifactId>
1118 <version>${checkstyle.plugin.version}</version>
1119 <configuration>
1120 <skip>${skip.verify.code}</skip>
1121 <configLocation>${checkstyle.config.location}</configLocation>
1122 <suppressionsFile>${checkstyle.suppressions.location}</suppressionsFile>
1123 <failOnViolation>${breakOnFailure.checkstyle}</failOnViolation>
1124 <violationSeverity>${checkstyle.violationSeverity}</violationSeverity>
1125 </configuration>
1126 <executions>
1127 <execution>
1128 <id>verify</id>
1129 <phase>${check.plugins.phase}</phase>
1130 <goals>
1131 <goal>check</goal>
1132 </goals>
1133 </execution>
1134 <execution>
1135 <id>report</id>
1136 <goals>
1137 <goal>checkstyle</goal>
1138 </goals>
1139 </execution>
1140 </executions>
1141 <dependencies>
1142 <dependency>
1143 <groupId>se.jguru.nazgul.tools.codestyle</groupId>
1144 <artifactId>nazgul-codestyle</artifactId>
1145 <version>${nazgul-tools.version}</version>
1146 </dependency>
1147 <dependency>
1148 <groupId>net.sourceforge.cobertura.codestyle</groupId>
1149 <artifactId>cobertura-codestyle</artifactId>
1150 <version>2.1.1</version>
1151 </dependency>
1152 </dependencies>
1153 </plugin>
1154
1155 <!--
1156 Finds bugs in the code, as configured within the codestyle project.
1157
1158 Why: Finds bugs in the local project.
1159 Used: Standard lifecycle, mvn package.
1160 -->
1161 <plugin>
1162 <groupId>org.codehaus.mojo</groupId>
1163 <artifactId>findbugs-maven-plugin</artifactId>
1164 <version>${findbugs.plugin.version}</version>
1165 <configuration>
1166 <skip>${skip.verify.code}</skip>
1167 <threshold>High</threshold>
1168 <effort>Default</effort>
1169 <onlyAnalyze>${findbugs.only.analyze}</onlyAnalyze>
1170 <includeFilterFile>${findbugs.includeFilterFile}</includeFilterFile>
1171 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
1172 <relaxed>false</relaxed>
1173 <findbugsXmlOutput>true</findbugsXmlOutput>
1174 <xmlOutput>true</xmlOutput>
1175 </configuration>
1176 <dependencies>
1177 <dependency>
1178 <groupId>se.jguru.nazgul.tools.codestyle</groupId>
1179 <artifactId>nazgul-codestyle</artifactId>
1180 <version>${nazgul-tools.version}</version>
1181 </dependency>
1182 <dependency>
1183 <groupId>net.sourceforge.cobertura.codestyle</groupId>
1184 <artifactId>cobertura-codestyle</artifactId>
1185 <version>2.1.1</version>
1186 </dependency>
1187 </dependencies>
1188 </plugin>
1189
1190 <!--
1191 The license plugin is quite inflexible about the format for the injected/detected file header
1192 in terms of license structure. Use it as intended, but provide a variable
1193
1194 Why: Ensures that all files contain a license header.
1195 Used: Standard lifecycle, mvn package.
1196 -->
1197 <plugin>
1198 <groupId>org.codehaus.mojo</groupId>
1199 <artifactId>license-maven-plugin</artifactId>
1200 <version>1.5</version>
1201 <configuration>
1202 <failOnMissingHeader>${breakOnFailure.license}</failOnMissingHeader>
1203 <licenseName>${license.id}</licenseName>
1204 <!--
1205 These two configuration parameters are required if we would like to
1206 stash license (template) files in the Cobertura codestyle project.
1207 -->
1208 <!-- licenseResolver>${license.licenseResolver}</licenseResolver -->
1209 <!--
1210 descriptionTemplate>/codestyle/license/${license.id}/
1211 licenseDescriptionTemplate.ftl</descriptionTemplate -->
1212 <canUpdateDescription>true</canUpdateDescription>
1213 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
1214 <licenseFile>${project.build.directory}/LICENSE.TXT</licenseFile>
1215 <roots>
1216 <root>${project.basedir}/src/main</root>
1217 <root>${project.basedir}/src/test</root>
1218 <root>${project.basedir}/src/site</root>
1219 </roots>
1220 </configuration>
1221 <executions>
1222 <execution>
1223 <id>check-file-header</id>
1224 <phase>process-sources</phase>
1225 <goals>
1226 <goal>check-file-header</goal>
1227 </goals>
1228 </execution>
1229 <execution>
1230 <id>add-license</id>
1231 <phase>generate-sources</phase>
1232 <goals>
1233 <goal>update-project-license</goal>
1234 </goals>
1235 </execution>
1236 </executions>
1237 <dependencies>
1238 <dependency>
1239 <groupId>se.jguru.nazgul.tools.codestyle</groupId>
1240 <artifactId>nazgul-codestyle</artifactId>
1241 <version>${nazgul-tools.version}</version>
1242 </dependency>
1243 <dependency>
1244 <groupId>net.sourceforge.cobertura.codestyle</groupId>
1245 <artifactId>cobertura-codestyle</artifactId>
1246 <version>2.1.1</version>
1247 </dependency>
1248 </dependencies>
1249 </plugin>
1250
1251 </plugins>
1252 </pluginManagement>
1253
1254 <plugins>
1255
1256 <!-- Attach a source jar -->
1257 <plugin>
1258 <groupId>org.apache.maven.plugins</groupId>
1259 <artifactId>maven-source-plugin</artifactId>
1260 <executions>
1261 <execution>
1262 <phase>verify</phase>
1263 <id>attach-sources</id>
1264 <goals>
1265 <goal>jar</goal>
1266 </goals>
1267 </execution>
1268 </executions>
1269 </plugin>
1270
1271 <!-- Check codestyle, part 1: Checkstyle -->
1272 <plugin>
1273 <groupId>org.apache.maven.plugins</groupId>
1274 <artifactId>maven-checkstyle-plugin</artifactId>
1275 <executions>
1276 <execution>
1277 <id>verify</id>
1278 <phase>${check.plugins.phase}</phase>
1279 <goals>
1280 <goal>check</goal>
1281 </goals>
1282 </execution>
1283 </executions>
1284 </plugin>
1285
1286 <!-- Check codestyle, part 2: PMD -->
1287 <plugin>
1288 <groupId>org.apache.maven.plugins</groupId>
1289 <artifactId>maven-pmd-plugin</artifactId>
1290 <executions>
1291 <execution>
1292 <goals>
1293 <goal>check</goal>
1294 <goal>cpd-check</goal>
1295 </goals>
1296 </execution>
1297 </executions>
1298 </plugin>
1299
1300 <!-- Check codestyle, part 3: Findbugs -->
1301 <plugin>
1302 <groupId>org.codehaus.mojo</groupId>
1303 <artifactId>findbugs-maven-plugin</artifactId>
1304 <executions>
1305 <execution>
1306 <goals>
1307 <goal>check</goal>
1308 </goals>
1309 </execution>
1310 </executions>
1311 </plugin>
1312
1313 <!-- Fix project license documents -->
1314 <!-- Disabled until http://jira.codehaus.org/browse/MLICENSE-90 has been resolved -->
1315 <!--
1316 <plugin>
1317 <groupId>org.codehaus.mojo</groupId>
1318 <artifactId>license-maven-plugin</artifactId>
1319 <executions>
1320 <execution>
1321 <id>check-file-header</id>
1322 <phase>process-sources</phase>
1323 <goals>
1324 <goal>update-file-header</goal>
1325 <goal>update-project-license</goal>
1326 </goals>
1327 </execution>
1328 </executions>
1329 </plugin>
1330 -->
1331
1332 <!-- Compile the code -->
1333 <plugin>
1334 <groupId>org.apache.maven.plugins</groupId>
1335 <artifactId>maven-compiler-plugin</artifactId>
1336 <configuration>
1337 <source>${jdk.version}</source>
1338 <target>${jdk.version}</target>
1339 <showWarnings>true</showWarnings>
1340 <showDeprecation>true</showDeprecation>
1341 <encoding>${project.build.sourceEncoding}</encoding>
1342 </configuration>
1343 </plugin>
1344
1345 <!-- Generate maven dependencies listing file -->
1346 <plugin>
1347 <groupId>org.apache.servicemix.tooling</groupId>
1348 <artifactId>depends-maven-plugin</artifactId>
1349 <version>1.2</version>
1350 <executions>
1351 <execution>
1352 <id>generate-depends-file</id>
1353 <goals>
1354 <goal>generate-depends-file</goal>
1355 </goals>
1356 </execution>
1357 </executions>
1358 </plugin>
1359
1360 <!-- Analyze dependencies for usage within the project -->
1361 <plugin>
1362 <groupId>org.apache.maven.plugins</groupId>
1363 <artifactId>maven-dependency-plugin</artifactId>
1364 <executions>
1365 <execution>
1366 <id>analyze</id>
1367 <goals>
1368 <goal>analyze-only</goal>
1369 </goals>
1370 <configuration>
1371 <!--
1372 Don't break the build if we have unused dependencies.
1373 Since we cannot exclude the global Aspect libraries from
1374 breaking the build (they should be available as a compile-
1375 scope dependency), we can only provide a warning about
1376 unused dependencies.
1377 -->
1378 <failOnWarning>false</failOnWarning>
1379
1380 <!-- Only deal with compile-scope dependencies -->
1381 <ignoreNonCompile>true</ignoreNonCompile>
1382 </configuration>
1383 </execution>
1384 </executions>
1385 </plugin>
1386
1387 <!-- Produce an OSGi-compliant MANIFEST.MF file. -->
1388 <plugin>
1389 <groupId>org.apache.felix</groupId>
1390 <artifactId>maven-bundle-plugin</artifactId>
1391 <executions>
1392 <execution>
1393 <id>bundle-manifest</id>
1394 <phase>process-classes</phase>
1395 <goals>
1396 <goal>manifest</goal>
1397 </goals>
1398 </execution>
1399 </executions>
1400 </plugin>
1401
1402 <!-- Generate png images from Plantuml source files. -->
1403 <plugin>
1404 <groupId>com.github.jeluard</groupId>
1405 <artifactId>plantuml-maven-plugin</artifactId>
1406 <executions>
1407 <execution>
1408 <id>generate-plantuml-diagrams</id>
1409 <goals>
1410 <goal>generate</goal>
1411 </goals>
1412 <phase>pre-site</phase>
1413 </execution>
1414 </executions>
1415 </plugin>
1416 </plugins>
1417 </build>
1418
1419 <reporting>
1420 <excludeDefaults>true</excludeDefaults>
1421 <outputDirectory>${project.build.directory}/site</outputDirectory>
1422
1423 <plugins>
1424
1425 <!--
1426 Due to problems in the Maven 3 site plugin you must enter the configuration twice,
1427 once for the pluginManagement section and once for site reporting.
1428 -->
1429
1430 <plugin>
1431 <groupId>org.apache.maven.plugins</groupId>
1432 <artifactId>maven-project-info-reports-plugin</artifactId>
1433 <version>${maven-project-info-reports-plugin.version}</version>
1434 <configuration>
1435 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
1436 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
1437 </configuration>
1438 </plugin>
1439
1440 <plugin>
1441 <groupId>org.apache.maven.plugins</groupId>
1442 <artifactId>maven-javadoc-plugin</artifactId>
1443 <version>2.9.1</version>
1444 <configuration>
1445 <stylesheet>java</stylesheet>
1446 </configuration>
1447 </plugin>
1448
1449 <plugin>
1450 <groupId>org.apache.maven.plugins</groupId>
1451 <artifactId>maven-jxr-plugin</artifactId>
1452 <version>2.3</version>
1453 </plugin>
1454
1455 <!--
1456 Due to problems in the Maven 3 site plugin you must enter the configuration twice,
1457 once for the pluginManagement section and once for the site, see
1458 http://jira.codehaus.org/browse/MSITE-516 and http://jira.codehaus.org/browse/MSITE-523
1459 -->
1460 <plugin>
1461 <groupId>org.apache.maven.plugins</groupId>
1462 <artifactId>maven-pmd-plugin</artifactId>
1463 <version>${pmd.plugin.version}</version>
1464 <reportSets>
1465 <reportSet>
1466 <reports>
1467 <report>pmd</report>
1468 <report>cpd</report>
1469 </reports>
1470 </reportSet>
1471 </reportSets>
1472 <configuration>
1473 <rulesets>
1474 <ruleset>${pmd.ruleset}</ruleset>
1475 </rulesets>
1476 <targetJdk>${jdk.version}</targetJdk>
1477 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
1478 </configuration>
1479 </plugin>
1480
1481 <!--
1482 Due to problems in the Maven 3 site plugin you must enter the configuration twice,
1483 once for the pluginManagement section and once for the site, see
1484 http://jira.codehaus.org/browse/MSITE-516 and http://jira.codehaus.org/browse/MSITE-523
1485 -->
1486 <plugin>
1487 <groupId>org.apache.maven.plugins</groupId>
1488 <artifactId>maven-checkstyle-plugin</artifactId>
1489 <version>${checkstyle.plugin.version}</version>
1490 <configuration>
1491 <configLocation>${checkstyle.config.location}</configLocation>
1492 <suppressionsFile>${checkstyle.suppressions.location}</suppressionsFile>
1493 <failOnViolation>${breakOnFailure.checkstyle}</failOnViolation>
1494 <violationSeverity>${checkstyle.violationSeverity}</violationSeverity>
1495 </configuration>
1496 <reportSets>
1497 <reportSet>
1498 <reports>
1499 <report>checkstyle</report>
1500 </reports>
1501 </reportSet>
1502 </reportSets>
1503 </plugin>
1504
1505 <!--
1506 Due to problems in the Maven 3 site plugin you must enter the configuration twice,
1507 once for the pluginManagement section and once for the site, see
1508 http://jira.codehaus.org/browse/MSITE-516 and http://jira.codehaus.org/browse/MSITE-523
1509 -->
1510 <plugin>
1511 <groupId>org.codehaus.mojo</groupId>
1512 <artifactId>findbugs-maven-plugin</artifactId>
1513 <version>${findbugs.plugin.version}</version>
1514 <configuration>
1515 <threshold>High</threshold>
1516 <effort>Default</effort>
1517 <onlyAnalyze>${findbugs.only.analyze}</onlyAnalyze>
1518 <includeFilterFile>${findbugs.includeFilterFile}</includeFilterFile>
1519 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
1520 <relaxed>false</relaxed>
1521 <findbugsXmlOutput>true</findbugsXmlOutput>
1522 <xmlOutput>true</xmlOutput>
1523 </configuration>
1524 <reportSets>
1525 <reportSet>
1526 <reports>
1527 <report>findbugs</report>
1528 </reports>
1529 </reportSet>
1530 </reportSets>
1531 </plugin>
1532
1533 <plugin>
1534 <groupId>org.codehaus.mojo</groupId>
1535 <artifactId>clirr-maven-plugin</artifactId>
1536 <version>2.6</version>
1537 </plugin>
1538
1539 <plugin>
1540 <artifactId>maven-dependency-plugin</artifactId>
1541 <version>${dependency.plugin.version}</version>
1542 <reportSets>
1543 <reportSet>
1544 <reports>
1545 <report>analyze-report</report>
1546 </reports>
1547 </reportSet>
1548 </reportSets>
1549 </plugin>
1550 </plugins>
1551 </reporting>
1552
1553 <!--
1554 ################################################
1555 # Section 4: External systems
1556 ################################################
1557 -->
1558
1559 <!--
1560 Define Maven's Git integration.
1561 -->
1562 <scm>
1563 <connection>${scm.conn}</connection>
1564 <developerConnection>${scm.devConnection}</developerConnection>
1565 <url>${reactor.url.remote.prefix}/${reactor.name}</url>
1566 <tag>cobertura-2.1.1</tag>
1567 </scm>
1568
1569 <!--
1570 Define the issue management system.
1571 -->
1572 <issueManagement>
1573 <system>github</system>
1574 <url>${reactor.url.remote.prefix}/${reactor.name}/issues</url>
1575 </issueManagement>
1576
1577 <!--
1578 Define repository settings for Maven's deploy and release plugins.
1579 To comply with Maven standards, the repository definitions should
1580 go in the settings.xml file, rather than into the POM.
1581
1582 This leaves the site URL mechanics in the POM to cater for staging
1583 and deploying sites.
1584 -->
1585 <distributionManagement>
1586 <site>
1587 <id>coberturaSite</id>
1588 <name>coberturaSite</name>
1589 <url>${distro.url.prefix}/${path.in.reactor}</url>
1590 </site>
1591 </distributionManagement>
1592
1593 <!--
1594 ################################################
1595 # Section 5: Profiles and Reports
1596 ################################################
1597 -->
1598
1599 <profiles>
1600
1601 <!--
1602 Moved to a profile, activated by JDK 1.7 or higher, because the Enforcer rules used require Java 1.7.
1603 We must use Java 1.6 when doing a release.
1604 -->
1605 <profile>
1606 <id>enforce-imports</id>
1607 <activation>
1608 <jdk>[1.7,)</jdk>
1609 </activation>
1610 <build>
1611 <plugins>
1612 <!-- Enforce not importing incorrect projects. -->
1613 <plugin>
1614 <artifactId>maven-enforcer-plugin</artifactId>
1615 <version>1.3.1</version>
1616 <executions>
1617 <execution>
1618 <id>enforce-imports</id>
1619 <goals>
1620 <goal>enforce</goal>
1621 </goals>
1622 <configuration>
1623 <fail>${breakOnFailure.enforcer}</fail>
1624 <rules>
1625 <requireMavenVersion>
1626 <version>[3.0.5,)</version>
1627 </requireMavenVersion>
1628 <requireJavaVersion>
1629 <version>${jdk.version}</version>
1630 </requireJavaVersion>
1631 <requireUpperBoundDeps />
1632
1633 <!--
1634 Enforce the ProjectType structure, implying that all projects
1635 must comply with the project template definitions.
1636 -->
1637 <validateProjectTypes implementation="se.jguru.nazgul.tools.codestyle.enforcer.rules.ValidateProjectType" />
1638
1639 <!--
1640 Enforce the implementation rules for dependencies, to enforce that
1641 the level of dependency tanglement is not increased. This implies that
1642 implementation projects cannot import other implementation projects (but
1643 instead should import APIs).
1644
1645 While the configuration below reflect the default settings, it is
1646 reproduced her to serve as an example of how to configure this enforcement rule
1647 in child reactors - where needs are likely different than here.
1648 -->
1649 <restrictImplDependencies implementation="se.jguru.nazgul.tools.codestyle.enforcer.rules.RestrictImplDependencies">
1650 <includedGroupIdPatterns>${enforcer.includedGroupIdPatterns}
1651 </includedGroupIdPatterns>
1652 <excludedGroupIdPatterns>${enforcer.excludedGroupIdPatterns}
1653 </excludedGroupIdPatterns>
1654 </restrictImplDependencies>
1655
1656 <!--
1657 Enforce using correct packages for classes within a NSC project.
1658 The root package of any project should be identical to its groupId.
1659 Any package below the root package can safely be used - so ...
1660
1661 if the groupId of a project is "com.acme.foobar",
1662 then all code within that project must reside within the "com.acme.foobar" package,
1663 or in any subpackage thereof.
1664 -->
1665 <correctPackaging implementation="se.jguru.nazgul.tools.codestyle.enforcer.rules.CorrectPackagingRule" />
1666 </rules>
1667 </configuration>
1668 </execution>
1669 </executions>
1670 <dependencies>
1671 <dependency>
1672 <groupId>se.jguru.nazgul.tools.codestyle</groupId>
1673 <artifactId>nazgul-codestyle</artifactId>
1674 <version>${nazgul-tools.version}</version>
1675 </dependency>
1676 <dependency>
1677 <groupId>net.sourceforge.cobertura.codestyle</groupId>
1678 <artifactId>cobertura-codestyle</artifactId>
1679 <version>2.1.1</version>
1680 </dependency>
1681 </dependencies>
1682 </plugin>
1683 </plugins>
1684 </build>
1685 </profile>
1686
1687 <!--
1688 Purpose: Use GPG to sign artifacts during release:perform.
1689 -->
1690 <profile>
1691 <id>release-sign-artifacts</id>
1692 <activation>
1693 <property>
1694 <name>performRelease</name>
1695 <value>true</value>
1696 </property>
1697 </activation>
1698 <build>
1699 <plugins>
1700 <plugin>
1701 <groupId>org.apache.maven.plugins</groupId>
1702 <artifactId>maven-gpg-plugin</artifactId>
1703 <version>1.4</version>
1704 <executions>
1705 <execution>
1706 <id>sign-artifacts</id>
1707 <phase>verify</phase>
1708 <goals>
1709 <goal>sign</goal>
1710 </goals>
1711 </execution>
1712 </executions>
1713 </plugin>
1714 </plugins>
1715 </build>
1716 </profile>
1717
1718 <!--
1719 Purpose: Skip deploy step for dryRun
1720 -->
1721 <profile>
1722 <id>release.dryRun</id>
1723 <activation>
1724 <property>
1725 <name>dryRun</name>
1726 <value>true</value>
1727 </property>
1728 </activation>
1729 <build>
1730 <plugins>
1731 <plugin>
1732 <artifactId>maven-release-plugin</artifactId>
1733 <version>${maven.release.plugin.version}</version>
1734 <configuration>
1735 <goals>deploy</goals>
1736 <mavenExecutorId>forked-path</mavenExecutorId>
1737 <preparationGoals>-B clean install</preparationGoals>
1738 <localCheckout>true</localCheckout>
1739 </configuration>
1740 </plugin>
1741 </plugins>
1742 </build>
1743 </profile>
1744
1745 <!--
1746 Purpose: Create Eclipse workspace including all dependencies
1747 from the checked-out mercurial repository.
1748 -->
1749 <profile>
1750 <id>setupEclipseProfile</id>
1751 <build>
1752 <defaultGoal>clean</defaultGoal>
1753 <plugins>
1754 <plugin>
1755 <groupId>org.apache.maven.plugins</groupId>
1756 <artifactId>maven-eclipse-plugin</artifactId>
1757 <executions>
1758 <execution>
1759 <id>setup.eclipse.project</id>
1760 <phase>clean</phase>
1761 <goals>
1762 <goal>clean</goal>
1763 <goal>eclipse</goal>
1764 </goals>
1765 <configuration>
1766 <addGroupIdToProjectName>true</addGroupIdToProjectName>
1767 <addVersionToProjectName>true</addVersionToProjectName>
1768 </configuration>
1769 </execution>
1770 </executions>
1771 </plugin>
1772 </plugins>
1773 </build>
1774 </profile>
1775 </profiles>
1776 </project>