<?xml version="1.0" encoding="UTF-8"?>
<!--  
###############################################################################
#                                                                             # 
#    Copyright 2016, AdeptJ (http://adeptj.com)                               #
#                                                                             #
#    Licensed 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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.adeptj</groupId>
	<artifactId>adeptj-parent</artifactId>
	<version>1.0.0.Final</version>
	<packaging>pom</packaging>
	<name>AdeptJ Parent</name>
	<description>The parent project for AdeptJ Core and Modules</description>
	<url>http://www.adeptj.com</url>
    <inceptionYear>2016</inceptionYear>

	<properties>
		<!-- Common Dependencies -->
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<slf4j-api.version>1.7.24</slf4j-api.version>
		<logback-core.version>1.2.1</logback-core.version>
		<logback-classic.version>1.2.1</logback-classic.version>
		<jdk.version>1.8</jdk.version>
		<compiler.plugin.version>3.6.1</compiler.plugin.version>
		<maven.compiler.target>1.8</maven.compiler.target>
		<maven.compiler.source>1.8</maven.compiler.source>
		<mvn.skipITs>true</mvn.skipITs>
		<github.global.server>github</github.global.server>
		<org.json.version>20160810</org.json.version>
		<commons-fileupload.version>1.3.2</commons-fileupload.version>
		<commons-io.version>2.5</commons-io.version>
		<commons-lang.version>3.5</commons-lang.version>
		<typesafe.config.version>1.3.1</typesafe.config.version>
		<boon-json.version>0.34</boon-json.version>
		<jpa.version>2.1.1</jpa.version>
		<eclipselink.version>2.6.3</eclipselink.version>
		<mongo.version>3.4.2</mongo.version>
		<shiro.version>1.3.2</shiro.version>
		<resteasy.version>3.1.0.Final</resteasy.version>
		<ehcache.version>3.3.0</ehcache.version>
		<maven.scr.version>1.24.0</maven.scr.version>
		<maven.bundle.plugin.version>3.2.0</maven.bundle.plugin.version>
		<thymeleaf.version>3.0.3.RELEASE</thymeleaf.version>
		<attoparser.version>2.0.3.RELEASE</attoparser.version>
		<unbescape.version>1.1.4.RELEASE</unbescape.version>
		<ognl.version>3.2</ognl.version>
		<javaassit.version>3.21.0-GA</javaassit.version>
		<javax.servlet-api.version>3.1.0</javax.servlet-api.version>
		
		<!-- Apache Felix and OSGi Dependencies Version -->
		<org.osgi.core.version>6.0.0</org.osgi.core.version>
		<org.osgi.comp.version>6.0.0</org.osgi.comp.version>
		<felix.scr.version>2.0.8</felix.scr.version>
		<felix.configadmin.version>1.8.14</felix.configadmin.version>
		<felix.eventadmin.version>1.4.8</felix.eventadmin.version>
		<felix.webconsole.plugins.packageadmin.version>1.0.4</felix.webconsole.plugins.packageadmin.version>
		<felix.webconsole.plugins.event.version>1.1.6</felix.webconsole.plugins.event.version>
		<felix.webconsole.plugins.ds.version>2.0.6</felix.webconsole.plugins.ds.version>
		<felix.webconsole.plugins.memoryusage.version>1.0.6</felix.webconsole.plugins.memoryusage.version>
		<felix.inventory.version>1.0.4</felix.inventory.version>
		<felix.webconsole.version>4.3.0</felix.webconsole.version>
		<felix.http.bridge.version>3.0.18</felix.http.bridge.version>
		<felix.http.base.version>3.0.18</felix.http.base.version>
		<felix.log.version>1.0.1</felix.log.version>
		<felix.metatype.version>1.1.2</felix.metatype.version>
		
	</properties>
	
	<prerequisites>
	    <!-- This defines only the minimum version for plugins, but not for the build
             See http://maven.apache.org/ref/3.3.9/maven-model/maven.html#class_prerequisites.
             Therefore the enforcer plugin needs to verify the maven version. See configuration
             of the plugin further below
        -->
        <maven>3.3.9</maven>
    </prerequisites>
    
    <!-- Project Information -->
    <organization>
        <name>AdeptJ</name>
        <url>http://www.adeptj.com</url>
    </organization>
    
    <licenses>
        <license>
            <name>Apache License Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    
    <developers>
        <developer>
            <id>rakeshk15</id>
            <name>Rakesh Kumar</name>
            <email>irakeshk@outlook.com</email>
            <url>https://www.linkedin.com/in/iamrakesh</url>
            <organization>AdeptJ</organization>
            <organizationUrl>http://www.adeptj.com</organizationUrl>
            <roles>
                <role>architect</role>
                <role>developer</role>
            </roles>
            <timezone>+5:30</timezone>
            <properties>
                <picUrl>https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/6/005/0b5/282/397d47f.jpg</picUrl>
            </properties>
        </developer>
    </developers>
    
     <issueManagement>
        <url>https://github.com/AdeptJ/adeptj-modularweb-micro/issues</url>
        <system>GitHub Issues</system>
    </issueManagement>

    <distributionManagement>
        <snapshotRepository>
            <id>ossrh-adeptj</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh-adeptj</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

    <scm>
        <url>https://github.com/AdeptJ/adeptj-modularweb-micro</url>
        <connection>scm:git:git@github.com:AdeptJ/adeptj-modularweb-micro.git</connection>
        <developerConnection>scm:git:git@github.com:AdeptJ/adeptj-modularweb-micro.git</developerConnection>
    </scm>

	<build>
	   
	    <pluginManagement>
	    
		    <plugins>
		        
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>${compiler.plugin.version}</version>
					<configuration>
						<compilerArgument>-parameters</compilerArgument>
						<source>${jdk.version}</source>
						<target>${jdk.version}</target>
					</configuration>
				</plugin>
				
				<plugin>
					<groupId>org.apache.felix</groupId>
					<artifactId>maven-bundle-plugin</artifactId>
					<version>${maven.bundle.plugin.version}</version>
					<extensions>true</extensions>
				</plugin>
				
				<!-- Apache Felix SCR Plugin -->
				<plugin>
					<groupId>org.apache.felix</groupId>
					<artifactId>maven-scr-plugin</artifactId>
					<version>${maven.scr.version}</version>
				</plugin>
	
			</plugins>
	    
	    </pluginManagement>
		
	</build>
	
	<dependencyManagement>

		<dependencies>
		
			<dependency>
				<groupId>javax.servlet</groupId>
				<artifactId>javax.servlet-api</artifactId>
				<version>${javax.servlet-api.version}</version>
				<scope>provided</scope>
			</dependency>
		
			<dependency>
				<groupId>org.osgi</groupId>
				<artifactId>osgi.core</artifactId>
				<version>6.0.0</version>
				<scope>provided</scope>
			</dependency>
		
			<dependency>
				<groupId>org.osgi</groupId>
				<artifactId>osgi.cmpn</artifactId>
				<version>6.0.0</version>
				<scope>provided</scope>
			</dependency>
		
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${slf4j-api.version}</version>
			</dependency>
		
			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-core</artifactId>
				<version>${logback-core.version}</version>
			</dependency>
		
			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-classic</artifactId>
				<version>${logback-classic.version}</version>
			</dependency>
		
			<dependency>
				<groupId>com.typesafe</groupId>
				<artifactId>config</artifactId>
				<version>${typesafe.config.version}</version>
			</dependency>
		
			<!-- Thymeleaf Dependencies -->
		
			<dependency>
				<groupId>org.javassist</groupId>
				<artifactId>javassist</artifactId>
				<version>${javaassit.version}</version>
			</dependency>
		
			<dependency>
				<groupId>org.attoparser</groupId>
				<artifactId>attoparser</artifactId>
				<version>${attoparser.version}</version>
			</dependency>
		
			<dependency>
				<groupId>org.unbescape</groupId>
				<artifactId>unbescape</artifactId>
				<version>${unbescape.version}</version>
			</dependency>
		
			<dependency>
				<groupId>ognl</groupId>
				<artifactId>ognl</artifactId>
				<version>${ognl.version}</version>
				<exclusions>
					<exclusion>
						<groupId>javassist</groupId>
						<artifactId>javassist</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
		
			<dependency>
				<groupId>org.thymeleaf</groupId>
				<artifactId>thymeleaf</artifactId>
				<version>${thymeleaf.version}</version>
				<exclusions>
					<exclusion>
						<groupId>org.slf4j</groupId>
						<artifactId>slf4j-api</artifactId>
					</exclusion>
					<exclusion>
						<groupId>org.attoparser</groupId>
						<artifactId>attoparser</artifactId>
					</exclusion>
					<exclusion>
						<groupId>org.unbescape</groupId>
						<artifactId>unbescape</artifactId>
					</exclusion>
					<exclusion>
						<groupId>ognl</groupId>
						<artifactId>ognl</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
		
			<!-- OSGi Bundles Starts -->
		
			<dependency>
				<groupId>org.json</groupId>
				<artifactId>json</artifactId>
				<version>${org.json.version}</version>
				<scope>provided</scope>
			</dependency>
		
			<dependency>
				<groupId>io.fastjson</groupId>
				<artifactId>boon</artifactId>
				<version>${boon-json.version}</version>
				<scope>provided</scope>
			</dependency>
		
			<dependency>
				<groupId>commons-fileupload</groupId>
				<artifactId>commons-fileupload</artifactId>
				<version>${commons-fileupload.version}</version>
				<scope>provided</scope>
			</dependency>
		
			<dependency>
				<groupId>commons-io</groupId>
				<artifactId>commons-io</artifactId>
				<version>${commons-io.version}</version>
				<scope>provided</scope>
			</dependency>
			
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-lang3</artifactId>
				<version>${commons-lang.version}</version>
				<scope>provided</scope>
			</dependency>
		
		</dependencies>
	
	</dependencyManagement>
	
	<profiles>
	
	    <profile>
            <id>Release</id>
            <build>
                <plugins>

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

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>3.0.1</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.4</version>
                        <configuration>
                            <additionalparam>-Xdoclint:none</additionalparam>
                        </configuration>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                </plugins>
            </build>
        </profile>

    </profiles>
	
</project>