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

	<parent>
		<groupId>org.mule.tools.devkit</groupId>
		<artifactId>mule-devkit-tools</artifactId>
		<version>3.3.2</version>
	</parent>

	<name>Mule DevKit Nexus Plugin</name>
	<description>The DevKit Nexus Plugin augments Nexus indexing capabilities with extra information directly
        related to Mule modules, adding schema information, as well as cataloging them along with DevKit plugins into
        special catalog files.
    </description>

	<artifactId>mule-devkit-nexus-plugin</artifactId>
	<packaging>nexus-plugin</packaging>

	<properties>
		<app-lifecycle.version>1.4</app-lifecycle.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<nexus.version>2.0.2</nexus.version>
		<capabilities-plugin.version>2.0.2</capabilities-plugin.version>
		<nexus.plugin.type>nexus-plugin</nexus.plugin.type>
		<arguments />
	</properties>


	<dependencies>
		<dependency>
			<groupId>org.sonatype.nexus</groupId>
			<artifactId>nexus-plugin-api</artifactId>
			<version>${nexus.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.sonatype.nexus.plugins</groupId>
			<artifactId>nexus-indexer-lucene-plugin</artifactId>
			<version>${nexus.version}</version>
			<scope>provided</scope>
			<type>nexus-plugin</type>
		</dependency>
		<dependency>
			<groupId>org.sonatype.nexus.plugins</groupId>
			<artifactId>nexus-indexer-lucene-plugin</artifactId>
			<version>${nexus.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.sonatype.nexus</groupId>
			<artifactId>nexus-rest-api</artifactId>
			<version>${nexus.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.codehaus.plexus</groupId>
			<artifactId>plexus-component-annotations</artifactId>
			<version>1.5.5</version>
		</dependency>
		<dependency>
			<groupId>org.mule.tools.devkit</groupId>
			<artifactId>mule-devkit-schema-model</artifactId>
			<version>3.3.2</version>
		</dependency>
		<dependency>
			<groupId>org.sonatype.nexus.plugins</groupId>
			<artifactId>nexus-capabilities-plugin</artifactId>
			<version>${capabilities-plugin.version}</version>
			<type>${nexus.plugin.type}</type>
			<scope>provided</scope>
		</dependency>

		<!-- Basic testing -->
		<dependency>
			<groupId>org.sonatype.nexus</groupId>
			<artifactId>nexus-plugin-test-api</artifactId>
			<version>${nexus.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.5</version>
			<scope>test</scope>
		</dependency>

		<!-- #ITSet BEGINS -->
		<!-- Nexus IT setup (dependencies below are needed if you have extensive 
			ITs and you want to use Nexus Environment) -->
		<!-- There are plugins connected to this dependency, see below! -->
		<dependency>
			<groupId>org.sonatype.nexus</groupId>
			<artifactId>nexus-test-harness-launcher</artifactId>
			<scope>test</scope>
			<version>${nexus.version}</version>
		</dependency>
		<!-- #ITSet ENDS -->
	</dependencies>

	<!-- #ITSet BEGINS -->
	<!-- Nexus IT setup (dependencies below are needed if you have extensive 
		ITs and you want to use Nexus Environment) -->
	<!-- There are plugins and dependencies connected to this import, see below 
		and above! -->
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.sonatype.nexus</groupId>
				<artifactId>nexus-webapp-dependencies</artifactId>
				<version>${nexus.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<!-- #ITSet ENDS -->

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.sonatype.plugins</groupId>
				<artifactId>app-lifecycle-maven-plugin</artifactId>
				<version>1.5</version>
				<extensions>true</extensions>
				<dependencies>
					<dependency>
						<groupId>org.sonatype.plugins</groupId>
						<artifactId>app-lifecycle-nexus</artifactId>
						<version>1.5</version>
					</dependency>
				</dependencies>
			</plugin>
		</plugins>
	</build>

	<repositories>
		<repository>
			<id>clojars.org</id>
			<url>http://clojars.org/repo</url>
		</repository>
		<repository>
			<id>nuxeo</id>
			<url>http://maven.nuxeo.org/nexus/content/groups/public</url>
		</repository>
	</repositories>

</project>