<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>cv.igrp</groupId>
	<artifactId>igrp-core-war</artifactId>
	<version>1.7.2.230624</version>
	<packaging>war</packaging>
	<name>IGRP Framework WAR</name>
	<description>IGRPWeb is a platform developed by the Operational Nucleus for
		the Information Society (NOSi) to create web applications, based on
		business steps, processes, automatic code generation and incorporation
		of the Once-Only-Principle, written in Java.
		The IGRPWeb core is extremely lightweight and based on simple concepts.
		It's open-source and distributed under the Apache 2.0 license. Allows
		you to build unlimited number of e-government applications by yourself
		ensuring sustainability with an affordable and scalable solution on your
		own data.
	</description>
	<url>https://github.com/NOSiCode-CV/IGRP-Framework</url>

	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
		</license>
	</licenses>
	<developers>
		<developer>
			<name>IGRP</name>
			<email>igrpweb@nosi.cv</email>
			<organization>NOSI EPE</organization>
			<organizationUrl>https://nosi.cv</organizationUrl>
		</developer>
	</developers>

	<scm>
		<connection>scm:git:git://github.com/NOSiCode-CV/IGRP-Framework.git</connection>
		<developerConnection>
			scm:git:ssh://github.com/NOSiCode-CV/IGRP-Framework.git</developerConnection>
		<url>http://github.com/NOSiCode-CV/IGRP-Framework/tree/master</url>
	</scm>
	<properties>
		<!-- Maven compiler plugin -->
		<maven.compiler.plugin.version>3.8.1</maven.compiler.plugin.version>
			<!-- Maven war plugin -->
		<maven.war.plugin.version>3.3.1</maven.war.plugin.version>
	
 			 
		<tomee.version>8.0.14</tomee.version>
		<tomee.classifier>plus</tomee.classifier>
			<!-- TomEE Embedded Maven Plugin -->
		<tomee.maven.plugin.version>8.0.14</tomee.maven.plugin.version>
			<!-- TomEE Embedded -->
		<tomee.embedded.version>8.0.14</tomee.embedded.version>
		
	</properties>

	<dependencies>
		<dependency>
			<groupId>cv.igrp</groupId>
			<artifactId>igrp-core</artifactId>		
		    <version>${project.version}</version>
			<type>jar</type>
			<scope>provided</scope>
		</dependency>

		<!-- https://mvnrepository.com/artifact/org.apache.tomee/tomee-embedded -->
		<dependency>
		    <groupId>org.apache.tomee</groupId>
		    <artifactId>tomee-embedded</artifactId>
		    <version>${tomee.embedded.version}</version>
		    <scope>provided</scope>
		</dependency>
	</dependencies>

	<build>
		<finalName>${project.artifactId}</finalName>
		<directory>${project.basedir}/target</directory>
		<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
		<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
		<outputDirectory>${project.build.directory}/classes</outputDirectory>
		<testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory>
		<resources>
			<resource>
				<directory>${project.basedir}/src/main/resources</directory>
			</resource>
		</resources>
		<testResources>
			<testResource>
				<directory>${project.basedir}/src/test/resources</directory>
			</testResource>
		</testResources>

		<pluginManagement>
			<plugins>
				<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
				<plugin>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>${maven.compiler.plugin.version}</version>
					<configuration>
		                <includes>
		                	<include>**/*.java</include>
		                </includes>
		            </configuration>
				</plugin>
				<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-war-plugin -->
				<plugin>
				    <artifactId>maven-war-plugin</artifactId>
				    <version>${maven.war.plugin.version}</version>
				</plugin>
				
                <!-- Embedded TomEE plugin -->
				<plugin>
					<groupId>org.apache.tomee.maven</groupId>
					<artifactId>tomee-maven-plugin</artifactId>
					<version>${tomee.maven.plugin.version}</version>
					<configuration>
						<tomeeClassifier>plus</tomeeClassifier>
						<reloadOnUpdate>true</reloadOnUpdate>
						<args>-Dfile.encoding=UTF-8</args>
						<synchronization>
					      <extensions>
					        <extension>.class</extension> <!-- if you want to update each time you build with mvn compile -->
					        <extension>.properties</extension>
					        <extension>.xml</extension>
					      </extensions>
					    </synchronization>
					    <systemVariables>
							<tomee.serialization.class.whitelist />
							<tomee.serialization.class.blacklist>-</tomee.serialization.class.blacklist>
							<openejb.system.apps>true</openejb.system.apps>
							<tomee.remote.support>true</tomee.remote.support>
						</systemVariables>
					</configuration>
				</plugin>
			<!-- Dependency repository -->

        <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.13</version>
            <extensions>true</extensions>
            <configuration>
                <serverId>ossrh</serverId>
                <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
                <autoReleaseAfterClose>true</autoReleaseAfterClose>
            </configuration>
         </plugin>

         <plugin>
	      <groupId>org.apache.maven.plugins</groupId>
	      <artifactId>maven-gpg-plugin</artifactId>
	      <version>3.1.0</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.3.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>3.5.0</version>
      <executions>
        <execution>
          <id>attach-javadocs</id>
          <goals>
            <goal>jar</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-release-plugin</artifactId>
  <version>3.0.1</version>
  <configuration>
    <autoVersionSubmodules>true</autoVersionSubmodules>
    <useReleaseProfile>false</useReleaseProfile>
    <releaseProfiles>release</releaseProfiles>
    <goals>deploy</goals>
  </configuration>
</plugin>

    </plugins>
		</pluginManagement>
	</build>
	
  
<!-- Dependency repository -->
		<distributionManagement>
            <snapshotRepository>
                <id>ossrh</id>
                 <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
             </snapshotRepository>
             <repository>
                <id>ossrh</id>
                 <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
             </repository>
        </distributionManagement>
						</project>
