<?xml version="1.0" encoding="UTF-8"?>
<!-- 
 Copyright (c) 2008-2012 EBM WebSourcing, 2012-2015 Linagora

 This program/library is free software: you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
 the Free Software Foundation, either version 2.1 of the License, or (at your
 option) any later version.

 This program/library is distributed in the hope that it will be useful, but
 WITHOUT ANY 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 along
 with this program/library; If not, see <http://www.gnu.org/licenses /> for the
 GNU Lesser General Public License version 2.1.
-->
<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>
  <prerequisites>
    <maven>3.0.5</maven>
  </prerequisites>
  <parent>
    <groupId>org.ow2</groupId>
    <artifactId>ow2</artifactId>
    <version>1.5</version>
    <!-- Resolve the parent from the repositories <=> Set it empty. -->
    <relativePath />
  </parent>
  <!-- ============== -->
  <!-- Identification -->
  <!-- ============== -->
  <name>Petals ESB - Root Parent POM</name>
  <groupId>org.ow2.petals</groupId>
  <artifactId>petals-root-parent</artifactId>
  <packaging>pom</packaging>
  <version>20.2.4</version>
  <inceptionYear>2005</inceptionYear>
  <description>The Petals Services Platform provides a distributed open source implementation of Java Business Integration (JBI) specification as a core element to build OW2 ESB solutions, leveraging existing Consortium's components.</description>
  <url>http://petals.ow2.org/</url>
  <organization>
    <name>Linagora</name>
    <url>http://www.linagora.com</url>
  </organization>
  <issueManagement>
    <url>http://jira.petalslink.com/</url>
  </issueManagement>
  <!-- Source code management -->
  <!-- Continuous integration -->
  <ciManagement>
    <system>jenkins</system>
    <url>http://jenkins.petalslink.com</url>
    <notifiers>
      <notifier>
        <type>mail</type>
        <configuration>
          <address>petals-dev@ow2.org</address>
        </configuration>
      </notifier>
    </notifiers>
  </ciManagement>
  <mailingLists>
    <mailingList>
      <name>PETALS General Development Mailing List</name>
      <subscribe>petals-dev-subscribe@ow2.org</subscribe>
      <unsubscribe>petals-dev-unsubscribe@ow2.org</unsubscribe>
      <archive>
				http://mail-archive.objectweb.org/petals-dev/index.html
			</archive>
    </mailingList>
    <mailingList>
      <name>PETALS Users Mailing List</name>
      <subscribe>petals-users-subscribe@ow2.org</subscribe>
      <unsubscribe>petals-users-unsubscribe@ow2.org</unsubscribe>
      <archive>
				http://mail-archive.objectweb.org/petals-users/index.html
			</archive>
    </mailingList>
    <mailingList>
      <name>Petals Source Code Notification</name>
      <subscribe>petals-commits-subscribe@ow2.org</subscribe>
      <unsubscribe>
				petals-commits-unsubscribe@ow2.org
			</unsubscribe>
      <archive>
				http://mail-archive.objectweb.org/petals-commits/index.html
			</archive>
    </mailingList>
  </mailingLists>
  <!-- ======= -->
  <!-- License -->
  <!-- ======= -->
  <licenses>
    <license>
      <name>GNU LESSER GENERAL PUBLIC LICENSE Version 2.1</name>
      <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html</url>
    </license>
  </licenses>
  <!-- ========== -->
  <!-- Developers -->
  <!-- ========== -->
  <developers>
    <developer>
      <name>Christophe Hamerling</name>
      <id>chamerling</id>
      <email>christophe.hamerling@ebmwebsourcing.com</email>
      <url>http://www.ebmwebsourcing.com/chamerling</url>
      <organization>EBM WebSourcing</organization>
      <organizationUrl>
				http://www.ebmwebsourcing.com
			</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>Christophe DENEUX</name>
      <email>christophe.deneux@capgemini.com</email>
      <id>cdeneux</id>
      <organization>Capgemini Sud</organization>
      <organizationUrl>http://www.capgemini.com</organizationUrl>
      <roles>
        <role>Maven Reviewer</role>
        <role>Code Reviewer</role>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>Roland NAUDIN</name>
      <email>roland.naudin@ebmwebsourcing.com</email>
      <id>rnaudin</id>
      <organization>EBM WebSourcing</organization>
      <organizationUrl>
				http://www.ebmwebsourcing.com
			</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>Charles CASADEI</name>
      <email>charles.casadei@petalslink.com</email>
      <id>ccasadei</id>
      <organization>EBM WebSourcing</organization>
      <organizationUrl>
				http://www.ebmwebsourcing.com
			</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>Mohammed ELJAI</name>
      <email>mohammed.eljai@petalslink.com</email>
      <id>meljai</id>
      <organization>EBM WebSourcing</organization>
      <organizationUrl>
				http://www.ebmwebsourcing.com
			</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>Mathieu CARROLLE</name>
      <email>mathieu.carrolle@petalslink.com</email>
      <id>mcarrolle</id>
      <organization>EBM WebSourcing</organization>
      <organizationUrl>
				http://www.ebmwebsourcing.com
			</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>Mathias Beldame</name>
      <email>mathias.beldame@petalslink.com</email>
      <id>mbeldame</id>
      <organization>Petals Link</organization>
      <organizationUrl>http://www.petalslink.com</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>Sebastien ANDRE</name>
      <email>sebastien.andre@petalslink.com</email>
      <id>sandre</id>
      <organization>Petals Link</organization>
      <organizationUrl>http://www.petalslink.com</organizationUrl>
      <roles>
        <role>Maven Reviewer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>Nicolas ODDOUX</name>
      <email>nicolas.oddoux@petalslink.com</email>
      <id>noddoux</id>
      <organization>Petals Link</organization>
      <organizationUrl>http://www.petalslink.com</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>vincent ZURCZAK</name>
      <email>vincent.zurczak@petalslink.com</email>
      <id>vzurczak</id>
      <organization>Petals Link</organization>
      <organizationUrl>http://www.petalslink.com</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
  </developers>
  <!-- ============ -->
  <!-- Contributors -->
  <!-- ============ -->
  <contributors>
    <contributor>
      <name>Frederic GARDES</name>
      <email>frederic.gardes@orange-ftgroup.com</email>
      <organization>Orange France Telecom</organization>
      <organizationUrl>
				http://www.orange.com/fr_FR/
			</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+1</timezone>
    </contributor>
  </contributors>
  <!-- ========== -->
  <!-- Properties -->
  <!-- ========== -->
  <properties>
    <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
  
    <eclipse.shortGroupId>petals</eclipse.shortGroupId>
    <cobertura.version>2.0-beta1</cobertura.version>
    <site.version>2.0-beta-4</site.version>
    <mprojectinfo.version>2.0-beta-3</mprojectinfo.version>
    <umlgraph.version>4.6</umlgraph.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    
    <maven-enforcer-plugin.rules.scm>true</maven-enforcer-plugin.rules.scm>
    <maven-enforcer-plugin.rules.dependency>true</maven-enforcer-plugin.rules.dependency>
    <maven-enforcer-plugin.rules.bannedDependencies>true</maven-enforcer-plugin.rules.bannedDependencies>
    <maven-enforcer-plugin.rules.upperBound>true</maven-enforcer-plugin.rules.upperBound>
    <duplicate-finder.fail>true</duplicate-finder.fail>
      <maven-dependency-plugin.ignoreNonCompile>false</maven-dependency-plugin.ignoreNonCompile>
      <maven-dependency-plugin.failOnWarning>true</maven-dependency-plugin.failOnWarning>

      <java-version>1.7</java-version>
      <java-short-version>7</java-short-version>
      <maven.compiler.source>${java-version}</maven.compiler.source>
      <maven.compiler.target>${java-version}</maven.compiler.target>
      <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
      <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
    
    <commons-lang.version>2.4</commons-lang.version>
    <commons-io.version>2.2</commons-io.version>
    <commons-pool.version>1.6</commons-pool.version>
    <jaxb2-basics.version>0.9.4</jaxb2-basics.version>
    <activation.version>1.1.1</activation.version>

      <sonar.host.url>http://sonar.petalslink.com</sonar.host.url>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
         <groupId>com.sun.mail</groupId>
         <artifactId>javax.mail</artifactId>
         <version>1.5.2</version>
      </dependency>
      <dependency>
         <groupId>javax.activation</groupId>
         <artifactId>activation</artifactId>
         <version>${activation.version}</version>
      </dependency>
      <dependency>
         <groupId>commons-cli</groupId>
         <artifactId>commons-cli</artifactId>
         <version>1.2</version>
      </dependency>
      <dependency>
         <groupId>jline</groupId>
         <artifactId>jline</artifactId>
         <version>2.6</version>
      </dependency>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>${commons-io.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>${commons-lang.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-pool</groupId>
        <artifactId>commons-pool</artifactId>
        <version>${commons-pool.version}</version>
      </dependency>
      <dependency>
        <groupId>org.easymock</groupId>
        <artifactId>easymock</artifactId>
        <version>2.4</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.easymock</groupId>
        <artifactId>easymockclassextension</artifactId>
        <version>2.4</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.11</version>
      </dependency>
      <dependency>
        <groupId>junit-addons</groupId>
        <artifactId>junit-addons</artifactId>
        <version>1.4</version>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>1.8.5</version>
      </dependency>
      <dependency>
         <groupId>com.sun.xml.bind</groupId>
         <artifactId>jaxb-xjc</artifactId>
	     <version>2.2.4-1</version>
      </dependency>
      <dependency>
         <groupId>com.sun.xml.bind</groupId>
         <artifactId>jaxb-impl</artifactId>
         <version>2.2.4-1</version>
         <exclusions>
            <exclusion>
               <!-- Already in Java 7 -->
               <artifactId>jaxb-api</artifactId>
               <groupId>javax.xml.bind</groupId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.jvnet.jaxb2_commons</groupId>
         <artifactId>jaxb2-basics-runtime</artifactId>
         <version>${jaxb2-basics.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <!-- =================== -->
  <!-- Build Specification -->
  <!-- =================== -->
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>buildnumber-maven-plugin</artifactId>
        <version>1.0</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>create</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <items>
            <item>timestamp</item>
          </items>
          <doCheck>false</doCheck>
          <doUpdate>false</doUpdate>
          <revisionOnScmFailure>undefined</revisionOnScmFailure>
        </configuration>
      </plugin>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
         <version>1.4</version>
         <dependencies>
            <dependency>
               <groupId>org.ow2.petals</groupId>
               <artifactId>petals-enforcer-rules</artifactId>
               <version>1.0.5</version>
            </dependency>
            <dependency>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>extra-enforcer-rules</artifactId>
               <version>1.0-beta-3</version>
            </dependency>
         </dependencies>
         <executions>
            <execution>
               <id>enforce-java</id>
               <goals>
                  <goal>enforce</goal>
               </goals>
               <configuration>
                  <rules>
                     <requireJavaVersion>
                        <version>[1.7,)</version>
                        <message>Uses Java 7 as it is the Petals supported Java and a different version can badly interacts
                           with some of the Maven Plugin used.</message>
                     </requireJavaVersion>
                     <enforceBytecodeVersion>
                        <maxJdkVersion>1.7</maxJdkVersion>
                     </enforceBytecodeVersion>
                  </rules>
               </configuration>
            </execution>
            <execution>
               <id>enforce-petals-dedicated</id>
               <goals>
                  <goal>enforce</goal>
               </goals>
               <configuration>
                  <rules>
                     <ScmConnectionMustMatchSvnEntriesIfAny implementation="org.ow2.petals.development.enforcer.rules.ScmConnectionMustMatchRealScmUrlIfAny">
                        <shouldIFail>${maven-enforcer-plugin.rules.scm}</shouldIFail>
                     </ScmConnectionMustMatchSvnEntriesIfAny>
                     <ScmDevelopperConnectionMustMatchSvnEntriesIfAny implementation="org.ow2.petals.development.enforcer.rules.ScmDeveloperConnectionMustMatchRealScmUrlIfAny">
                        <shouldIFail>${maven-enforcer-plugin.rules.scm}</shouldIFail>
                     </ScmDevelopperConnectionMustMatchSvnEntriesIfAny>
                  </rules>
               </configuration>
            </execution>
            <execution>
               <id>enforce-no-shapshots-when-release</id>
               <goals>
                  <goal>enforce</goal>
               </goals>
               <configuration>
                  <rules>
                     <requireReleaseDeps>
                        <message>No Snapshots allowed when doing a Release</message>
                        <onlyWhenRelease>true</onlyWhenRelease>
                     </requireReleaseDeps>
                  </rules>
               </configuration>
            </execution>
            <execution>
               <id>enforce-java7-banned-deps</id>
               <goals>
                  <goal>enforce</goal>
               </goals>
               <configuration>
                  <fail>${maven-enforcer-plugin.rules.bannedDependencies}</fail>
                  <rules>
                     <bannedDependencies>
                        <excludes>
                           <!-- We don't exclude this one because we need it
                                 because of https://bugs.openjdk.java.net/browse/JDK-7096063
                                 See also petals-jbi pom which introduces the dependency -->
                           <!-- exclude>javax.activation:activation</exclude-->
                           <exclude>org.apache.geronimo.specs:geronimo-activation_1.0.2_spec</exclude>
                           <exclude>org.apache.geronimo.specs:geronimo-activation_1.1_spec</exclude>
                           
                           <exclude>org.apache.geronimo.specs:geronimo-annotation_1.0_spec</exclude>
                           
                           <exclude>org.apache.geronimo.specs:geronimo-jaxws_2.1_spec</exclude>
                           <exclude>org.apache.geronimo.specs:geronimo-jaxws_2.2_spec</exclude>
                           
                           <exclude>org.apache.geronimo.specs:geronimo-saaj_1.1_spec</exclude>
                           <exclude>org.apache.geronimo.specs:geronimo-saaj_1.3_spec</exclude>
                           <exclude>javax.xml.soap:saaj-api</exclude>
                           <exclude>com.sun.xml.messaging.saaj:saaj-impl</exclude>
                           
                           <exclude>org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec</exclude>
   
                           <exclude>xerces:xercesImpl</exclude>
                           <exclude>xerces:xmlParserAPIs</exclude>
                           
                           <exclude>org.apache.xerces:xml-apis</exclude>
                           <exclude>xml-apis:xml-apis</exclude>
                           
                           <exclude>org.apache.geronimo.specs:geronimo-stax-api_1.0_spec</exclude>
                           <exclude>org.apache.geronimo.specs:geronimo-stax-api_1.2_spec</exclude>
                           <exclude>javax.xml.bind:jsr173_api</exclude>
                           <exclude>stax:stax-api</exclude>
                           <exclude>javax.xml.stream:stax-api</exclude>
                           
                           <exclude>org.apache.xalan:xalan</exclude>
                           <exclude>xalan:xalan</exclude>
                           
                           <exclude>javax.xml.bind:jaxb-api</exclude>
                        </excludes>
   
                        <message>These dependencies are already present in Java 7</message>
                     </bannedDependencies>
                  </rules>
               </configuration>
            </execution>
            <execution>
               <id>enforce-ebm-banned-deps</id>
               <goals>
                  <goal>enforce</goal>
               </goals>
               <configuration>
                  <rules>
                     <bannedDependencies>
                        <excludes>
                           <exclude>com.ebmwebsourcing.easycommons</exclude>
                        </excludes>
   
                        <message>These dependencies were migrated to org.ow2.easycommons. Exclude them and add explicit
                           dependency to the correct one in your project.</message>
                     </bannedDependencies>
                  </rules>
               </configuration>
            </execution>
            <execution>
               <id>enforce-no-circular-deps</id>
               <goals>
                  <goal>enforce</goal>
               </goals>
               <configuration>
                  <rules>
                     <banCircularDependencies />
                  </rules>
               </configuration>
            </execution>
            <execution>
               <id>enforce-petals-dedicated-deps</id>
               <goals>
                  <goal>enforce</goal>
               </goals>
               <configuration>
                  <fail>${maven-enforcer-plugin.rules.dependency}</fail>
                  <rules>
                     <DependencyConvergence />
                  </rules>
               </configuration>
            </execution>
            <execution>
               <id>enforce-upper-bound-deps</id>
               <goals>
                  <goal>enforce</goal>
               </goals>
               <configuration>
                  <fail>${maven-enforcer-plugin.rules.upperBound}</fail>
                  <rules>
                     <requireUpperBoundDeps />
                  </rules>
               </configuration>
            </execution>
         </executions>
      </plugin>
      <plugin>
         <groupId>org.basepom.maven</groupId>
         <artifactId>duplicate-finder-maven-plugin</artifactId>
         <version>1.2.0</version>
         <executions>
            <execution>
               <id>enforce-no-duplicate-classes</id>
               <goals>
                  <goal>check</goal>
               </goals>
               <configuration>
                  <failBuildInCaseOfDifferentContentConflict>${duplicate-finder.fail}</failBuildInCaseOfDifferentContentConflict>
                  <!-- Disable for now, too much errors -->
                  <!--includeBootClasspath>true</includeBootClasspath-->
                  <printEqualFiles>true</printEqualFiles>
                  <ignoredResourcePatterns>
                     <!-- No need to worry about jaxb2 binding files, they are used by maven-jaxb2-plugin only -->
                     <ignoredResourcePattern>.*\.xjb$</ignoredResourcePattern>
                     <!-- neither catalog files, they are used by maven-jaxb2-plugin only (to be on the safe side, we don't ignore ALL .cat files) -->
                     <ignoredResourcePattern>(.*/)?catalog\.cat$</ignoredResourcePattern>
                     <!-- Some dependencies have these in duplicates, it's not important -->
                     <ignoredResourcePattern>.*about\.html$</ignoredResourcePattern>
                  </ignoredResourcePatterns>
                  <exceptions>
                     <exception>
                        <conflictingDependencies>
                           <dependency>
                              <groupId>org.ow2.petals</groupId>
                              <artifactId>jbi-adapter-impl</artifactId>
                              <type>test-jar</type>
                              <scope>test</scope>
                           </dependency>
                        </conflictingDependencies>
                        <!-- Current project is the actual project being checked, not this parent pom -->
                        <currentProject>true</currentProject>
                        <resources>
                           <!-- This is needed in jbi-adapter-impl but it is present in BC and SE also
                                 and their tests need jbi-adapter-impl
                                TODO remove the file from jbi-adapter-impl if possible
                                this threatens the stability of the test if the wrong jbi.xml is used -->
                           <resource>/jbi/jbi.xml</resource>
                        </resources>
                     </exception>
                     <exception>
                        <conflictingDependencies>
                           <dependency>
                              <groupId>org.ow2.petals</groupId>
                              <artifactId>petals-cdk-junit</artifactId>
                              <scope>test</scope>
                           </dependency>
                        </conflictingDependencies>
                        <!-- Current project is the actual project being checked, not this parent pom -->
                        <currentProject>true</currentProject>
                        <resources>
                           <!-- It makes sense to override it for tests -->
                           <resource>/logging.properties</resource>
                        </resources>
                     </exception>
                  </exceptions>
               </configuration>
            </execution>
         </executions>
      </plugin>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-dependency-plugin</artifactId>
         <version>2.10</version>
         <executions>
            <execution>
               <id>analyze</id>
               <phase>process-test-classes</phase>
               <goals>
                  <!-- analyze-only uses the compiled classes (analyze will compile then itself!) -->
                  <goal>analyze-only</goal>
               </goals>
               <configuration>
                  <ignoreNonCompile>${maven-dependency-plugin.ignoreNonCompile}</ignoreNonCompile>
                  <failOnWarning>${maven-dependency-plugin.failOnWarning}</failOnWarning>
               </configuration>
            </execution>
         </executions>
      </plugin>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
         <version>2.15</version>
         <executions>
            <execution>
               <id>check-header</id>
               <!-- let's do it at validate to prevent generated sources to be covered -->
               <phase>validate</phase>
               <goals>
                  <goal>check</goal>
               </goals>
               <configuration>
                  <configLocation>petals-checkstyle-rules.xml</configLocation>
                  <headerLocation>petals-header-regexp-file.txt</headerLocation>
                  
                  <consoleOutput>true</consoleOutput>
                  <logViolationsToConsole>true</logViolationsToConsole>
                  
                  <includeTestSourceDirectory>true</includeTestSourceDirectory>
                  
                  <!-- TODO activate for all resources -->
                  <resourceIncludes>**/*</resourceIncludes>
                  <includeResources>false</includeResources>
                  <includeTestResources>false</includeTestResources>
               </configuration>
            </execution>
         </executions>
        <dependencies>
          <dependency>
            <groupId>org.ow2.petals</groupId>
            <artifactId>petals-checkstyle-rules</artifactId>
            <version>1.0.1</version>
          </dependency>
          <dependency>
              <!-- Latest version -->
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>6.6</version>
            </dependency>
        </dependencies>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <plugin>
           <artifactId>maven-deploy-plugin</artifactId>
           <version>2.8.2</version>
           <configuration>
               <!-- Sometimes ow2 servers have problems and retry is needed -->
               <retryFailedDeploymentCount>3</retryFailedDeploymentCount>
               <!-- In case of multimodule build, let's deploy all in one go at the end to prevent half of the artefacts being deployed -->
               <!-- Disabled for now because of: https://issues.apache.org/jira/browse/MDEPLOY-200 -->
               <!--deployAtEnd>true</deployAtEnd-->
           </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>${maven-assembly-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.7</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.2</version>
        </plugin>
        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-resources-plugin</artifactId>
           <version>2.7</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.18</version>
          <configuration>
            <enableAssertions>true</enableAssertions>
            <trimStackTrace>false</trimStackTrace>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.3.2</version>
          <configuration>
             <archive>
               <manifest>
                 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
               </manifest>
               <manifestEntries>
                 <Built-Date>${maven.build.timestamp}</Built-Date>
                 <SCM-Revision>${buildNumber}</SCM-Revision>
                 <SCM-Connection>${project.scm.connection}</SCM-Connection>
               </manifestEntries>
             </archive>
          </configuration>
          <executions>
            <execution>
               <!-- Add the execution of the maven-jar-plugin on test classes -->
               <id>test-jar</id>
               <goals>
                  <goal>test-jar</goal>
               </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.jvnet.jaxb2.maven2</groupId>
          <artifactId>maven-jaxb2-plugin</artifactId>
          <version>0.13.0</version>
          <executions>
            <execution>
              <id>generate</id>
              <goals>
                <goal>generate</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <extension>true</extension>
            <args>
              <arg>-XtoString</arg>
              <arg>-Xequals</arg>
              <arg>-XhashCode</arg>
              <arg>-Xcopyable</arg>
            </args>
            <plugins>
              <plugin>
                <groupId>org.jvnet.jaxb2_commons</groupId>
                <artifactId>jaxb2-basics</artifactId>
                <version>${jaxb2-basics.version}</version>
              </plugin>
            </plugins>
          </configuration>
        </plugin>
            <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>sonar-maven-plugin</artifactId>
               <version>2.6</version>
            </plugin>
            <plugin>
               <groupId>org.jacoco</groupId>
               <artifactId>jacoco-maven-plugin</artifactId>
               <version>0.7.5.201505241946 </version>
               <executions>
                  <execution>
                     <!-- This activates the use of jacoco for recording unit test coverage -->
                     <id>prepare-agent</id>
                     <goals>
                        <goal>prepare-agent</goal>
                     </goals>
                  </execution>
                  <execution>
                     <!-- This activates the use of jacoco for recording integration test coverage -->
                     <id>prepare-agent-integration</id>
                     <goals>
                        <goal>prepare-agent-integration</goal>
                     </goals>
                  </execution>
               </executions>
            </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>1.9.1</version>
        </plugin>
         <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-checkstyle-plugin</artifactId>
                           <versionRange>[2.15,)</versionRange>
                           <goals>
                              <goal>check</goal>
                           </goals>
                        </pluginExecutionFilter>
                        <action>
                             <!-- TODO: Change to execute when Eclipse stops
                                  complaining about files in generated sources
                                  See: https://github.com/m2e-code-quality/m2e-code-quality/issues/72
                                  and also https://github.com/m2e-code-quality/m2e-code-quality/issues/71
                                  and https://github.com/m2e-code-quality/m2e-code-quality/pull/55 -->
                           <ignore />
                        </action>
                     </pluginExecution>
                     <pluginExecution>
                        <pluginExecutionFilter>
                           <groupId>org.apache.maven.plugins</groupId>
                           <artifactId>maven-dependency-plugin</artifactId>
                           <versionRange>[2.0,)</versionRange>
                           <goals>
                              <goal>analyze-only</goal>
                           </goals>
                        </pluginExecutionFilter>
                        <action>
                             <!-- TODO: Change to execute when Eclipse stops
                                  complaining differently than command-line -->
                           <ignore />
                        </action>
                     </pluginExecution>
                     <pluginExecution>
                        <pluginExecutionFilter>
                           <groupId>org.basepom.maven</groupId>
                           <artifactId>duplicate-finder-maven-plugin</artifactId>
                           <versionRange>[1.1.1,)</versionRange>
                           <goals>
                              <goal>check</goal>
                           </goals>
                        </pluginExecutionFilter>
                        <action>
                           <ignore />
                        </action>
                     </pluginExecution>
                     <pluginExecution>
                        <pluginExecutionFilter>
                           <groupId>org.jacoco</groupId>
                           <artifactId>jacoco-maven-plugin</artifactId>
                           <versionRange>[0.7.2.201409121644,)</versionRange>
                           <goals>
                              <goal>prepare-agent</goal>
                           </goals>
                        </pluginExecutionFilter>
                        <action>
                           <ignore />
                        </action>
                     </pluginExecution>
                  </pluginExecutions>
               </lifecycleMappingMetadata>
            </configuration>
         </plugin>
      </plugins>
    </pluginManagement>
    <defaultGoal>install</defaultGoal>
  </build>
  
  <scm>
    <connection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-root-parent-20.2.4</connection>
    <developerConnection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-root-parent-20.2.4</developerConnection>
    <url>http://gitorious.ow2.org/ow2/pom/petals-parent/tags/petals-root-parent-20.2.4</url>
  </scm>
  
  <profiles>
    <!-- More flexible on tests -->
  	<profile>
		<id>skip-test-profile</id>
		<activation>
			<property>
				<name>maven.test.skip</name>
				<value>true</value>
			</property>
		</activation>
      <properties>
         <maven-dependency-plugin.ignoreNonCompile>true</maven-dependency-plugin.ignoreNonCompile>
         <maven-dependency-plugin.failOnWarning>true</maven-dependency-plugin.failOnWarning>
      </properties>
	</profile>
  
   <!-- Prepare release profile -->
   <profile>
      <id>prepare-release-profile</id>
      <properties>
         <!-- SCM enforcer rules MUST be disabled during the maven-release-prepare because SCM URL are updated according
              to the tag, but in the current branch working area, before to create the tag -->
         <maven-enforcer-plugin.rules.scm>false</maven-enforcer-plugin.rules.scm>
      </properties>
   </profile>
   
      <profile>
         <!-- Continuous integration profile -->
         <id>ci-profile</id>
         <build>
            <plugins>
               <plugin>
                  <!-- This cleans the local repository by removing old snapshots -->
                  <groupId>ch.ringler.tools</groupId>
                  <artifactId>m2cachecleanup</artifactId>
                  <version>1.0.4</version>
                  <executions>
                     <execution>
                        <id>cleanup-local-repository</id>
                        <phase>clean</phase>
                        <goals>
                           <goal>cleanup-cache</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>
   </profiles>
</project>
