<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2011 Talend Inc. - www.talend.com All rights reserved. 
	This program and the accompanying materials are made available under the 
	terms of the Apache License v2.0 which accompanies this distribution, and 
	is available at http://www.apache.org/licenses/LICENSE-2.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">
	<modelVersion>4.0.0</modelVersion>

	<groupId>org.talend.esb</groupId>
	<artifactId>esb-parent</artifactId>
	<packaging>pom</packaging>
	<version>4.2</version>
	<name>Parent pom for the Talend ESB runtime project</name>
	<description>
        Talend ESB SE bundles Service Factory and Integration Factory, 
        Service Locator, Service Activity Monitoring and a demo application 
        to a stable, production ready distribution based on the industry leading 
        open source frameworks Apache CXF and Apache Camel. 
        It includes Web Service support based on JAX-WS and enables simple and scalable
        message based systems using well known Enterprise Integration Patterns.
        The Service Locator maintains a repository of service endpoints which 
        can be used by Service Consumers to support simple failover and load 
        balancing scenarios. Service Activity Monitoring allows to log and 
        monitor service calls. A documented Car Rental demo application illustrates
        how to use these features. 
	</description>

	<organization>
		<name>Talend Inc.</name>
		<url>www.talend.com</url>
	</organization>
	<inceptionYear>2011</inceptionYear>
    <url>http://talend.com</url>

	<licenses>
		<license>
			<name>Apache Software License - Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
	</licenses>
	
    <issueManagement>
        <system>Jira</system>
        <url>https://jira.sopera.de/browse/TESB</url>
    </issueManagement>

    <scm>
        <connection>scm:git:git@github.com:Talend/tesb-rt-se.git</connection>
        <developerConnection>scm:git:git@github.com:Talend/tesb-rt-se.git</developerConnection>
        <url>https://github.com/Talend/tesb-rt-se</url>
    </scm>

    <developers>
        <developer>
            <id>vromaniuk</id>
            <name>Volodymyr Romaniuk</name>
            <email>vromaniuk@talend.com</email>
            <timezone>GMT+2</timezone>
        </developer>
        <developer>
            <id>mirom</id>
            <name>Roman Minko</name>
            <email>rnminko@gmail.com</email>
            <timezone>GMT+2</timezone>
        </developer>
        <developer>
            <id>aosadchiy</id>
            <name>Alexander Osadchiy</name>
            <email>Alexander.G.Osadchiy@gmail.com</email>
            <timezone>GMT+2</timezone>
        </developer>
        <developer>
            <id>xldai</id>
            <name>Xilai Dai</name>
            <email>xldai@talend.com</email>
            <timezone>GMT+8</timezone>
        </developer>
        <developer>
            <id>ilazebny</id>
            <name>Igor Lazebny</name>
            <email>ilazebny@talend.com</email>
            <timezone>GMT+2</timezone>
        </developer>
    </developers>
    
	<properties>
		<cxf.version>2.4.1</cxf.version>
		<spring.version>3.0.5.RELEASE</spring.version>
		<zookeeper.version>3.3.3</zookeeper.version>
		<derby.version>10.8.1.2</derby.version>
		<bnd.version>1.15.0</bnd.version>
		<slf4j.version>1.6.0</slf4j.version>
		<osgi.version>4.2.0</osgi.version>
		<commons-lang.version>2.4</commons-lang.version>
		<commons-jxpath.version>1.3</commons-jxpath.version>
        <dom4j.bundle.version>1.6.1_3</dom4j.bundle.version>
        <jaxen.bundle.version>1.1.1_2</jaxen.bundle.version>
        <servicemix.specs.version>1.7.0</servicemix.specs.version>
        <saaj-impl.bundle.version>1.3.2_2</saaj-impl.bundle.version>
        <cxf.build-utils.version>2.3.2</cxf.build-utils.version>
        <cxf.resources.base.path />
        <cxf.checkstyle.extension />

		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<modules>
		<module>branding</module>
		<module>locator</module>
		<module>sam</module>
		<module>job</module>
		<module>features</module>
	</modules>

	<dependencyManagement>
		<dependencies>
			<!-- Test dependencies -->
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.8.2</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.easymock</groupId>
				<artifactId>easymock</artifactId>
				<version>3.0</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.hamcrest</groupId>
				<artifactId>hamcrest-core</artifactId>
				<version>1.3.RC2</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.hamcrest</groupId>
				<artifactId>hamcrest-library</artifactId>
				<version>1.3.RC2</version>
 	 			<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<defaultGoal>install</defaultGoal>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>2.3.2</version>
					<configuration>
						<source>1.6</source>
						<target>1.6</target>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-eclipse-plugin</artifactId>
					<version>2.8</version>
					<configuration>
						<downloadSources>true</downloadSources>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.felix</groupId>
					<artifactId>maven-bundle-plugin</artifactId>
					<version>2.3.4</version>
					<extensions>true</extensions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-war-plugin</artifactId>
					<version>2.1.1</version>
					<configuration>
						<webResources>
							<resource>
								<directory>${project.build.directory}</directory>
								<includes>
									<include>LICENSE.txt</include>
								</includes>
							</resource>
						</webResources>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.cxf</groupId>
					<artifactId>cxf-codegen-plugin</artifactId>
					<version>${cxf.version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>2.2</version>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>1.2</version>
				</plugin>
				<plugin>
					<groupId>org.apache.rat</groupId>
					<artifactId>apache-rat-plugin</artifactId>
					<version>0.7</version>
					<configuration>
						<numUnapprovedLicenses>350</numUnapprovedLicenses>
						<excludeSubProjects>false</excludeSubProjects>
						<excludes>
							<exclude>.git/**</exclude>
							<exclude>.gitignore</exclude>
							<exclude>velocity.log</exclude>
							<exclude>**/target/**</exclude>
							<exclude>distribution/**</exclude>
							<exclude>**/jaxb.index</exclude>
							<exclude>**/META-INF/MANIFEST</exclude>
							<exclude>**/src/test/**/*.txt</exclude>
							<exclude>**/.classpath</exclude>
							<exclude>**/.settings/**/*</exclude>
							<exclude>**/.project</exclude>
						</excludes>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>license-maven-plugin</artifactId>
					<version>1.0-beta-2</version>
					<configuration>
						<licenseName>apache_v2</licenseName>
						<licenseFile>${project.build.directory}/LICENSE.txt</licenseFile>
						<outputDirectory>${project.build.directory}</outputDirectory>
						<thirdPartyFilename>TESBDEPENDENCIES.txt</thirdPartyFilename>
						<groupByLicense>true</groupByLicense>
						<licenseMerges>
							<licenseMerge>The Apache Software License, Version 2.0|Apache
								Software License - Version 2.0|Apache License|Apache 2</licenseMerge>
							<licenseMerge>BSD License|BSD|BSD license|The BSD License</licenseMerge>
							<licenseMerge>COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL)
								Version 1.0|CDDL License|CDDL 1.0|Common Development and
								Distribution License (CDDL) v1.0</licenseMerge>
							<licenseMerge>Common Public License Version 1.0|CPL</licenseMerge>
						</licenseMerges>
						<excludedGroups>org.talend.esb|org.codehaus.jettison</excludedGroups>
						<missingFile>./THIRD-PARTY.properties</missingFile>
						<useMissingFile>true</useMissingFile>
					</configuration>
					<executions>
						<execution>
							<goals>
								<goal>update-project-license</goal>
								<!-- goal>aggregate-add-third-party</goal-->
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-resources-plugin</artifactId>
					<version>2.5</version>
				</plugin>
				<plugin>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jetty-maven-plugin</artifactId>
					<version>8.0.0.M2</version>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
					<version>1.5</version>
				</plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.0-beta-3</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.apache.cxf.build-utils</groupId>
                            <artifactId>cxf-buildtools</artifactId>
                            <version>${cxf.build-utils.version}</version>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <reportPlugins>
							<plugin>
								<groupId>org.apache.maven.plugins</groupId>
								<artifactId>maven-project-info-reports-plugin</artifactId>
								<version>2.2</version>
								<configuration>
									<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
									<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
								</configuration>
							</plugin>
							<plugin>
								<groupId>org.apache.maven.plugins</groupId>
								<artifactId>maven-surefire-report-plugin</artifactId>
								<version>2.8.1</version>
							</plugin>
                            <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>cobertura-maven-plugin</artifactId>
                                <version>2.3</version>
                                <configuration>
                                    <aggregate>true</aggregate>
                                    <outputDirectory>${project.reporting.outputDirectory}/cobertura</outputDirectory>
									<formats>
										<format>html</format>
										<format>xml</format>
									</formats>
                                </configuration>
                            </plugin>
                            <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jxr-plugin</artifactId>
                                <version>2.2</version>
                                <configuration>
                                    <aggregate>true</aggregate>
                                </configuration>
                            </plugin>
                            <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-pmd-plugin</artifactId>
                                <version>2.5</version>
                                <configuration>
                                    <rulesets>
                                        <ruleset>${cxf.resources.base.path}cxf-pmd-ruleset.xml</ruleset>
                                        <ruleset>${cxf.resources.base.path}cxf-pmd-custom.xml</ruleset>
                                    </rulesets>
                                    <aggregate>true</aggregate>
                                    <targetJdk>1.6</targetJdk>
                                </configuration>
                            </plugin>
                            <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-checkstyle-plugin</artifactId>
                                <version>2.6</version>
                                <configuration>
                                    <configLocation>${cxf.resources.base.path}cxf-checkstyle${cxf.checkstyle.extension}.xml</configLocation>
                                    <suppressionsLocation>${cxf.resources.base.path}cxf-checkstyle-suppressions.xml</suppressionsLocation>
                                    <!--failsOnError>true</failsOnError-->
                                    <!-- http://jira.codehaus.org/browse/MCHECKSTYLE-62 -->
                                    <!--aggregate>true</aggregate-->
                                </configuration>
                            </plugin>
                        </reportPlugins>
                    </configuration>
                </plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.8.1</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>2.6</version>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>license-maven-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
			</plugin>
		</plugins>
	</build>

	<repositories>
		<repository>
			<id>apache-snapshots</id>
			<url>http://repository.apache.org/snapshots</url>
			<name>Apache Snapshots Repo</name>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>false</enabled>
			</releases>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>apache-snapshots</id>
			<url>http://repository.apache.org/snapshots</url>
			<name>Apache Snapshots Repo</name>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>false</enabled>
			</releases>
		</pluginRepository>
	</pluginRepositories>

	<distributionManagement>
		<repository>
			<id>esb-releases</id>
			<name>ESB releases Repository</name>
			<url>${esb.snapshots.repo.url}</url>
		</repository>
		<snapshotRepository>
			<id>esb-snapshots</id>
			<name>ESB snapshots Repository</name>
			<url>${esb.snapshots.repo.url}</url>
		</snapshotRepository>
	</distributionManagement>

	<profiles>
		<profile>
			<id>packaging</id>
			<modules>
				<module>talend-esb</module>
			</modules>
		</profile>
	</profiles>

</project>
