<?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>
	<groupId>org.mule.modules</groupId>
	<artifactId>mule-module-sharepoint</artifactId>
	<version>2.0.0</version>
	<packaging>mule-module</packaging>
	<name>SharePoint 2013 Connector</name>

	<parent>
		<groupId>org.mule.tools.devkit</groupId>
		<artifactId>mule-devkit-parent</artifactId>
		<version>3.5.2</version>
	</parent>

	<properties>
		<junit.version>4.9</junit.version>
		<mockito.version>1.8.2</mockito.version>
		<jdk.version>1.7</jdk.version>
		<category>Standard</category>
		<licensePath>LICENSE.md</licensePath>
		<devkit.studio.package.skip>false</devkit.studio.package.skip>
		<jdk.version>1.7</jdk.version>
		<licm.version>1.1.4</licm.version>
	</properties>

	<scm>
		<connection>scm:git:git://github.com:mulesoft/sharepoint-2013-connector.git</connection>
		<developerConnection>scm:git:git@github.com:mulesoft/sharepoint-2013-connector.git</developerConnection>
		<url>http://github.com/mulesoft/sharepoint-2013-connector</url>
	</scm>

	<repositories>
		<repository>
			<id>mulesoft-releases</id>
			<name>MuleSoft Releases Repository</name>
			<url>http://repository.mulesoft.org/releases/</url>
			<layout>default</layout>
		</repository>
		<repository>
			<id>mulesoft-snapshots</id>
			<name>MuleSoft Snapshots Repository</name>
			<url>http://repository.mulesoft.org/snapshots/</url>
			<layout>default</layout>
		</repository>
	</repositories>

	<dependencies>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>4.2</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-web</artifactId>
			<version>3.2.1.RELEASE</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.mulesoft.licm</groupId>
			<artifactId>licm-studio</artifactId>
			<version>${licm.version}</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>0.7.1.201405082137</version>
				<configuration>
					<excludes>
						<exclude>org/mule/module/sharepoint/processors/*</exclude>
						<exclude>org/mule/module/sharepoint/adapters/*</exclude>
						<exclude>org/mule/module/sharepoint/agents/*</exclude>
						<exclude>org/mule/module/sharepoint/config/*</exclude>
						<exclude>org/mule/module/sharepoint/connection/*</exclude>
						<exclude>org/mule/module/sharepoint/connectivity/*</exclude>
						<exclude>org/mule/module/sharepoint/entity/holders/*</exclude>
						<exclude>org/mule/module/sharepoint/entity/transformers/*</exclude>
						<exclude>org/mule/module/sharepoint/metadata/connection/*</exclude>
						<exclude>org/mule/module/sharepoint/pooling/*</exclude>
						<exclude>org/mule/module/sharepoint/process/*</exclude>
						<exclude>org/mule/tooling/**</exclude>
					</excludes>
				</configuration>
				<executions>
					<execution>
						<id>default-prepare-agent</id>
						<goals>
							<goal>prepare-agent</goal>
						</goals>
					</execution>
					<execution>
						<id>default-report</id>
						<goals>
							<goal>report</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><!-- -federate JDK http://download.oracle.com/javase/6/docs/api/index.html? 
							-federationxml JDK http://doclava.googlecode.com/svn/static/api/openjdk-6.xml -->
						-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
					</additionalparam>
					<useStandardDocletOptions>false</useStandardDocletOptions>
					<!--<additionalJOption>-J-Xmx1024m -J-Xdebug -J-Xnoagent -J-Djava.compiler=NONE 
						-J-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000</additionalJOption> -->
					<additionalJOption>-J-Xmx1024m</additionalJOption>
				</configuration>
			</plugin>
			<plugin>
                <groupId>org.mule.certification</groupId>
                <artifactId>project-structure-validation</artifactId>
                <version>1.0.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>validate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings 
					only. It has no influence on the Maven build itself. -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.jacoco</groupId>
										<artifactId>
											jacoco-maven-plugin
										</artifactId>
										<versionRange>
											[0.7.1.201405082137,)
										</versionRange>
										<goals>
											<goal>prepare-agent</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

	<profiles>
		<profile>
			<id>integration-tests</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>2.6-MULE-4</version>
						<executions>
							<execution>
								<id>integration-tests</id>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<includes>
										<include>**/*TestCases.java</include>
										<include>**/*IT.java</include>
									</includes>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>
