<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">

	<modelVersion>4.0.0</modelVersion>
	<artifactId>mule-module-ms-dynamics-crm-onpremise</artifactId>
	<packaging>mule-module</packaging>
	<name>Mule MS Dynamics CRM Onpremise Connector</name>

	<parent>
		<groupId>org.mule.modules</groupId>
		<artifactId>mule-module-ms-dynamics-crm</artifactId>
		<version>1.8.2</version>
	</parent>

	<properties>
		<category>Standard</category>
		<licensePath>LICENSE.md</licensePath>
		<cxf.version>2.5.9</cxf.version>
		<github.merge>true</github.merge>
		<licm.version>1.1.2</licm.version>
	</properties>

	<build>
		<plugins>
			<!-- <plugin> -->
			<!-- <groupId>org.apache.cxf</groupId> -->
			<!-- <artifactId>cxf-codegen-plugin</artifactId> -->
			<!-- <version>${cxf.version}</version> -->
			<!-- <executions> -->
			<!-- <execution> -->
			<!-- <phase>validate</phase> -->
			<!-- <configuration> -->
			<!-- <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot> -->
			<!-- <wsdlOptions> -->
			<!-- <wsdlOption> -->
			<!-- <wsdl>${basedir}/src/main/resources/wsdl/2011/Organization.wsdl</wsdl> -->
			<!-- <bindingFiles> -->
			<!-- <bindingFile>${basedir}/src/main/resources/wsdl/binding.xml</bindingFile> -->
			<!-- </bindingFiles> -->
			<!-- </wsdlOption> -->
			<!-- </wsdlOptions> -->
			<!-- </configuration> -->
			<!-- <goals> -->
			<!-- <goal>wsdl2java</goal> -->
			<!-- </goals> -->
			<!-- </execution> -->
			<!-- </executions> -->
			<!-- </plugin> -->
			<plugin>
				<groupId>org.mule.tools.devkit</groupId>
				<artifactId>mule-devkit-maven-plugin</artifactId>
				<configuration>
					<path>onpremise</path>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>github-upload-doc</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<!-- Integration Tests. To run the integration test use > mvn integration-test -->
			<plugin>
				<artifactId>maven-failsafe-plugin</artifactId>
				<version>2.6</version>
				<executions>
					<execution>
						<goals>
							<goal>integration-test</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.8</version>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<excludePackageNames>org.mule.tooling.ui.contribution:*</excludePackageNames>
					<docletArtifact>
						<groupId>org.mule.tools.devkit</groupId>
						<artifactId>mule-devkit-doclet</artifactId>
						<version>${mule.devkit.version}</version>
					</docletArtifact>
					<doclet>org.mule.devkit.doclet.Doclava</doclet>
					<bootclasspath>${sun.boot.class.path}</bootclasspath>
					<additionalparam>
						-hdf project.artifactId "${project.artifactId}"
						-hdf project.groupId "${project.groupId}"
						-hdf project.version "${project.version}"
						-hdf project.name "${project.name}"
						-hdf project.repo.name
						"${project.distributionManagement.repository.name}"
						-hdf project.repo.id "${project.distributionManagement.repository.id}"
						-hdf project.repo.url
						"${project.distributionManagement.repository.url}"
						-hdf project.snapshotRepo.name
						"${project.distributionManagement.snapshotRepository.name}"
						-hdf project.snapshotRepo.id
						"${project.distributionManagement.snapshotRepository.id}"
						-hdf project.snapshotRepo.url
						"${project.distributionManagement.snapshotRepository.url}"
						-d ${project.build.directory}/apidocs
						-markdown installation ${basedir}/doc/installationandtroubleshoting.MD "Installation and Troubleshoting"
					</additionalparam>
					<useStandardDocletOptions>false</useStandardDocletOptions>
					<additionalJOption>-J-Xmx1024m</additionalJOption>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>com.mulesoft.licm</groupId>
			<artifactId>licm</artifactId>
			<version>${licm.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.mulesoft.modules</groupId>
			<artifactId>mule-module-ms-dynamics-crm-commons</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.mule.modules</groupId>
			<artifactId>mule-module-cxf</artifactId>
			<version>${mule.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-ws-policy</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<!-- END OF REPLACEMENT OF DEPENDENCIES CONTAINED IN mule-module-cxf -->
		<dependency>
			<groupId>xalan</groupId>
			<artifactId>xalan</artifactId>
			<version>2.7.0</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>3.2.1.RELEASE</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<repositories>
		<repository>
			<id>mule-ee-snapshot</id>
			<name>EE Repository Snapshots</name>
			<url>https://repository.mulesoft.org/nexus/content/repositories/snapshots</url>
			<layout>default</layout>
		</repository>
		<repository>
			<id>mule-ee</id>
			<name>EE Repository Releases</name>
			<url>https://repository.mulesoft.org/nexus/content/repositories/releases</url>
			<layout>default</layout>
		</repository>
		<repository>
			<id>codehaus-releases</id>
			<name>CodeHaus Releases</name>
			<url>http://repository.codehaus.org/</url>
		</repository>
	</repositories>
</project>
