<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.vngx</groupId>
	<artifactId>vngx-jsch</artifactId>
	<packaging>bundle</packaging>
	<version>0.9</version>
	<name>vngx-jsch</name>
	<url>http://maven.apache.org</url>
	<description>An updated version of the popular JSch SSH library written in pure Java. It has been updated to Java 6 with all the latest language features and improved code clarity.</description>
	<licenses>
		<license>
			<name>MIT</name>
			<url>http://www.opensource.org/licenses/mit-license.php</url>
		</license>
	</licenses>
	<developers>
		<developer>
			<organization>N1Concepts</organization>
		</developer>
		<developer>
			<name>Michael Laudati</name>
			<email>michael.laudati@gmail.com</email>
		</developer>
		<developer>
			<name>Scott Rahner</name>
			<email>scott.rahner@gmail.com</email>
		</developer>
	</developers>
	<scm>
		<connection>git://github.com/vngx/vngx-jsch.git</connection>
		<url>https://github.com/vngx/vngx-jsch</url>
	</scm>
	<build>
		<plugins>
			<!-- Ensures 1.6 compilation -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.0.2</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<encoding>${project.build.sourceEncoding}</encoding>
					<showDeprecation>true</showDeprecation>
				</configuration>
			</plugin>
			<!-- Copies the raw resources to the target dir -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>2.2</version>
				<configuration>
					<encoding>${project.build.sourceEncoding}</encoding>
				</configuration>
			</plugin>
			<!-- Creates the MANIFEST.MF w/ appropriate items for OSGi compliance -->
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<version>1.4.0</version>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
						<Bundle-Name>${project.name}</Bundle-Name>
						<Bundle-Version>${project.version}</Bundle-Version>
						<Export-Package>${bundle.namespace}.*</Export-Package>
						<Import-Package>!${bundle.namespace}.*,*</Import-Package>
					</instructions>
				</configuration>
			</plugin>
			<!-- Copies dependent jars to the target dir, especially important w/ 
				OSGi as you will need compliant bundles for imported dependencies which are 
				not as easy to come by -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.2</version>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>package</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<configuration>
							<outputDirectory>${project.build.directory}</outputDirectory>
							<overWriteReleases>false</overWriteReleases>
							<overWriteSnapshots>false</overWriteSnapshots>
							<overWriteIfNewer>true</overWriteIfNewer>
							<excludeScope>test</excludeScope>
							<excludeScope>provided</excludeScope>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- Commands to build artifact bundles for central maven repos: 
				gpg -keyserver hkp://keyserver.ubuntu.com:11371 -send-keys D54B1E3F 
				mvn source:jar javadoc:jar package gpg:sign repository:bundle-create -Dgpg.passphrase=XX 
			-->
		</plugins>
	</build>

	<dependencies>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.8.2</version>
			<scope>test</scope>
		</dependency>

		<!-- OSGi complaint build of jzlib -->
		<dependency>
			<groupId>com.jcraft.jzlib</groupId>
			<artifactId>com.springsource.com.jcraft.jzlib</artifactId>
			<version>1.0.7</version>
		</dependency>

	</dependencies>

	<repositories>

		<!-- Spring Repos for OSGi complaint bundles, if anyone knows of better 
			sources let is know =) -->
		<repository>
			<id>com.springsource.repository.bundles.release</id>
			<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
			<url>http://repository.springsource.com/maven/bundles/release</url>
		</repository>

		<repository>
			<id>com.springsource.repository.bundles.external</id>
			<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
			<url>http://repository.springsource.com/maven/bundles/external</url>
		</repository>

	</repositories>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<bundle.namespace>org.vngx.jsch</bundle.namespace>
	</properties>
</project>
