<?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>

  <parent>
    <groupId>org.ow2.petals</groupId>
    <artifactId>petals-root-parent</artifactId>
    <version>20.2.4</version>
    <relativePath>../root-parent/pom.xml</relativePath>
  </parent>

  <name>Petals ESB - Parent POM</name>
  <groupId>org.ow2.petals</groupId>
  <artifactId>petals-parent</artifactId>
  <packaging>pom</packaging>
  <version>20.2.3</version>

   <properties>
      <easycommons-lang.version>1.4.0</easycommons-lang.version>
      <easycommons-properties.version>1.2.0</easycommons-properties.version>
      <easycommons-util.version>2.3.0</easycommons-util.version>
      <easycommons-thread.version>1.2.0</easycommons-thread.version>
      <easycommons-io.version>1.2.2</easycommons-io.version>
      <easycommons-stream.version>1.2.0</easycommons-stream.version>
      <easycommons-uuid.version>1.2.0</easycommons-uuid.version>
      <easycommons-datetime.version>1.2.0</easycommons-datetime.version>
      <easywsdl-ext-wsdl4complexwsdl.version>2.6.0</easywsdl-ext-wsdl4complexwsdl.version>
   </properties>

   <dependencies>
      <dependency>
      <!-- Adding the dependency Junit forces developpers to write unit tests. If no unit test exists
           in project, an error is thrown because the junit dependency is declared and not used. -->
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <!-- Provides the JUnitListener used by surefire below -->
         <groupId>org.codehaus.sonar-plugins.java</groupId>
         <artifactId>sonar-jacoco-listeners</artifactId>
         <version>3.1</version>
         <scope>test</scope>
      </dependency>
   </dependencies>

   <dependencyManagement>
      <dependencies>
         <dependency>
            <groupId>org.ow2.easycommons</groupId>
            <artifactId>easycommons-lang</artifactId>
            <version>${easycommons-lang.version}</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easycommons</groupId>
            <artifactId>easycommons-properties</artifactId>
            <version>${easycommons-properties.version}</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easycommons</groupId>
            <artifactId>easycommons-thread</artifactId>
            <version>${easycommons-thread.version}</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easycommons</groupId>
            <artifactId>easycommons-uuid</artifactId>
            <version>${easycommons-uuid.version}</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easycommons</groupId>
            <artifactId>easycommons-datetime</artifactId>
            <version>${easycommons-datetime.version}</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easycommons</groupId>
            <artifactId>easycommons-stream</artifactId>
            <version>${easycommons-stream.version}</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easycommons</groupId>
            <artifactId>easycommons-io</artifactId>
            <version>${easycommons-io.version}</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easycommons</groupId>
            <artifactId>easycommons-util</artifactId>
            <version>${easycommons-util.version}</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easywsdl</groupId>
            <artifactId>easywsdl-wsdl</artifactId>
            <version>2.6.0</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easywsdl</groupId>
            <artifactId>easywsdl-schema</artifactId>
            <version>2.6.0</version>
         </dependency>
         <dependency>
            <groupId>org.ow2.easywsdl</groupId>
            <artifactId>easywsdl-ext-wsdl4complexwsdl</artifactId>
            <version>${easywsdl-ext-wsdl4complexwsdl.version}</version>
         </dependency>
      </dependencies>
   </dependencyManagement>

   <build>
      <pluginManagement>
         <plugins>
            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-surefire-plugin</artifactId>
               <configuration>
                  <properties>
                     <property>
                        <!-- Have jacoco record per-test coverage (on top of default per-file coverage) -->
                        <name>listener</name>
                        <value>org.sonar.java.jacoco.JUnitListener</value>
                     </property>
                  </properties>
               </configuration>
            </plugin>
            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-failsafe-plugin</artifactId>
               <version>2.18.1</version>
               <configuration>
                  <properties>
                     <property>
                        <!-- Have jacoco record per-test coverage (on top of default per-file coverage) -->
                        <name>listener</name>
                        <value>org.sonar.java.jacoco.JUnitListener</value>
                     </property>
                  </properties>
               </configuration>
               <executions>
                  <execution>
                     <!-- maven-failsafe-plugin is not automatically bound to its phases like failsafe -->
                     <id>integration-test</id>
                     <goals>
                        <goal>integration-test</goal>
                        <!-- Note that the last phase is verify in order for
                              the post-integration-test phase to be run before
                              doing last checks -->
                        <goal>verify</goal>
                     </goals>
                  </execution>
               </executions>
            </plugin>
         </plugins>
      </pluginManagement>
      
      <plugins>
         <plugin>
            <!-- Let's activate jacoco for unit test coverage -->
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
               <execution>
                  <id>analyze</id>
                  <configuration>
                     <ignoredUnusedDeclaredDependencies>
                        <!-- Let's ignore that because it is used at runtime by surefire -->
                        <ignoredUnusedDeclaredDependency>org.codehaus.sonar-plugins.java:sonar-jacoco-listeners</ignoredUnusedDeclaredDependency>
                        <ignoredUnusedDeclaredDependency>org.slf4j:slf4j-jdk14</ignoredUnusedDeclaredDependency>
                     </ignoredUnusedDeclaredDependencies>
                  </configuration>
               </execution>
            </executions>
         </plugin>
      </plugins>
   </build>
   
  <scm>
    <connection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-parent-20.2.3</connection>
    <developerConnection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-parent-20.2.3</developerConnection>
    <url>http://gitorious.ow2.org/ow2/pom/petals-parent/tags/petals-parent-20.2.3</url>
  </scm>
</project>
