<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>au.csiro</groupId>
		<artifactId>elk-parent</artifactId>
		<version>0.5.0</version>
	</parent>

	<artifactId>elk-distribution-parent</artifactId>
	<packaging>pom</packaging>

	<name>ELK Distribution Packages</name>
	<description>The modules for packaging of ELK products and their distribution</description>

	<modules>
		<module>elk-distribution-resources</module>
		<module>elk-distribution-cli</module>
		<module>elk-distribution-owlapi-parent</module>
	</modules>


	<profiles>
		<profile>
			<id>java-8+</id>
			<activation>
				<jdk>[1.8,)</jdk>
			</activation>
			<modules>
				<module>elk-distribution-protege</module>
			</modules>
		</profile>
	</profiles>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<!-- the plugin for sharing resources among maven modules and projects -->
					<artifactId>maven-remote-resources-plugin</artifactId>
					<version>1.5</version>
				</plugin>
				<plugin>
					<!-- the plugin used to generate the modified plugin versions, such 
						as release.version used templates/*.vm and parsedVersion.osgiVersion used 
						in src/main/update.properties -->
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
					<version>3.0.0</version>
					<executions>
						<execution>
							<!-- generate the modified plugin versions, such as release.version 
								used templates/*.vm and parsedVersion.osgiVersion used in src/main/update.properties -->
							<id>set-osgi-versions</id>
							<goals>
								<goal>parse-version</goal>
							</goals>
						</execution>
						<execution>
							<!-- set the current year from the build timestamp, used in README.txt -->
							<id>set-current-year</id>
							<goals>
								<goal>timestamp-property</goal>
							</goals>
							<configuration>
								<name>currentYear</name>
								<pattern>yyyy</pattern>
								<locale>en,US</locale>
							</configuration>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<!-- the plugin used to verify that properties are defined -->
					<artifactId>maven-enforcer-plugin</artifactId>
					<version>3.0.0-M1</version>
				</plugin>
			</plugins>
		</pluginManagement>

	</build>


</project>
