<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
	license agreements. See the NOTICE file distributed with this work for additional 
	information regarding copyright ownership. The ASF licenses this file to 
	You under the Apache License, Version 2.0 (the "License"); you may not use 
	this file except in compliance with the License. You may obtain a copy of 
	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
	by applicable law or agreed to in writing, software distributed under the 
	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
	OF ANY KIND, either express or implied. See the License for the specific 
	language governing permissions and limitations under the License. -->
<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>io.atlasmap</groupId>
		<artifactId>atlas</artifactId>
		<version>1.10.0</version>
	<!--
		<groupId>org.apache.camel</groupId>
		<artifactId>components</artifactId>
		<version>2.19.0.fuse-000035</version>
	-->
	</parent>

	<artifactId>camel-atlasmap</artifactId>
	<version>1.10.0</version>
	<packaging>jar</packaging>
	<name>Camel :: AtlasMap</name>
	<description>Camel AtlasMap support</description>
	<properties>
		<camel.osgi.import.before.defaults>com.sun.xml.bind.marshaller;resolution:=optional</camel.osgi.import.before.defaults>
		<camel.osgi.export.pkg>org.apache.camel.converter.atlasmap.*</camel.osgi.export.pkg>
		<camel.osgi.export.service>org.apache.camel.spi.DataFormatResolver;dataformat=atlasmap</camel.osgi.export.service>
		<atlas.version>1.10.0</atlas.version>
		<camel.version>2.19.0.fuse-000035</camel.version>
		<ipaas.connector.version>0.3.2</ipaas.connector.version>
		<jaxb.version>2.2.11</jaxb.version>
		<junit.version>4.12</junit.version>
		<log4j.version>2.8.1</log4j.version>
		<mockito.version>1.10.19</mockito.version>
		<spring.version>4.3.7.RELEASE</spring.version>
		<woodstox.version>4.4.1</woodstox.version>
                <maven-compiler-plugin.version>3.6.1</maven-compiler-plugin.version>
                <maven-dependency-plugin.version>3.0.0</maven-dependency-plugin.version>
                <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
                <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
                <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
                <maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
                <maven-resources-plugin.version>3.0.2</maven-resources-plugin.version>
                <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
                <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
                <nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
	</properties>
        <url>http://www.atlasmap.io</url>
        <inceptionYear>2017</inceptionYear>
        <licenses>
                <license>
                        <name>The Apache Software License, Version 2.0</name>
                        <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
                        <distribution>repo</distribution>
                </license>
        </licenses>
        <developers>
                <developer>
                        <id>mattrpav</id>
                        <name>Matt Pavlovich</name>
                        <email>matt@mediadriver.com</email>
                        <url>http://mediadriver.com</url>
                        <timezone>-6</timezone>
                </developer>
        </developers>
        <scm>
                <url>https://github.com/atlasmap/camel-atlasmap</url>
                <connection>scm:git:git://github.com/atlasmap/camel-atlasmap.git</connection>
                <developerConnection>scm:git:git@github.com:atlasmap/camel-atlasmap.git</developerConnection>
                <tag>1.10.0</tag>
        </scm>

        <distributionManagement>
                <snapshotRepository>
                        <id>ossrh</id>
                        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                </snapshotRepository>
                <repository>
                        <id>ossrh</id>
                        <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
        </distributionManagement>
	<dependencies>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-core</artifactId>
			<version>${camel.version}</version>
		</dependency>
		<dependency>
			<groupId>io.atlasmap</groupId>
			<artifactId>atlas.core</artifactId>
			<version>${atlas.version}</version>
		</dependency>
        <dependency>
            <groupId>io.atlasmap</groupId>
            <artifactId>atlas.java.module</artifactId>
            <version>${atlas.version}</version>
        </dependency>
		<!-- for testing -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${junit.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-test-spring</artifactId>
			<version>${camel.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-core-xml</artifactId>
			<version>${camel.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-spring-javaconfig</artifactId>
			<version>${camel.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-api</artifactId>
			<version>${log4j.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-core</artifactId>
			<version>${log4j.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-slf4j-impl</artifactId>
			<version>${log4j.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.codehaus.woodstox</groupId>
			<artifactId>woodstox-core-asl</artifactId>
			<version>${woodstox.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-core</artifactId>
			<version>${mockito.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<version>${spring.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.redhat.ipaas</groupId>
			<artifactId>twitter-mention-connector</artifactId>
			<version>${ipaas.connector.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.redhat.ipaas</groupId>
			<artifactId>salesforce-upsert-contact-connector</artifactId>
			<version>${ipaas.connector.version}</version>
			<scope>test</scope>
		</dependency>
		
	</dependencies>

	<repositories>
                <repository>
                        <id>osssnap</id>
                        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>
		<repository>
			<id>ossrel</id>
			<url>https://oss.sonatype.org/content/repositories/releases</url>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>apache-snapshots</id>
			<url>https://repository.apache.org/content/repositories/snapshots/</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
		<repository>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<id>ipaas-releases</id>
			<name>ipaas-releases</name>
			<url>https://dl.bintray.com/redhat-ipaas/maven/</url>
		</repository>
		<repository>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<id>jboss.ea</id>
			<name>JBoss EA</name>
			<url>https://repository.jboss.org/nexus/content/groups/ea</url>
		</repository>
	</repositories>

	<profiles>
               <profile>
                        <id>release</id>
                        <build>
                                <plugins>
                                        <plugin>
                                                <artifactId>maven-source-plugin</artifactId>
                                                <executions>
                                                        <execution>
                                                                <id>attach-sources</id>
                                                                <goals>
                                                                        <goal>jar-no-fork</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                        </plugin>
                                        <plugin>
                                                <artifactId>maven-javadoc-plugin</artifactId>
                                                <executions>
                                                        <execution>
                                                                <id>attach-javadocs</id>
                                                                <goals>
                                                                        <goal>jar</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                        </plugin>
                                        <plugin>
                                                <artifactId>maven-gpg-plugin</artifactId>
                                                <executions>
                                                        <execution>
                                                                <id>sign-artifacts</id>
                                                                <phase>verify</phase>
                                                                <goals>
                                                                        <goal>sign</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                        </plugin>                               
                                </plugins>
                        </build>
                </profile>
	</profiles>
	<build>
		<pluginManagement>
                        <plugins>
                                <plugin>
                                        <artifactId>maven-compiler-plugin</artifactId>
                                        <version>${maven-compiler-plugin.version}</version>
                                </plugin>
                                <plugin>
                                        <artifactId>maven-dependency-plugin</artifactId>
                                        <version>${maven-dependency-plugin.version}</version>
                                </plugin>
                                <plugin>
                                        <artifactId>maven-deploy-plugin</artifactId>
                                        <version>${maven-deploy-plugin.version}</version>
                                </plugin>
                                <plugin>
                                        <artifactId>maven-gpg-plugin</artifactId>
                                        <version>${maven-gpg-plugin.version}</version>
                                </plugin>
                                <plugin>
                                        <artifactId>maven-jar-plugin</artifactId>
                                        <version>${maven-jar-plugin.version}</version>
                                </plugin>
                                <plugin>
                                        <artifactId>maven-javadoc-plugin</artifactId>
                                        <version>${maven-javadoc-plugin.version}</version>
                                </plugin>
                                <plugin>
                                        <artifactId>maven-release-plugin</artifactId>
                                        <version>${maven-release-plugin.version}</version>
                                </plugin>
                                <plugin>
                                        <artifactId>maven-resources-plugin</artifactId>
                                        <version>${maven-resources-plugin.version}</version>
                                </plugin>
                                <plugin>
                                        <artifactId>maven-source-plugin</artifactId>
                                        <version>${maven-source-plugin.version}</version>
                                </plugin>
                                <plugin>
                                        <groupId>org.sonatype.plugins</groupId>
                                        <artifactId>nexus-staging-maven-plugin</artifactId>
                                        <version>${nexus-staging-maven-plugin.version}</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.camel
                                                                                </groupId>
                                                                                <artifactId>
                                                                                        camel-package-maven-plugin
                                                                                </artifactId>
                                                                                <versionRange>
                                                                                        [2.19.0.fuse-000035,)
                                                                                </versionRange>
                                                                                <goals>
                                                                                        <goal>
                                                                                                prepare-components
                                                                                        </goal>
                                                                                </goals>
                                                                        </pluginExecutionFilter>
                                                                        <action>
                                                                                <ignore />
                                                                        </action>
                                                                </pluginExecution>
                                                        </pluginExecutions>
                                                </lifecycleMappingMetadata>
                                        </configuration>
                                </plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.19.1</version>
				<configuration>
					<forkCount>1</forkCount>
					<reuseForks>false</reuseForks>
				</configuration>
			</plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-deploy-plugin</artifactId>
                                <configuration>
                                        <skip>false</skip>
                                </configuration>
                        </plugin>
                        <plugin>
                                <artifactId>maven-release-plugin</artifactId>
                                <configuration>
                                        <autoVersionSubmodules>true</autoVersionSubmodules>
                                        <useReleaseProfile>false</useReleaseProfile>
                                        <releaseProfiles>release</releaseProfiles>
                                        <goals>deploy</goals>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.sonatype.plugins</groupId>
                                <artifactId>nexus-staging-maven-plugin</artifactId>
                                <extensions>true</extensions>
                                <configuration>
                                        <serverId>ossrh</serverId>
                                        <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                                        <autoReleaseAfterClose>true</autoReleaseAfterClose>
                                </configuration>
                        </plugin>
                </plugins>
	</build>
</project>
