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

	<artifactId>net.edgemind.ibee.p2</artifactId>


	<parent>
		<groupId>ibee</groupId>
		<artifactId>core.parent</artifactId>
		<version>1.15.2</version>
		<relativePath>..</relativePath>
	</parent>

	<properties>
		<p2Dir>/srv/repo.edgemind.net/p2/ibee/${ibee.snapshot}</p2Dir>
		<allowRedeploy>true</allowRedeploy>
		<purgeRepo>false</purgeRepo>
		<p2Dir>/srv/repo.edgemind.net/p2/ibee/${ibee.snapshot}</p2Dir>
	</properties>


	<packaging>eclipse-repository</packaging>

	<profiles>
		<profile>
			<id>release</id>
			<properties>
				<allowRedeploy>false</allowRedeploy>
				<p2Dir>/srv/repo.edgemind.net/p2/ibee/${ibee.release}</p2Dir>
			</properties>
		</profile>
	</profiles>
	
	
	<pluginRepositories>
		<pluginRepository>
			<id>edgemind-snapshots</id>
			<url>https://repo.edgemind.net/nexus/repository/edgemind-snapshots</url>
		</pluginRepository>
		<pluginRepository>
			<id>edgemind-releases</id>
			<url>https://repo.edgemind.net/nexus/repository/edgemind-releases</url>
		</pluginRepository>
	</pluginRepositories>


	<build>

		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-director-plugin</artifactId>
				<version>${tycho.version}</version>
				<executions>
					<execution>
						<id>materialize-products</id>
						<goals>
							<goal>materialize-products</goal>
						</goals>
					</execution>
					<execution>
						<id>archive-products</id>
						<goals>
							<goal>archive-products</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>net.ibee.maven.plugins</groupId>
				<artifactId>p2-repo</artifactId>
				<version>0.9.0</version>

				<executions>
					<execution>
						<phase>deploy</phase>
						<goals>
							<goal>recover-remote-repo-metadata</goal>
							<goal>purge-remote-repo</goal>
							<goal>deploy-remote-repo</goal>
						</goals>
					</execution>
				</executions>

				<configuration>
					<remoteServer>repo@callisto.edgemind.net</remoteServer>
					<remoteP2Path>${p2Dir}/repository</remoteP2Path>
				</configuration>
				<extensions>true</extensions>

			</plugin>	
		</plugins>
	</build>
</project>