<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 POM for RCE platform p2 features and repositories -->
	<artifactId>de.rcenvironment.build.thirdparty.parent.p2DependenciesBundle</artifactId>
	<name>RCE Parent POMs - Third-Party Repository - p2 Dependencies Bundle</name>
	<packaging>pom</packaging>

	<parent>
		<groupId>de.rcenvironment</groupId>
		<artifactId>de.rcenvironment.build.thirdparty.parent.common</artifactId>
		<version>1.0.0-SNAPSHOT</version>
		<relativePath>../common</relativePath>
	</parent>

	<properties>
		<relativePathToProjectsRoot>../../..</relativePathToProjectsRoot>
		<!-- last updated: 2022-02-09, misc_ro -->
		<versions.pax-logging>2.1.0</versions.pax-logging>
	</properties>

	<profiles>
		<profile>
			<id>use-mirrored-p2-artifacts-from-lfs</id>
			<activation>
				<file>
					<!-- When checking out with git, the SVN "p2-mirrored" folder containing 
						a .svn sub-folder will not be present at all, so its absence indicates a 
						git checkout. -->
					<missing>${relativePathToProjectsRoot}/de.rcenvironment.platform/thirdparty/p2-mirrored/.svn</missing>
				</file>
			</activation>
			<properties>
				<relativePathToLocalP2Mirrors>${relativePathToProjectsRoot}/de.rcenvironment.platform/thirdparty/p2-mirrored-lfs</relativePathToLocalP2Mirrors>
			</properties>
		</profile>
		<profile>
			<id>use-mirrored-p2-artifacts-from-svn-externals</id>
			<activation>
				<file>
					<!-- When checking out with svn, a .svn sub-folder will be present inside 
						the svn:externals "p2-mirrored" folder. -->
					<exists>${relativePathToProjectsRoot}/de.rcenvironment.platform/thirdparty/p2-mirrored/.svn</exists>
				</file>
			</activation>
			<properties>
				<relativePathToLocalP2Mirrors>${relativePathToProjectsRoot}/de.rcenvironment.platform/thirdparty/p2-mirrored</relativePathToLocalP2Mirrors>
			</properties>
		</profile>
	</profiles>


	<!-- Note: for most of the mirrored repositories, the original URLs are 
		present as well, but commented out. This is intended to support testing of 
		new artifacts from these repositories before mirroring them. - R. Mischke, 
		Oct 2015 -->

	<repositories>
		<repository>
			<id>p2-mirror-photon</id>
			<layout>p2</layout>
			<url>${project.baseUri}${relativePathToLocalP2Mirrors}/eclipse.org/photon</url>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>p2-eclipse-orbit</id>
			<layout>p2</layout>
			<url>${project.baseUri}${relativePathToLocalP2Mirrors}/eclipse.org/orbit</url>
			<!-- <url>${rce.maven.eclipseOrbitRepositoryUrl}</url> -->
			<snapshots>
				<!-- prevent Maven from using this repository for snapshot parent POMs 
					(which produces a warning as the layout is not recognized) -->
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>p2-eclipse-nebula</id>
			<layout>p2</layout>
			<url>${project.baseUri}${relativePathToLocalP2Mirrors}/eclipse.org/nebula</url>
			<!-- <url>${rce.maven.eclipseNebulaRepositoryUrl}</url> -->
			<snapshots>
				<!-- prevent Maven from using this repository for snapshot parent POMs 
					(which produces a warning as the layout is not recognized) -->
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>p2-ajdt</id>
			<layout>p2</layout>
			<url>${project.baseUri}${relativePathToLocalP2Mirrors}/eclipse.org/ajdt</url>
			<!-- <url>http://download.eclipse.org/tools/ajdt/42/update/</url> -->
			<snapshots>
				<!-- prevent Maven from using this repository for snapshot parent POMs 
					(which produces a warning as the layout is not recognized) -->
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>p2-mirror-pdf4eclipse</id>
			<layout>p2</layout>
			<url>${project.baseUri}${relativePathToLocalP2Mirrors}/de.vonloesch.pdf4eclipse</url>
			<!-- <url>${rce.maven.eclipseNebulaRepositoryUrl}</url> -->
			<snapshots>
				<!-- prevent Maven from using this repository for snapshot parent POMs 
					(which produces a warning as the layout is not recognized) -->
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>p2-mirror-quickimage</id>
			<layout>p2</layout>
			<url>${project.baseUri}${relativePathToLocalP2Mirrors}/nu.psnet.quickimage</url>
			<!-- <url>${rce.maven.eclipseNebulaRepositoryUrl}</url> -->
			<snapshots>
				<!-- prevent Maven from using this repository for snapshot parent POMs 
					(which produces a warning as the layout is not recognized) -->
				<enabled>false</enabled>
			</snapshots>
		</repository>

	</repositories>

	<dependencies>
		<!-- OSGi-enabled Maven artifacts; made available on the p2 level by the 
			"mvn-osgi" feature - R. Mischke -->
		<dependency>
			<groupId>org.ops4j.pax.logging</groupId>
			<artifactId>pax-logging-api</artifactId>
			<version>${versions.pax-logging}</version>
		</dependency>
		<dependency>
			<groupId>org.ops4j.pax.logging</groupId>
			<artifactId>pax-logging-log4j2</artifactId>
			<version>${versions.pax-logging}</version>
		</dependency>
		<!-- TODO replacement for org.ops4j.pax.confman:pax-confman-propsloader? -->
		<!-- get commons-io 2.4 from central as Orbit only provides 2.0.1 -->
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>2.11.0</version>
		</dependency>
		<!-- OSGi version of Saxon-9-HE -->
		<dependency>
			<groupId>org.apache.servicemix.bundles</groupId>
			<artifactId>org.apache.servicemix.bundles.saxon</artifactId>
			<version>9.4.0.1_1</version>
		</dependency>
	</dependencies>

</project>
