The smartics Java POM

The POM configuration for Java projects. This is the content of the project's pom.xml.

<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>de.smartics.config.pom</groupId>
    <artifactId>pom-root</artifactId>
    <version>30.0.3</version>
  </parent>

  <artifactId>pom-java</artifactId>
  <version>32.0.3</version>
  <packaging>pom</packaging>

  <name>pom-java</name>
  <description>
    This project provides the parent POM for all smartics Java projects.
  </description>
  <url>${weburl}</url>

  <scm>
    <connection>scm:svn:https://www.smartics.eu/svn/public/config/pom-java/tags/pom-java-32.0.3</connection>
    <developerConnection>scm:svn:https://www.smartics.eu/svn/public/config/pom-java/tags/pom-java-32.0.3</developerConnection>
    <url>https://www.smartics.eu/svn/public/config/pom-java/tags/pom-java-32.0.3</url>
  </scm>

  <distributionManagement>
    <repository>
      <id>${project-visibility}</id>
      <name>internal smartics release repository</name>
      <url>${repo.server.upload}/${project-visibility}</url>
    </repository>
    <snapshotRepository>
      <uniqueVersion>false</uniqueVersion>
      <id>${project-visibility}-snapshot</id>
      <name>internal smartics snapshot repository</name>
      <url>${repo.server.upload}/${project-visibility}-snapshot</url>
    </snapshotRepository>
    <site>
      <id>${project-visibility}-site</id>
      <name>documentation site</name>
      <url>${site.url}</url>
    </site>
  </distributionManagement>

  <properties>
    <xrefLocation>${project.reporting.outputDirectory}/xref</xrefLocation>
    <xrefTestLocation>${project.reporting.outputDirectory}/xref-test</xrefTestLocation>

    <config-smartics-checkstyle.version>1.6.3</config-smartics-checkstyle.version>
    <maven-checkstyle-plugin.version>2.10</maven-checkstyle-plugin.version>
    <config-smartics-pmd.version>2.0.0</config-smartics-pmd.version>
    <maven-pmd-plugin.version>3.0.1</maven-pmd-plugin.version>
    <findbugs-maven-plugin.version>2.5.2</findbugs-maven-plugin.version>

    <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>
    <maven-surefire-report-plugin.version>2.16</maven-surefire-report-plugin.version>
    <cobertura-maven-plugin.version>2.5.2</cobertura-maven-plugin.version>

    <maven-jxr-plugin.version>2.3</maven-jxr-plugin.version>

    <apidoc-maven-plugin.version>0.2.1</apidoc-maven-plugin.version>
    <javancss-maven-plugin.version>2.0</javancss-maven-plugin.version>
    <jdepend-maven-plugin.version>2.0-beta-2</jdepend-maven-plugin.version>

    <!--
      ->maven-compiler-plugin v3.0<- Problems may be encountered using javax.tools.JavaCompiler instead of javac. See: http://www.mail-archive.com/users@maven.apache.org/msg127903.html In this case try: <forceJavacCompilerUse>true</forceJavacCompilerUse>
      or set version back to 2.5.1.
     -->
    <maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>
    <maven-eclipse-plugin.version>2.9</maven-eclipse-plugin.version>
    <maven-antrun-plugin.version>1.7</maven-antrun-plugin.version>
    <taglist-maven-plugin.version>2.4</taglist-maven-plugin.version>
  </properties>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>${maven-compiler-plugin.version}</version>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-report-plugin</artifactId>
          <version>${maven-surefire-report-plugin.version}</version>
        </plugin>

        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>${findbugs-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>de.smartics.maven.plugin</groupId>
          <artifactId>apidoc-maven-plugin</artifactId>
          <version>${apidoc-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jxr-plugin</artifactId>
          <version>${maven-jxr-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>jdepend-maven-plugin</artifactId>
          <version>${jdepend-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>javancss-maven-plugin</artifactId>
          <version>${javancss-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>taglist-maven-plugin</artifactId>
          <version>${taglist-maven-plugin.version}</version>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>${maven-antrun-plugin.version}</version>
<!--$NO-MVN-MAN-VER$-->
          <dependencies>
            <dependency>
              <groupId>org.apache.ant</groupId>
              <artifactId>ant-nodeps</artifactId>
              <version>1.8.1</version>
            </dependency>
            <dependency>
              <groupId>org.apache.ant</groupId>
              <artifactId>ant-trax</artifactId>
              <version>1.8.0</version>
            </dependency>
          </dependencies>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-site-plugin</artifactId>
          <version>${maven-site-plugin.version}</version>
          <inherited>true</inherited>
          <configuration>
            <reportPlugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
              </plugin>
              <plugin>
                <groupId>de.smartics.maven.plugin</groupId>
                <artifactId>issues-maven-plugin</artifactId>
              </plugin>
              <plugin>
                <groupId>de.smartics.maven.plugin</groupId>
                <artifactId>issues-maven-plugin</artifactId>
              </plugin>
              <plugin>
                <groupId>de.smartics.maven.plugin</groupId>
                <artifactId>buildmetadata-maven-plugin</artifactId>
              </plugin>

              <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <configuration>
                  <formats>
                    <format>html</format>
                    <format>xml</format>
                  </formats>
                </configuration>
              </plugin>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <configuration>
                  <forkMode>once</forkMode>
                  <redirectTestOutputToFile>true</redirectTestOutputToFile>
                </configuration>
              </plugin>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                  <detectLinks>true</detectLinks>
                  <bottom>
                    Copyright &amp;copy; ${build.copyright.year} &lt;a href="http://www.smartics.de/"&gt;Kronseder &amp;amp; Reiner GmbH - smartics&lt;/a&gt;. All Rights Reserved.
                  </bottom>
                  <tags>
                    <tag>
                      <name>todo</name>
                      <placement>a</placement>
                      <head>To Do:</head>
                    </tag>

                    <tag>
                      <name>sdoc.category</name>
                      <placement>a</placement>
                      <head>Appcode-Category</head>
                    </tag>
                    <tag>
                      <name>sdoc.subcategory</name>
                      <placement>a</placement>
                      <head>Appcode-Subcategory</head>
                    </tag>
                    <tag>
                      <name>sdoc.tag</name>
                      <placement>a</placement>
                      <head>Appcode-Tag</head>
                    </tag>
                    <tag>
                      <name>sdoc.parent</name>
                      <placement>a</placement>
                      <head>Appcode-Parent</head>
                    </tag>
                    <tag>
                      <name>sdoc.name</name>
                      <placement>f</placement>
                      <head>Appcode-Name</head>
                    </tag>
                    <tag>
                      <name>sdoc.sort-key</name>
                      <placement>f</placement>
                      <head>Appcode-Sort-Key</head>
                    </tag>
                    <tag>
                      <name>sdoc.short-description</name>
                      <placement>f</placement>
                      <head>Appcode-Short-Description</head>
                    </tag>
                    <tag>
                      <name>sdoc.notes</name>
                      <placement>f</placement>
                      <head>Appcode-Notes</head>
                    </tag>

                    <tag>
                      <name>goal</name>
                      <placement>a</placement>
                      <head>maven-goal:</head>
                    </tag>
                    <tag>
                      <name>phase</name>
                      <placement>a</placement>
                      <head>maven-phase:</head>
                    </tag>
                    <tag>
                      <name>requiresProject</name>
                      <placement>a</placement>
                      <head>maven-requiresProject:</head>
                    </tag>
                    <tag>
                      <name>description</name>
                      <placement>a</placement>
                      <head>maven-description:</head>
                    </tag>
                  </tags>
                  <taglets>
                    <!-- http://taglets.sourceforge.net/ -->
                    <taglet>
                      <tagletClass>net.sourceforge.taglets.Taglets</tagletClass>
                      <tagletArtifact>
                        <groupId>net.sourceforge.taglets</groupId>
                        <artifactId>taglets</artifactId>
                        <version>2.0.3</version>
                      </tagletArtifact>
                    </taglet>
                  </taglets>

                  <!-- Generates plantuml source files from Java sources.
                  <doclet>de.mallox.doclet.PlantUMLDoclet</doclet>
                  <docletArtifact>
                    <groupId>de.mallox</groupId>
                    <artifactId>plantuml-doclet</artifactId>
                    <version>1.0</version>
                  </docletArtifact>
                  <useStandardDocletOptions>false</useStandardDocletOptions>
                  -->

                  <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
                  <docletArtifact>
                    <groupId>org.umlgraph</groupId>
                    <artifactId>UmlGraph</artifactId>
                    <version>5.6</version>
                  </docletArtifact>
                    <!-- Options doc: http://www.umlgraph.org/doc/cd-opt.html -->
                  <additionalparam>
                    -inferrel -inferdep -quiet -hide java.*
                    -collpackages java.util.* -qualify
                    -postfixpackage
                    -nodefontsize 9 -nodefontpackagesize 7
                  </additionalparam>
                  <!--
                  <additionalparam>-views</additionalparam>
                  -->
                </configuration>
                <reportSets>
                  <reportSet>
                    <id>html</id>
                    <reports>
                      <report>javadoc</report>
                    </reports>
                  </reportSet>
                  <reportSet>
                    <id>test-html</id>
                    <reports>
                      <report>test-javadoc</report>
                    </reports>
                  </reportSet>
                  <!--
                  <reportSet>
                    <id>aggregate</id>
                    <configuration>
                      <skip>true</skip>
                    </configuration>
                    <reports>
                      <report>aggregate</report>
                    </reports>
                  </reportSet>
                  <reportSet>
                    <id>test-aggregate</id>
                    <configuration>
                      <skip>true</skip>
                    </configuration>
                    <reports>
                      <report>test-aggregate</report>
                    </reports>
                  </reportSet>
                   -->
                </reportSets>
              </plugin>

              <plugin>
                <groupId>de.smartics.maven.plugin</groupId>
                <artifactId>apidoc-maven-plugin</artifactId>
                <version>${apidoc-maven-plugin.version}</version>
                <configuration>
                  <messageFilter>
                    <filter>Tag @source cannot be used in inline documentation.</filter>
                    <filter>Tag @stickyNote cannot be used in inline documentation.</filter>
                    <filter>Tag @table cannot be used in inline documentation.</filter>
                    <filter>Tag @example cannot be used in inline documentation.</filter>
                  </messageFilter>
                  <additionalparam>
                    <!-- taglets -->
                    -tag adm:a:adm
                    -tag constant:a:constant
                    -tag done:a:done
                    -tag equivalence:a:equivalence
                    -tag error:a:error
                    -tag impl:a:impl
                    -tag info:a:info
                    -tag new:a:new
                    -tag note:a:note
                    -tag Taglets.taglet.note:a:note
                    -tag since:a:since
                    -tag testcase:a:testcase
                    -tag todo:a:todo
                    -tag warning:a:warning
                    -tag annotation:a:annotation
                    -tag at:a:at
                    -tag example:a:example
                    -tag markupExample:a:markupExample
                    -tag markupSource:a:markupSource
                    -tag source:a:source
                    -tag stickyDone:a:stickyDone
                    -tag stickyError:a:stickyError
                    -tag stickyInfo:a:stickyInfo
                    -tag stickyNote:a:stickyNote
                    -tag stickyWarning:a:stickyWarning
                    -tag table:a:table

                    <!-- Maven -->
                    -tag goal:a:goal
                    -tag phase:a:phase
                    -tag requiresProject:a:requiresProject
                    -tag requiresDependencyResolution:a:requiresDependencyResolution
                    -tag threadSafe:a:threadSafe
                    -tag description:a:description
                    -tag goal:a:goal
                  </additionalparam>
                </configuration>
              </plugin>

              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <configuration>
                  <aggregate>true</aggregate>
                  <linkJavadoc>true</linkJavadoc>
                </configuration>
                <reportSets>
                  <reportSet>
                    <id>main</id>
                    <reports>
                      <report>jxr</report>
                    </reports>
                  </reportSet>
                  <reportSet>
                    <id>test</id>
                    <reports>
                      <report>test-jxr</report>
                    </reports>
                  </reportSet>
                </reportSets>
              </plugin>

              <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jdepend-maven-plugin</artifactId>
              </plugin>
              <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>javancss-maven-plugin</artifactId>
              </plugin>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <configuration>
                  <configLocation>checkstyle.xml</configLocation>
                  <suppressionsLocation>checkstyle-smartics-suppressions.xml</suppressionsLocation>
                  <propertyExpansion>suppressions.file=${project.build.directory}/checkstyle-suppressions.xml</propertyExpansion>
                  <xrefLocation>${xrefLocation}</xrefLocation>
                </configuration>
              </plugin>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <configuration>
                  <linkXref>true</linkXref>
                  <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
                  <minimumTokens>100</minimumTokens>
                  <targetJdk>1.5</targetJdk>
                  <verbose>true</verbose>
                  <rulesets>
                    <ruleset>houserules.xml</ruleset>
                  </rulesets>
                  <excludes>
                    <exclude>**/src/test/resources/**/*.java</exclude>
                  </excludes>
                  <xrefLocation>${xrefLocation}</xrefLocation>
                </configuration>
              </plugin>
              <plugin>
                <!-- May require to increase the memory of Maven: MAVEN_OPTS=-Xmx384M -->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <configuration>
                  <threshold>Low</threshold>
                  <effort>Max</effort>
                  <findbugsXmlOutput>true</findbugsXmlOutput>
                  <xrefLocation>${xrefLocation}</xrefLocation>
                </configuration>
              </plugin>

              <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>taglist-maven-plugin</artifactId>
                <configuration>
                  <tagListOptions>
                    <tagClasses>
                      <tagClass>
                        <displayName>Todo Work</displayName>
                        <tags>
                          <tag>
                            <matchString>todo</matchString>
                            <matchType>ignoreCase</matchType>
                          </tag>
                          <tag>
                            <matchString>FIXME</matchString>
                            <matchType>exact</matchType>
                          </tag>
                          <tag>
                            <matchString>QUICKFIX</matchString>
                            <matchType>exact</matchType>
                          </tag>
                          <tag>
                            <matchString>WORKAROUND</matchString>
                            <matchType>exact</matchType>
                          </tag>
                          <tag>
                            <matchString>@deprecated</matchString>
                            <matchType>exact</matchType>
                          </tag>
                        </tags>
                      </tagClass>
                    </tagClasses>
                  </tagListOptions>
                  <xrefLocation>${xrefLocation}</xrefLocation>
                  <testXrefLocation>${testXrefLocation}</testXrefLocation>
                </configuration>
              </plugin>
            </reportPlugins>
          </configuration>
        </plugin>

        <plugin>
          <groupId>com.github.jeluard</groupId>
          <artifactId>maven-plantuml-plugin</artifactId>
          <version>${maven-plantuml-plugin.version}</version>
          <executions>
            <execution>
              <id>plantuml-javadoc-site</id>
              <phase>pre-site</phase>
              <goals>
                <goal>generate</goal>
              </goals>
              <configuration>
                <outputDirectory>${basedir}/target/site/apidocs</outputDirectory>
              </configuration>
            </execution>
            <execution>
              <id>plantuml-javadoc</id>
              <phase>generate-sources</phase>
              <goals>
                <goal>generate</goal>
              </goals>
              <configuration>
                <outputDirectory>${basedir}/target/apidocs</outputDirectory>
              </configuration>
            </execution>
            <execution>
              <id>plantuml-site</id>
              <phase>pre-site</phase>
              <goals>
                <goal>generate</goal>
              </goals>
              <configuration>
                <sourceFiles>
                  <directory>${basedir}/src/site</directory>
                  <includes>
                    <include>**/*.xml</include>
                    <include>**/*.txt</include>
                  </includes>
                </sourceFiles>
                <outputDirectory>${basedir}/target/site</outputDirectory>
              </configuration>
            </execution>
          </executions>
          <configuration>
            <sourceFiles>
              <directory>${basedir}/src/main/java</directory>
              <includes>
                <include>**/*.java</include>
              </includes>
            </sourceFiles>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <executions>
          <execution>
            <id>cobertura-multiproject-fix</id>
            <phase>pre-site</phase>
            <goals>
              <goal>clean</goal>
            </goals>
            <configuration>
              <excludeDefaultDirectories>true</excludeDefaultDirectories>
              <filesets>
                <fileset>
                  <directory>${project.build.directory}</directory>
                  <includes>
                    <include>cobertura/**</include>
                    <include>generated-classes/cobertura/**</include>
                    <include>classes/**/*.class</include>
                    <include>test-classes/**/*.class</include>
                  </includes>
                </fileset>
              </filesets>
              <verbose>false</verbose>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>${cobertura-maven-plugin.version}</version>
        <configuration>
          <instrumentation>
            <excludes>
              <exclude>test/**/*.class</exclude>
              <exclude>de/smartics/**/*Test.class</exclude>
              <exclude>de/smartics/**/*TestBase.class</exclude>
              <exclude>de/smartics/*/test/**/*.class</exclude>
            </excludes>
          </instrumentation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>${maven-surefire-plugin.version}</version>
        <configuration>
          <redirectTestOutputToFile>true</redirectTestOutputToFile>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>${maven-checkstyle-plugin.version}</version>
        <dependencies>
          <dependency>
            <groupId>de.smartics.config</groupId>
            <artifactId>config-smartics-checkstyle</artifactId>
            <version>${config-smartics-checkstyle.version}</version>
          </dependency>
          <!--
          <dependency>
            <groupId>de.smartics.util</groupId>
            <artifactId>smartics-checkstyle-rules</artifactId>
            <version>0.1.0-SNAPSHOT</version>
          </dependency>
           -->
        </dependencies>
      </plugin>
      <!--
       Example configuration to support another checkstyle version
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.6-cs53</version>
        <dependencies>
          <dependency>
            <groupId>com.puppycrawl.tools</groupId>
            <artifactId>checkstyle</artifactId>
            <version>5.3</version>
          </dependency>
          <dependency>
            <groupId>de.smartics.config</groupId>
            <artifactId>config-smartics-checkstyle</artifactId>
            <version>1.4.4</version>
          </dependency>
        </dependencies>
      </plugin>
       -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>${maven-pmd-plugin.version}</version>
        <dependencies>
          <dependency>
            <groupId>de.smartics.config</groupId>
            <artifactId>config-smartics-pmd</artifactId>
            <version>${config-smartics-pmd.version}</version>
          </dependency>
        </dependencies>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>${maven-eclipse-plugin.version}</version>
        <dependencies>
          <dependency>
            <groupId>de.smartics.config</groupId>
            <artifactId>config-smartics-pmd</artifactId>
            <version>${config-smartics-pmd.version}</version>
          </dependency>
        </dependencies>
        <configuration>
          <additionalConfig>
            <file>
              <name>.checkstyle</name>
              <content>
&lt;fileset-config file-format-version="1.2.0" simple-config="true"&gt;
  &lt;fileset name="All" enabled="true" check-config-name="smartics" local="false"&gt;
    &lt;file-match-pattern match-pattern="." include-pattern="true" /&gt;
    &lt;file-match-pattern match-pattern="^src[/\\]test[/\\]resources[/\\].*\.java$" include-pattern="false" /&gt;
  &lt;/fileset&gt;
  &lt;filter name="SuppressionFilter" enabled="true" /&gt;
&lt;/fileset-config&gt;
              </content>
            </file>
            <file>
              <name>.pmd</name>
              <location>/eclipse-pmd.xml</location>
            </file>
            <file>
              <name>.ruleset</name>
              <location>/houserules.xml</location>
            </file>
          </additionalConfig>
          <buildcommands>
            <buildCommand>
              <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name>
            </buildCommand>
            <buildCommand>
              <name>net.sourceforge.pmd.eclipse.plugin.pmdBuilder</name>
            </buildCommand>
          </buildcommands>
          <additionalProjectnatures>
            <projectnature>net.sourceforge.pmd.eclipse.plugin.pmdNature</projectnature>
            <projectnature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</projectnature>
          </additionalProjectnatures>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>transform</id>
            <phase>pre-site</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <target>
                <xslt in="${basedir}/pom.xml" out="${project.build.directory}/generated-site/xdoc/pom-documentation.xml" style="${basedir}/src/etc/xsl/create-pom-doc.xsl"/>
              </target>
            </configuration>
          </execution>
        </executions>
        <inherited>false</inherited>
      </plugin>
    </plugins>
  </build>

  <!-- Xref links are not generated with Maven 3
        http://maven.40175.n5.nabble.com/Xref-link-generation-regression-with-Maven-3-td3336017.html
          http://jira.codehaus.org/browse/MFINDBUGS-145
          http://jira.codehaus.org/browse/MPMD-128
          http://jira.codehaus.org/browse/MCHECKSTYLE-150
          http://jira.codehaus.org/browse/MCLIRR-38
          http://jira.codehaus.org/browse/SUREFIRE-683
        ...
    -->
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jxr-plugin</artifactId>
        <version>${maven-jxr-plugin.version}</version>
      </plugin>
    </plugins>
  </reporting>


  <profiles>
    <!-- Please note that the release plugin automatically generates
         source and javadoc artifacts, so this profile is not
         activated on releases. -->
    <profile>
      <id>attach</id>
      <activation>
        <property>
          <name>attach</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>${maven-source-plugin.version}</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <phase>package</phase>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>attach-javadoc</id>
      <activation>
        <property>
          <name>attach-javadoc</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>${maven-javadoc-plugin.version}</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>