<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>io.janusproject.sre</groupId>
		<artifactId>io.janusproject</artifactId>
		<version>0.4.2</version>
	</parent>

	<groupId>io.janusproject</groupId>
	<artifactId>io.janusproject.plugin</artifactId>
	<packaging>eclipse-plugin</packaging>
	<name>Janus Project</name>
	<url>${janusUrl}</url>
	<inceptionYear>2008</inceptionYear>

	<properties>
		<jkernel.version>2.${project.version}</jkernel.version>
	</properties>

	<build>
		<plugins>
 			<plugin>
 				<groupId>org.eclipse.tycho</groupId>
 				<artifactId>tycho-source-plugin</artifactId>
 			</plugin>

			<plugin>
				<groupId>com.google.code.maven-replacer-plugin</groupId>
				<artifactId>replacer</artifactId>
				<executions>
					<execution>
						<id>prepare-eclipse-aboutbox</id>
						<phase>process-resources</phase>
						<goals>
							<goal>replace</goal>
						</goals>
						<configuration>
							<encoding>${project.build.sourceEncoding}</encoding>
							<file>${project.basedir}/src-templates/about.mappings</file>
							<outputFile>${project.basedir}/about.mappings</outputFile>
							<replacements>
								<replacement>
									<token>%website%</token>
									<value>${sarlUrl}</value>
								</replacement>
								<replacement>
									<token>%sarlBuildId%</token>
									<value>${buildId}</value>
								</replacement>
								<replacement>
									<token>%copyrightdate%</token>
									<value>${project.inceptionYear}-${year}</value>
								</replacement>
								<replacement>
									<token>%copyrighters%</token>
									<value>${copyrighters}</value>
								</replacement>
								<replacement>
									<token>%sarlreleaseversion%</token>
									<value>${sarl.release_version}</value>
								</replacement>
								<replacement>
									<token>%sarlspecificationreleasedate%</token>
									<value>${sarl.specification.release_date}</value>
								</replacement>
							</replacements>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>io.sarl.maven</groupId>
				<artifactId>io.sarl.maven.sre</artifactId>
				<version>${project.version}</version>
				<configuration>
					<sreName>JANUS</sreName>
					<standaloneSRE>false</standaloneSRE>
					<commandLineOptions>
						<hideInfo>--log=warning</hideInfo>
						<hideLogo>--nologo</hideLogo>
						<showInfo>--log=info</showInfo>
						<showLogo></showLogo>
						<defaultContextId>--worldid</defaultContextId>
						<randomContextId>--randomid</randomContextId>
						<bootAgentContextId>--bootid</bootAgentContextId>
						<offline>--offline</offline>
						<embedded>--embedded</embedded>
						<noMoreOption>--</noMoreOption>
					</commandLineOptions>
					<mainClass>io.janusproject.Boot</mainClass>
				</configuration>

				<executions>
					<execution>
						<goals>
							<goal>updatemanifest</goal>
						</goals>
					</execution>
				</executions>

			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-checkstyle-plugin</artifactId>
				<configuration>
					<sourceDirectory>src</sourceDirectory>
				</configuration>
			</plugin>

		</plugins>
	</build>

	<!-- ======================================= -->
	<!-- ==== Release Management === -->
	<!-- ======================================= -->
	<profiles>
		<profile>
			<id>maven-release-of-janus-sre</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>

				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>org.arakhne.afc.maven</groupId>
							<artifactId>tag-replacer</artifactId>
							<configuration>
								<sources>
									<source>${project.basedir}/src</source>
								</sources>
							</configuration>
						</plugin>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-javadoc-plugin</artifactId>
							<configuration>
								<sourcepath>${project.build.directory}/generated-sources/java</sourcepath>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
		</profile>
	</profiles>

</project>
