<?xml version="1.0" encoding="UTF-8"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
--><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.orienteer</groupId>
	<artifactId>orienteer-parent</artifactId>
	<packaging>pom</packaging>
	<version>1.2</version>
	<name>Orienteer</name>
	<description>Orienteer - Business Application Platform</description>
	<url>http://orienteer.org</url>
	<scm>
	    <url>https://github.com/OrienteerBAP/Orienteer</url>
	    <connection>scm:git:ssh://github.com/OrienteerBAP/Orienteer.git</connection>
	    <developerConnection>scm:git:ssh://git@github.com/OrienteerBAP/Orienteer.git</developerConnection>
	    <tag>v1.2</tag>
	</scm>

	<issueManagement>
	    <system>github</system>
	    <url>https://github.com/OrienteerBAP/Orienteer/issues</url>
	</issueManagement>
	<distributionManagement>
	  <snapshotRepository>
	    <id>ossrh</id>
	    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
	  </snapshotRepository>
	  <repository>
	    <id>ossrh</id>
	    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
	  </repository>
	</distributionManagement>
	<developers>
	    <developer>
		<id>owner</id>
		<name>Ilia Naryzhny</name>
		<email>phantom@ydn.ru</email>
	    </developer>
	</developers>
	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<properties>
		<wicket.version>7.3.0</wicket.version>
		<wicketstuff.version>7.3.0</wicketstuff.version>
		<orientdb.version>2.1.19</orientdb.version>
		<wicket.orientdb.version>1.2</wicket.orientdb.version>
		<jetty.version>9.2.11.v20150529</jetty.version>
		<slf4j.version>1.7.21</slf4j.version>
		<enableAssertions>false</enableAssertions>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<!-- allowed values: R7, 1.0, 1.5, 2.0 or none -->
		<wtp.version>none</wtp.version>
	</properties>
     <repositories>
       <repository>
         <id>snapshots-repo</id>
         <url>https://oss.sonatype.org/content/repositories/snapshots</url>
         <releases><enabled>false</enabled></releases>
         <snapshots><enabled>true</enabled></snapshots>
       </repository>
     </repositories>
	<modules>
		<module>orienteer-core</module>
		<module>orienteer-war</module>
		<module>orienteer-standalone</module>
		<module>orienteer-archetype-war</module>
		<module>orienteer-archetype-jar</module>
		<module>orienteer-graph</module>
		<module>orienteer-pages</module>
		<module>orienteer-pivottable</module>
		<module>orienteer-devutils</module>
		<module>orienteer-logger-server</module>
		<module>orienteer-bpm</module>
		<module>orienteer-camel</module>
	</modules>
	<dependencyManagement>
	    <dependencies>
                <!--wicket-orientdb-->
		    <dependency>
			    <groupId>ru.ydn.wicket.wicket-orientdb</groupId>
			    <artifactId>wicket-orientdb</artifactId>
			    <version>${wicket.orientdb.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>ru.ydn.wicket.wicket-orientdb</groupId>
			    <artifactId>wicket-orientdb</artifactId>
			    <version>${wicket.orientdb.version}</version>
			    <type>test-jar</type>
			    <scope>test</scope>
		    </dependency>
		    <dependency>
			    <groupId>org.apache.wicket</groupId>
			    <artifactId>wicket-core</artifactId>
			    <version>${wicket.version}</version>
		    </dependency>
		    <!--  WICKET DEPENDENCIES -->
		    <dependency>
			<groupId>org.apache.wicket</groupId>
			<artifactId>wicket-datetime</artifactId>
			<version>${wicket.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>org.apache.wicket</groupId>
			    <artifactId>wicket-extensions</artifactId>
			    <version>${wicket.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>org.apache.wicket</groupId>
			    <artifactId>wicket-guice</artifactId>
			    <version>${wicket.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>org.wicketstuff</groupId>
			    <artifactId>wicketstuff-select2</artifactId>
			    <version>${wicketstuff.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>com.orientechnologies</groupId>
			    <artifactId>orientdb-core</artifactId>
			    <version>${orientdb.version}</version>
			    <type>bundle</type>
		    </dependency>
		    <dependency>
			    <groupId>com.orientechnologies</groupId>
			    <artifactId>orientdb-server</artifactId>
			    <version>${orientdb.version}</version>
			    <type>bundle</type>
		    </dependency>
		    <dependency>
			    <groupId>com.orientechnologies</groupId>
			    <artifactId>orientdb-graphdb</artifactId>
			    <version>${orientdb.version}</version>
			    <type>bundle</type>
		    </dependency>
		    <!-- INCLUDE THIS IF YOU'RE CONNECTING TO THE SERVER THROUGH THE REMOTE 
			    ENGINE -->
		    <dependency>
			    <groupId>com.orientechnologies</groupId>
			    <artifactId>orientdb-client</artifactId>
			    <version>${orientdb.version}</version>
			    <type>bundle</type>
		    </dependency>
		    <dependency>
			    <groupId>com.google.inject</groupId>
			    <artifactId>guice</artifactId>
			    <version>4.0</version>
		    </dependency>
		    <dependency>
			    <groupId>com.google.inject.extensions</groupId>
			    <artifactId>guice-servlet</artifactId>
			    <version>4.0</version>
		    </dependency>
		    <!-- WEB JARS -->
		    <dependency>
			    <groupId>de.agilecoders.wicket.webjars</groupId>
			    <artifactId>wicket-webjars</artifactId>
			    <version>0.5.4</version>
		    </dependency>
		    <dependency>
				<groupId>org.webjars</groupId>
				<artifactId>font-awesome</artifactId>
				<version>4.6.3</version>
		    </dependency>
		    <dependency>
				<groupId>org.webjars</groupId>
				<artifactId>bootstrap</artifactId>
				<version>3.3.6</version>
		    </dependency>
		    <dependency>
			    <groupId>org.webjars</groupId>
			    <artifactId>gridster.js</artifactId>
			    <version>0.5.6</version>
			</dependency>
			<dependency>
			    <groupId>org.webjars</groupId>
			    <artifactId>jquery-ui</artifactId>
			    <version>1.11.4</version>
			</dependency>
			<dependency>
				<groupId>org.webjars</groupId>
				<artifactId>metisMenu</artifactId>
				<version>1.1.3-1</version>
			</dependency>
		    <!-- LOGGING DEPENDENCIES - LOG4J -->
		    <dependency>
			    <groupId>org.slf4j</groupId>
			    <artifactId>slf4j-log4j12</artifactId>
			    <version>${slf4j.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>log4j</groupId>
			    <artifactId>log4j</artifactId>
			    <version>1.2.17</version>
		    </dependency>

		    <!--  JUNIT DEPENDENCY FOR TESTING -->
		    <dependency>
			    <groupId>junit</groupId>
			    <artifactId>junit</artifactId>
			    <version>4.12</version>
			    <scope>test</scope>
		    </dependency>

		    <!--  JETTY DEPENDENCIES FOR TESTING  -->
		    <dependency>
			    <groupId>org.eclipse.jetty.aggregate</groupId>
			    <artifactId>jetty-all</artifactId>
			    <version>${jetty.version}</version>
			    <scope>provided</scope>
		    </dependency>
		    <dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<version>3.0.1</version>
			<scope>provided</scope>
		    </dependency>
	    </dependencies>
	</dependencyManagement>
	<build>
		<plugins>
		    <plugin>
			  <groupId>org.apache.felix</groupId>
			  <artifactId>maven-bundle-plugin</artifactId>
			  <version>3.0.1</version>
			  <extensions>true</extensions>
		    </plugin>
		    <plugin>
			    <inherited>true</inherited>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-compiler-plugin</artifactId>
			    <version>3.5.1</version>
			    <configuration>
				    <source>1.7</source>
				    <target>1.7</target>
				    <encoding>UTF-8</encoding>
				    <showWarnings>true</showWarnings>
				    <showDeprecation>true</showDeprecation>
			    </configuration>
		    </plugin>
		    <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-release-plugin</artifactId>
			<version>2.5.3</version>
			<configuration>
			    <autoVersionSubmodules>true</autoVersionSubmodules>
			    <releaseProfiles>release</releaseProfiles>
			    <goals>deploy</goals>
			    <tagNameFormat>v@{project.version}</tagNameFormat>
			    <arguments>-Pskip-integration-tests</arguments>
			</configuration>
		    </plugin>
		    <plugin>
			<groupId>org.eluder.coveralls</groupId>
			<artifactId>coveralls-maven-plugin</artifactId>
			<version>4.2.0</version>
			<configuration>
			    <sourceEncoding>UTF8</sourceEncoding>
			</configuration>
		    </plugin>
		    <plugin>
			<groupId>org.codehaus.mojo</groupId>
			<artifactId>cobertura-maven-plugin</artifactId>
			<version>2.7</version>
			<configuration>
			    <formats>
				<format>html</format>
				<format>xml</format>
			    </formats>
			    <maxmem>256m</maxmem>
			    <!-- aggregated reports for multi-module projects -->
			    <aggregate>true</aggregate>
			</configuration>
		    </plugin>
		    <plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-eclipse-plugin</artifactId>
			    <version>2.10</version>
			    <configuration>
				    <downloadSources>true</downloadSources>
				    <wtpversion>${wtp.version}</wtpversion>
			    </configuration>
		    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <version>2.17</version>
                        <dependencies>
			<dependency>
				<groupId>com.puppycrawl.tools</groupId>
				<artifactId>checkstyle</artifactId>
				<version>6.19</version>
			</dependency>
			</dependencies>
                        <configuration>
                            <configLocation>check_style.xml</configLocation>
                            <failOnViolation>true</failOnViolation>
                            <linkXRef>false</linkXRef>
                        </configuration>
                        <executions>
                            <execution>
                                <id>checkstyle</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											org.apache.maven.plugins
										</groupId>
										<artifactId>
											maven-checkstyle-plugin
										</artifactId>
										<versionRange>
											[2.15,)
										</versionRange>
										<goals>
											<goal>check</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<profiles>
	    <profile> 
		<id>release</id>
		<build>
		    <plugins>
			<plugin>
			    <groupId>org.sonatype.plugins</groupId>
			    <artifactId>nexus-staging-maven-plugin</artifactId>
			    <version>1.6.7</version>
			    <extensions>true</extensions>
			    <configuration>
				<serverId>ossrh</serverId>
				<nexusUrl>https://oss.sonatype.org/</nexusUrl>
				<autoReleaseAfterClose>true</autoReleaseAfterClose>
			    </configuration>
			</plugin>
			<plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-source-plugin</artifactId>
			    <version>3.0.0</version>
			    <executions>
				<execution>
				    <id>attach-sources</id>
				    <goals>
					<goal>jar-no-fork</goal>
				    </goals>
				</execution>
			    </executions>
			</plugin>
			<plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-javadoc-plugin</artifactId>
			    <version>2.10.3</version>
			    <executions>
				<execution>
				    <id>attach-javadocs</id>
				    <goals>
					<goal>jar</goal>
				    </goals>
				</execution>
			    </executions>
			</plugin>
			<plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-gpg-plugin</artifactId>
			    <version>1.6</version>
			    <executions>
				<execution>
				    <id>sign-artifacts</id>
				    <phase>verify</phase>
				    <goals>
					<goal>sign</goal>
				    </goals>
				</execution>
			    </executions>
			</plugin>
		    </plugins>
		</build>
	    </profile>
		<profile>
			<id>dockerbuild</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-dependency-plugin</artifactId>
						<version>2.10</version>
						<inherited>false</inherited>
						<executions>
							<execution>
								<id>copy</id>
								<phase>package</phase>
								<goals>
									<goal>copy</goal>
								</goals>
								<configuration>
									<artifactItems>
										<artifactItem>
											<groupId>org.eclipse.jetty</groupId>
											<artifactId>jetty-runner</artifactId>
											<version>${jetty.version}</version>
											<type>jar</type>
											<overWrite>true</overWrite>
											<outputDirectory>${project.basedir}/target/</outputDirectory>
											<destFileName>jetty-runner.jar</destFileName>
										</artifactItem>
									</artifactItems>
									<!-- other configurations here -->
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>
