<?xml version="1.0"?>
<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">
  <!-- JBoss, Home of Professional Open Source Copyright 2009, Red Hat Middleware 
		LLC, and individual contributors as indicated by the @author tags. See the 
		copyright.txt in the distribution for a full listing of individual contributors. 
		This copyrighted material is made available to anyone wishing to use, modify, 
		copy, or redistribute it subject to the terms and conditions of the GNU Lesser 
		General Public License, v. 2.1. This program is distributed in the hope that 
		it will be useful, but WITHOUT A WARRANTY; without even the implied warranty 
		of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser 
		General Public License for more details. You should have received a copy 
		of the GNU Lesser General Public License, v.2.1 along with this distribution; 
		if not, write to the Free Software Foundation, Inc., 51 Franklin Street, 
		Fifth Floor, Boston, MA 02110-1301, USA. (C) 2009, @author JBoss Inc. (jonathan.halliday@redhat.com) -->

  <parent>
    <groupId>org.jboss</groupId>
    <artifactId>jboss-parent</artifactId>
    <version>11</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jboss.narayana</groupId>
  <artifactId>narayana-all</artifactId>
  <version>5.0.1.Final</version>
  <packaging>pom</packaging>
  <url>http://www.jboss.org/jbosstm/</url>
  <name>Narayana: all</name>
  <description>${project.artifactId}</description>
  <issueManagement>
    <system>JIRA</system>
    <url>https://jira.jboss.org/jira/browse/JBTM/</url>
  </issueManagement>
  <ciManagement>
    <system>hudson</system>
    <url>http://hudson.qa.jboss.com/hudson/view/JBossTS/</url>
  </ciManagement>
  <developers>
    <developer>
      <id>nmcl</id>
      <name>Mark Little</name>
      <email>mlittle@redhat.com</email>
      <organization>JBoss</organization>
      <organizationUrl>http://www.jboss.org/</organizationUrl>
      <roles>
        <role>JBoss CTO</role>
      </roles>
      <timezone>0</timezone>
    </developer>
    <developer>
      <id>tomjenkinson</id>
      <name>Tom Jenkinson</name>
      <email>tom.jenkinson@redhat.com</email>
      <organization>JBoss</organization>
      <organizationUrl>http://www.jboss.org/</organizationUrl>
      <roles>
        <role>project lead</role>
      </roles>
      <timezone>0</timezone>
    </developer>
    <developer>
      <id>paulrobinson</id>
      <name>Paul Robinson</name>
      <email>paul.robinson@redhat.com</email>
      <organization>JBoss</organization>
      <organizationUrl>http://www.jboss.org/</organizationUrl>
      <roles>
        <role>xts lead</role>
      </roles>
      <timezone>0</timezone>
    </developer>
    <developer>
      <id>mmusgrov</id>
      <name>Michael Musgrove</name>
      <email>mmusgrov@redhat.com</email>
      <organization>JBoss</organization>
      <organizationUrl>http://www.jboss.org/</organizationUrl>
      <roles>
        <role>Core Developer</role>
      </roles>
      <timezone>0</timezone>
    </developer>
    <developer>
      <id>zhfeng</id>
      <name>Amos Feng</name>
      <email>zfeng@redhat.com</email>
      <organization>JBoss</organization>
      <organizationUrl>http://www.jboss.org/</organizationUrl>
      <roles>
        <role>Core Developer</role>
      </roles>
      <timezone>0</timezone>
    </developer>
    <developer>
      <id>istudens</id>
      <name>Ivo Studensky</name>
      <email>istudens@redhat.com</email>
      <organization>JBoss</organization>
      <organizationUrl>http://www.jboss.org/</organizationUrl>
      <roles>
        <role>QA lead</role>
      </roles>
      <timezone>0</timezone>
    </developer>
    <developer>
      <id>jhalliday</id>
      <name>Jonathan Halliday</name>
      <email>jonathan.halliday@redhat.com</email>
      <organization>JBoss</organization>
      <organizationUrl>http://www.jboss.org/</organizationUrl>
      <timezone>0</timezone>
    </developer>
    <developer>
      <id>adinn</id>
      <name>Andrew Dinn</name>
      <email>adinn@redhat.com</email>
      <organization>JBoss</organization>
      <organizationUrl>http://www.jboss.org/</organizationUrl>
      <timezone>0</timezone>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>LGPL 2.1</name>
      <url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git@github.com:jbosstm/narayana.git</connection>
    <developerConnection>scm:git:git@github.com:jbosstm/narayana.git</developerConnection>
    <url>https://github.com/jbosstm/narayana</url>
  </scm>
  <pluginRepositories>
    <pluginRepository>
      <id>jboss-public-repository-group</id>
      <name>JBoss Public Repository Group</name>
      <url>http://repository.jboss.org/nexus/content/groups/public/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>
  <repositories>
    <repository>
      <id>jbossThirdParty</id>
      <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/</url>
    </repository>
    <repository>
      <id>jboss-public-repository-group</id>
      <name>JBoss Public Maven Repository Group</name>
      <url>https://repository.jboss.org/nexus/content/groups/public/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
    <!-- Needed for rts -->
    <repository>
      <id>download-java-net</id>
      <name>download-java-net</name>
      <url>http://download.java.net/maven/2/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
  <distributionManagement>
    <repository>
      <id>jboss-releases-repository</id>
      <name>JBoss Release Repository</name>
      <url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>jboss-snapshots-repository</id>
      <name>JBoss Snapshot Repository</name>
      <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-shade-plugin</artifactId>
          <configuration>
            <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>jboss-maven-plugin</artifactId>
          <version>${version.org.codehaus.mojo.jboss-maven-plugin}</version>
        </plugin>
        <plugin>
          <groupId>org.jboss.as.plugins</groupId>
          <artifactId>jboss-as-maven-plugin</artifactId>
          <version>${version.org.jboss.as.plugins.jboss-as-maven-plugin}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <configuration>
            <archive>
              <manifestEntries>
                  <Implementation-Title>${project.name}</Implementation-Title>
                  <Implementation-URL>http://www.jboss.org/</Implementation-URL>
                  <Implementation-Vendor>JBoss by Red Hat, Inc.</Implementation-Vendor>
                  <Implementation-Vendor-Id>http://www.jboss.org/</Implementation-Vendor-Id>
              </manifestEntries>
            </archive>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
            <compilerArgument>-AtranslationFilesPath=${project.basedir}/classes/</compilerArgument>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-deploy-plugin</artifactId>
          <configuration>
            <skip>true</skip>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <configuration>
            <forkMode>pertest</forkMode>
            <workingDirectory>target/test-classes</workingDirectory>
            <runOrder>alphabetical</runOrder>
            <redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>
            <inherited>true</inherited>
            <includes>
              <include>**/*.java</include>
            </includes>
          </configuration>
        </plugin>
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
        <plugin>
        	<groupId>org.eclipse.m2e</groupId>
        	<artifactId>lifecycle-mapping</artifactId>
        	<version>1.0.0</version>
        	<configuration>
        		<lifecycleMappingMetadata>
        			<pluginExecutions>
        				<pluginExecution>
        					<pluginExecutionFilter>
        						<groupId>
        							org.apache.maven.plugins
        						</groupId>
        						<artifactId>
        							maven-dependency-plugin
        						</artifactId>
        						<versionRange>[2.8,)</versionRange>
        						<goals>
        							<goal>copy-dependencies</goal>
        						</goals>
        					</pluginExecutionFilter>
        					<action>
        						<ignore></ignore>
        					</action>
        				</pluginExecution>
        				<pluginExecution>
        					<pluginExecutionFilter>
        						<groupId>org.jboss.byteman</groupId>
        						<artifactId>
        							byteman-rulecheck-maven-plugin
        						</artifactId>
        						<versionRange>[2.1.3,)</versionRange>
        						<goals>
        							<goal>rulecheck</goal>
        						</goals>
        					</pluginExecutionFilter>
        					<action>
        						<ignore></ignore>
        					</action>
        				</pluginExecution>
        				<pluginExecution>
        					<pluginExecutionFilter>
        						<groupId>
        							org.apache.maven.plugins
        						</groupId>
        						<artifactId>
        							maven-antrun-plugin
        						</artifactId>
        						<versionRange>[1.7,)</versionRange>
        						<goals>
        							<goal>run</goal>
        						</goals>
        					</pluginExecutionFilter>
        					<action>
        						<ignore></ignore>
        					</action>
        				</pluginExecution>
        				<pluginExecution>
        					<pluginExecutionFilter>
        						<groupId>org.codehaus.mojo</groupId>
        						<artifactId>
        							build-helper-maven-plugin
        						</artifactId>
        						<versionRange>[1.7,)</versionRange>
        						<goals>
        							<goal>add-source</goal>
        						</goals>
        					</pluginExecutionFilter>
        					<action>
        						<ignore></ignore>
        					</action>
        				</pluginExecution>
        				<pluginExecution>
        					<pluginExecutionFilter>
        						<groupId>org.codehaus.mojo</groupId>
        						<artifactId>
        							idlj-maven-plugin
        						</artifactId>
        						<versionRange>[1.2.1,)</versionRange>
        						<goals>
        							<goal>generate</goal>
        							<goal>generate-test</goal>
        						</goals>
        					</pluginExecutionFilter>
        					<action>
        						<ignore></ignore>
        					</action>
        				</pluginExecution>
        			</pluginExecutions>
        		</lifecycleMappingMetadata>
        	</configuration>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
        <inherited>false</inherited>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <configuration>
          <skip>false</skip>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.jboss.byteman</groupId>
        <artifactId>byteman-rulecheck-maven-plugin</artifactId>
        <version>${version.org.jboss.byteman}</version>
        <executions>
          <execution>
             <id>rulecheck</id>
             <goals>
               <goal>rulecheck</goal>
             </goals>
             <configuration>
                 <includes>
                     <include>**/*.btm</include>
                 </includes>
             </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <properties>
    <!-- IP stack configs. -->
    <testLogToFile>true</testLogToFile>
    <jvm.args.ip>-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false</jvm.args.ip>
    <maven.build.timestamp.format>yyyy/MMM/dd HH:mm</maven.build.timestamp.format>
    <buildproperty.date>${maven.build.timestamp}</buildproperty.date>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <jvm.args.byteman>-Dorg.jboss.byteman.verbose
                        -Djboss.modules.system.pkgs=org.jboss.byteman
                        -Dorg.jboss.byteman.transform.all
                        -javaagent:${project.build.directory}/lib/byteman.jar=listener:true
    </jvm.args.byteman>
    <jvm.args.memory>-Xms64m -Xmx1024m -XX:MaxPermSize=512m</jvm.args.memory>
    <jvm.args.debug>-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n</jvm.args.debug>
    <jvm.args.other>-server</jvm.args.other>
    
    <!-- External dependencies versions -->
    <jboss-as.version>8.0.1.Final-SNAPSHOT</jboss-as.version>
    <version.org.jboss.spec.javax.jms.jboss-jms-api_2.0_spec>1.0.0.Final</version.org.jboss.spec.javax.jms.jboss-jms-api_2.0_spec>
    <version.org.jboss.jandex>1.1.0.Final</version.org.jboss.jandex>
    <version.rhino.js>1.7R2</version.rhino.js>
    <version.org.jboss.logmanager>1.5.1.Final</version.org.jboss.logmanager>
    <version.org.jboss.logging.jboss-logging>3.1.3.GA</version.org.jboss.logging.jboss-logging>
    <version.org.jboss.logging.jboss-logging-processor>1.1.0.Final</version.org.jboss.logging.jboss-logging-processor>
    <version.org.jboss.integration>6.0.0.CR1</version.org.jboss.integration>
    <version.org.jboss.ironjacamar>1.1.1.Final</version.org.jboss.ironjacamar>
    <version.org.jboss.ws>1.0.2.Final</version.org.jboss.ws>
    <version.org.jboss.resteasy>3.0.5.Final</version.org.jboss.resteasy>
    <version.org.jboss.weld>2.1.0.Final</version.org.jboss.weld>
    <version.org.hornetq>2.3.9.Final</version.org.hornetq>
    <version.org.hibernate.javax.persistence>1.0.1.Final</version.org.hibernate.javax.persistence>
    <version.org.jboss.spec.javax.interceptor>1.0.0.Final</version.org.jboss.spec.javax.interceptor>
    <version.org.jboss.spec.javax.transaction>1.0.0.Final</version.org.jboss.spec.javax.transaction>
    <version.org.jboss.spec.javax.ejb>1.0.2.Final</version.org.jboss.spec.javax.ejb>
    <version.org.jboss.spec.javax.servlet>1.0.2.Final</version.org.jboss.spec.javax.servlet>
    <version.org.jboss.spec.jboss-javaee-6.0>3.0.2.Final</version.org.jboss.spec.jboss-javaee-6.0>
    <version.org.jacorb.jacorb>2.3.2-jbossorg-5</version.org.jacorb.jacorb>
    <version.org.jacorb.jacorb-idl-compiler>2.3.1</version.org.jacorb.jacorb-idl-compiler>
    <version.jacorb>2.3.1jboss.patch01-brew</version.jacorb>
    <version.javax.annotation>1.2</version.javax.annotation>
    <version.javax.enterprise>1.1</version.javax.enterprise>
    <version.javax.inject>1</version.javax.inject>
    <version.javax.servlet>2.5</version.javax.servlet>
    <version.commons-httpclient>3.1-jbossorg-1</version.commons-httpclient>
    <version.commons-logging>1.1.0.jboss</version.commons-logging>
    <version.log4j>1.2.17</version.log4j>
    <version.org.slf4j>1.7.2.jbossorg-1</version.org.slf4j>
    <version.dom4j>1.6.1</version.dom4j>
    <version.jfree>1.0.9</version.jfree>
    <version.com.h2database>1.3.173</version.com.h2database>
    <version.org.apache.tomcat>6.0.37</version.org.apache.tomcat>
    <version.org.apache.ant>1.8.2</version.org.apache.ant>
    <version.org.apache.httpcomponents>4.2.1</version.org.apache.httpcomponents>
    <version.com.sybase.jConnect>6.0</version.com.sybase.jConnect>
    <version.com.oracle>10.2.0.4</version.com.oracle>
    <version.com.ibm>9.7</version.com.ibm>
    <version.postgresql>9.0-801.jdbc4</version.postgresql>
    <version.mysql>5.1.28</version.mysql>
    <version.com.microsoft.sqlserver>mssql2005_sqljdbc_2.0</version.com.microsoft.sqlserver>
    <version.sun.jdk>jdk</version.sun.jdk>
    <version.asm>3.3.1</version.asm>
    <version.com.sun.jersey>1.9.1</version.com.sun.jersey>
    <version.com.sun.grizzly>1.9.59</version.com.sun.grizzly>
    <version.org.codehaus.jettison>1.3.4</version.org.codehaus.jettison>
    <version.junit>4.11</version.junit>
    <version.org.jboss.byteman>2.1.3</version.org.jboss.byteman>
    <version.org.jboss.arquillian.core>1.1.2.Final-wildfly-1</version.org.jboss.arquillian.core>
    <version.org.jboss.jboss-transaction-spi>7.1.0.Final</version.org.jboss.jboss-transaction-spi>

    <!-- qa testsuite with hornetq store -->
    <version.org.jboss.netty>3.2.6.Final</version.org.jboss.netty>

    <!-- Maven plugin versions -->
    <version.org.codehaus.mojo.jboss-maven-plugin>1.5.0</version.org.codehaus.mojo.jboss-maven-plugin>
    <version.org.jboss.as.plugins.jboss-as-maven-plugin>7.4.Final</version.org.jboss.as.plugins.jboss-as-maven-plugin>
    <version.org.apache.maven.plugins.maven-antrun-plugin>1.7</version.org.apache.maven.plugins.maven-antrun-plugin>
  </properties>
  <modules>
    <module>ext</module>
    <module>common</module>
    <module>ArjunaCore</module>
    <module>ArjunaJTA</module>
    <module>XTS</module>
    <module>ArjunaJTS</module>
    <module>rts</module>
    <module>txbridge</module>
    <module>STM</module>
    <module>txframework</module>
  </modules>
  <profiles>
    <profile>
      <id>release</id>
      <modules>
        <module>narayana-full</module>
      </modules>
      <build>
          <pluginManagement>
              <plugins>
                  <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <executions>
                      <execution>
                        <id>default-install</id>
                        <phase>none</phase>
                      </execution>
                    </executions>
                  </plugin>
              </plugins>
          </pluginManagement>
          <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-install-plugin</artifactId>
            <executions>
              <execution>
                <id>default-install</id>
                <phase>install</phase>
              </execution>
            </executions>
            <inherited>false</inherited>
          </plugin>
          </plugins>
      </build>
    </profile>
        <profile>
            <id>codeCoverage</id>
            <build>
                <plugins>
                    <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-jar-plugin</artifactId>
                      <configuration>
                        <classesDirectory>${project.build.directory}/generated-classes/emma/classes</classesDirectory>
                      </configuration>
                    </plugin>
                    <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-surefire-plugin</artifactId>
                      <configuration>
                        <classesDirectory>${project.build.directory}/generated-classes/emma/classes</classesDirectory>
                        <additionalClasspathElements>
                          <additionalClasspathElement>${emma.jar.location}/emma.jar</additionalClasspathElement>
                        </additionalClasspathElements>
                      </configuration>
                    </plugin>
                    <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-antrun-plugin</artifactId>
                      <executions>
                        <execution>
                          <id>instrument</id>
                          <phase>process-classes</phase>
                          <configuration>
                            <target>
                                  <java classname="emma">
                                    <arg value="instr"/>
                                    <arg value="-ix"/>
                                    <arg value="-com.arjuna.ArjunaOTS.*,-org.omg.CORBA.*,-org.omg.CosTransactions.*,-org.omg.XA.*,-*.logging.*,-org.jboss.jbossts.xts.servicetests.*,-com.jboss.transaction.wstf.test.*,-com.jboss.transaction.txinterop.test.*"/>
                                    <arg value="-instrpath"/>
                                    <arg value="${project.build.directory}/classes/"/>
                                    <arg value="-outfile"/>
                                    <arg value="${project.build.directory}/coverage.em"/>
                                    <arg value="-outdir"/>
                                    <arg value="${project.build.directory}/generated-classes/emma/"/>
                                    <arg value="-merge"/>
                                    <arg value="y"/>
                                    <arg value="-outmode"/>
                                    <arg value="fullcopy"/>
                                    <classpath>
                                      <pathelement path="${emma.jar.location}/emma.jar"/> 
                                    </classpath>
                                  </java>
                            </target>
                          </configuration>
                          <goals>
                            <goal>run</goal>
                          </goals>
                        </execution>
                        <execution>
                          <id>create-report</id>
                          <phase>install</phase>
                          <configuration>
                            <target>
                              <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath" />
                              <if>
                                <available file="${project.build.directory}/test-classes/coverage.ec"/>
                                <then>
                                  <java classname="emma">
                                    <arg value="report"/>
                                    <arg value="-r"/>
                                    <arg value="html"/>
                                    <arg value="-in"/>
                                    <arg value="${project.build.directory}/coverage.em"/>
                                    <arg value="-in"/>
                                    <arg value="${project.build.directory}/test-classes/coverage.ec"/>
                                    <arg value="-Dreport.html.out.file=${project.build.directory}/coverage.html"/>
                                    <arg value="-Dreport.metrics=method:70,block:70,line:80,class:100"/>
                                    <classpath>
                                      <pathelement path="${emma.jar.location}/emma.jar"/> 
                                    </classpath>
                                  </java>
                                </then>
                              </if>
                            </target>
                          </configuration>
                          <goals>
                            <goal>run</goal>
                          </goals>
                        </execution>
                      </executions>
                      <dependencies>
                        <dependency>
                            <groupId>ant-contrib</groupId>
                            <artifactId>ant-contrib</artifactId>
                            <version>1.0b3</version>
                            <exclusions>
                                <exclusion>
                                    <groupId>ant</groupId>
                                    <artifactId>ant</artifactId>
                                </exclusion>
                            </exclusions>
                        </dependency>
                        <dependency>
                            <groupId>org.apache.ant</groupId>
                            <artifactId>ant-nodeps</artifactId>
                            <version>1.8.1</version>
                        </dependency>
                      </dependencies>
                    </plugin>
                  </plugins>
                </build>
                <properties>
                  <maven.compiler.argument.target>1.6</maven.compiler.argument.target>
                  <maven.compiler.argument.source>1.6</maven.compiler.argument.source>
                  <version.emma>2.0.12224-adinn</version.emma>
                </properties>
              </profile>
    <profile>
      <id>community</id>
      <properties>
        <version.orson>0.5.0</version.orson>
        <version.tanukisoft>3.2.3</version.tanukisoft>
      </properties>
    </profile>
    <profile>
            <id>findbugs</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>findbugs-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>findbugs</id>
                                <phase>compile</phase>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                                <configuration>
                                  <failOnError>false</failOnError>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-site-plugin</artifactId>
                        <configuration>
                            <reportPlugins>
                                <plugin>
                                    <groupId>org.codehaus.mojo</groupId>
                                    <artifactId>findbugs-maven-plugin</artifactId>
                                    <version>${version.org.codehaus.mojo.findbugs-maven-plugin}</version>
                                </plugin>
                            </reportPlugins>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
  </profiles>
</project>
