<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>no.esito</groupId>
    <artifactId>g9-runtime</artifactId>
    <version>2.9.0</version>
    <packaging>pom</packaging>
    <name>g9 Runtime API</name>
    <description>Super POM of the g9 runtime API. Defines dependencies and properties used by the modules</description>
    <url>http://www.esito.no</url>
    <licenses>
        <license>
            <name>g9 Runtime License Agreement</name>
            <url>http://download.esito.no/licenses/g9runtimelicense.html</url>
        </license>
    </licenses>
    <developers>
        <developer>
            <name>g9 Runtime API Dev Team</name>
            <email>dev@esito.no</email>
            <organization>Esito AS</organization>
            <organizationUrl>http://www.esito.no</organizationUrl>
        </developer>
    </developers>
    <organization>
        <name>Esito AS</name>
        <url>http://www.esito.no</url>
    </organization>
    <inceptionYear>2006</inceptionYear>
    <scm>
        <connection>http://www.esito.no/en/products</connection>
        <developerConnection>http://www.esito.no/en/products</developerConnection>
        <url>http://www.esito.no/en/products</url>
    </scm>
    <properties>
        <!-- PROPERTIES USED IN BUILD/PACKAGING -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <!-- DEPENDENCY VERSIONS -->
        <java.build.version>1.8</java.build.version>
        <log4j.version>2.11.2</log4j.version>
        <jboss.logging.version>3.4.1.Final</jboss.logging.version>
        <ejb.version>3.2.0</ejb.version>
        <spring.version>4.3.25.RELEASE</spring.version>
        <spring.ws.version>2.4.6.RELEASE</spring.ws.version>
        <hibernate.version>5.1.17.Final</hibernate.version>
        <jasperreports.version>6.9.0</jasperreports.version>
        <junit.version>4.12</junit.version>
        <jsf2.version>2.2.10</jsf2.version>
        <servlet.version>3.1.0</servlet.version>
        <icefaces2.version>4.2.0</icefaces2.version>
        <jetty.version>9.4.19.v20190610</jetty.version>
        <poi.version>3.9</poi.version>
        <el.version>2.2.1-b04</el.version>
        <mockito.version>1.10.19</mockito.version>
        <jackson.version>2.9.9</jackson.version>
        <castor.version>1.4.1</castor.version>
        <joda-time.version>2.10.3</joda-time.version>
        <guava.version>28.1-jre</guava.version>

        <!-- PLUGIN VERSIONS -->
        <findbugs.version>3.0.0</findbugs.version>
    </properties>
    <build>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.1</version>
          <configuration>
            <source>${java.build.version}</source>
            <target>${java.build.version}</target>
          </configuration>
        </plugin>

        <plugin>
          <groupId>org.jacoco</groupId>
          <artifactId>jacoco-maven-plugin</artifactId>
          <version>0.7.7.201606060606</version>
          <configuration>
            <destFile>${project.basedir}/../jacoco-merged.exec</destFile>
            <append>true</append>
            <rules>
              <!-- implementation is needed only for Maven 2 -->
              <rule implementation="org.jacoco.maven.RuleConfiguration">
                <element>BUNDLE</element>
                <limits>
                  <!-- implementation is needed only for Maven 2 -->
                  <limit implementation="org.jacoco.report.check.Limit">
                    <counter>COMPLEXITY</counter>
                    <value>COVEREDRATIO</value>
                    <minimum>0.60</minimum>
                  </limit>
                </limits>
              </rule>
            </rules>
          </configuration>
          <executions>
            <execution>
              <id>default-prepare-agent</id>
              <goals>
                <goal>prepare-agent</goal>
              </goals>
            </execution>
            <execution>
              <id>default-report</id>
              <!-- <phase>prepare-package</phase> -->
              <phase>prepare-package</phase>
              <goals>
                <goal>report</goal>
              </goals>
            </execution>
            <execution>
              <id>default-check</id>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
      <pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>findbugs-maven-plugin</artifactId>
					<version>${findbugs.version}</version>
					<configuration>
						<excludeFilterFile>${project.parent.basedir}/src/test/config/findbugs-exclude.xml</excludeFilterFile>
						<includeFilterFile>${project.parent.basedir}/src/test/config/findbugs-include.xml</includeFilterFile>
						<threshold>Default</threshold>  <!--  High, Default, Low, Ignore, and Exp (for experimental) -->
						<effort>Default</effort> <!-- Max, Default, Min -->
						<includeTests>true</includeTests>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>  
    </build>
    <profiles>
        <profile>
            <id>build-assembly</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>2.2.1</version>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                                <configuration>
                                    <archive>
                                        <manifestEntries>
                                            <ProductName>${project.name}</ProductName>
                                            <G9Version>2.9.0</G9Version>
                                        </manifestEntries>
                                    </archive>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jar-plugin</artifactId>
                        <version>2.4</version>
                        <configuration>
                            <archive>
                                <manifestEntries>
                                    <ProductName>${project.name}</ProductName>
                                    <G9Version>2.9.0</G9Version>
                                </manifestEntries>
                            </archive>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>2.10.4</version>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <quiet>true</quiet>
                            <excludePackageNames>no.esito*</excludePackageNames>
                            <additionalparam> -tag roseuid -tag beaninfo</additionalparam>
                            <splitindex>true</splitindex>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <modules>
                <module>assembly</module>
            </modules>
        </profile>
        <profile>
            <id>deployNexus</id>
            <distributionManagement>
                <repository>
                    <id>esito-repo-Releases</id>
                    <name>Releases (Nexus)</name>
                    <url>http://esito-repo.crayon.as/content/repositories/releases/</url>
                </repository>
                <snapshotRepository>
                    <id>esito-repo-Snapshots</id>
                    <name>Snapshots (Nexus)</name>
                    <url>http://esito-repo.crayon.as/content/repositories/snapshots/</url>
                </snapshotRepository>
            </distributionManagement>
        </profile>
        <profile>
            <id>deployOSSRH</id>
            <distributionManagement>
                <snapshotRepository>
                    <id>ossrh</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                </snapshotRepository>
            </distributionManagement>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <version>1.6.8</version>
                        <extensions>true</extensions>
                        <configuration>
                            <serverId>ossrh</serverId>
                            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                            <autoReleaseAfterClose>false</autoReleaseAfterClose>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>signGPG</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.5</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
    <modules>
        <module>g9-annotation</module>
        <module>g9-common</module>
        <module>g9-jgrape</module>
        <module>g9-jvine</module>
        <module>g9-icefaces2</module>
        <module>g9-swing</module>
        <module>g9-jouteur</module>
        <module>g9-jgrape-ejb3</module>
        <module>g9-jgrapelog-ejb3</module>
        <module>g9-tx-ejb3</module>
        <module>g9-print-ejb3</module>
    </modules>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-annotation</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-common</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-jgrape</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-jvine</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-icefaces2</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-swing</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-jouteur</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-tx-ejb3</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-jgrape-ejb3</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-jgrapelog-ejb3</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.esito</groupId>
                <artifactId>g9-print-ejb3</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.oracle.weblogic</groupId>
                <artifactId>javax.ejb</artifactId>
                <version>${ejb.version}</version>
            </dependency>
			<!-- Replaces this from 3.0.1: -->
            <!--dependency>
                <groupId>javax.ejb</groupId>
                <artifactId>ejb</artifactId>
                <version>${ejb.version}</version>
            </dependency-->
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-test</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-aspects</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.ws</groupId>
                <artifactId>spring-ws-core</artifactId>
                <version>${spring.ws.version}</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-core</artifactId>
                <version>${hibernate.version}</version>
            </dependency>
			<dependency>
			    <groupId>org.apache.logging.log4j</groupId>
			    <artifactId>log4j-api</artifactId>
			    <version>${log4j.version}</version>
			</dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-core</artifactId>
                <version>${log4j.version}</version>
                <scope>runtime</scope>
            </dependency>
	        <dependency>
	            <groupId>org.apache.logging.log4j</groupId>
	            <artifactId>log4j-jcl</artifactId>
                <version>${log4j.version}</version>
                <scope>runtime</scope>
	        </dependency>
	        <dependency>
	            <groupId>org.apache.logging.log4j</groupId>
	            <artifactId>log4j-jul</artifactId>
                <version>${log4j.version}</version>
                <scope>runtime</scope>
	        </dependency>
	        <dependency>
	            <groupId>org.apache.logging.log4j</groupId>
	            <artifactId>log4j-slf4j-impl</artifactId>
                <version>${log4j.version}</version>
                <scope>runtime</scope>
	        </dependency>
	        <dependency>
	            <groupId>org.apache.logging.log4j</groupId>
	            <artifactId>log4j-web</artifactId>
                <version>${log4j.version}</version>
	            <scope>runtime</scope>
	        </dependency>
            <dependency>
                <groupId>org.jboss.logging</groupId>
                <artifactId>jboss-logging</artifactId>
                <version>${jboss.logging.version}</version>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-server</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-xml</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-webapp</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>net.sf.jasperreports</groupId>
                <artifactId>jasperreports</artifactId>
                <version>${jasperreports.version}</version>
            </dependency>
            <dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-api</artifactId>
                <version>${jsf2.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>${servlet.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.el</groupId>
                <artifactId>el-api</artifactId>
                <version>${el.version}</version>
            </dependency>
            <dependency>
                <groupId>org.icefaces</groupId>
                <artifactId>icefaces-ace</artifactId>
                <version>${icefaces2.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi</artifactId>
                <version>${poi.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-ooxml</artifactId>
                <version>${poi.version}</version>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.castor</groupId>
                <artifactId>castor-xml</artifactId>
                <version>${castor.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>${mockito.version}</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito.version}</version>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>${joda-time.version}</version>
            </dependency>
            <dependency>
              <groupId>com.google.guava</groupId>
              <artifactId>guava</artifactId>
              <version>${guava.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
	<reporting>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>findbugs-maven-plugin</artifactId>
				<configuration>
					<excludeFilterFile>${project.parent.basedir}/src/test/config/findbugs-exclude.xml</excludeFilterFile>
					<includeFilterFile>${project.parent.basedir}/src/test/config/findbugs-include.xml</includeFilterFile>
					<threshold>Default</threshold>  <!--  High, Default, Low, Ignore, and Exp (for experimental) -->
					<effort>Default</effort> <!-- Max, Default, Min -->
					<includeTests>true</includeTests>
				</configuration>
			</plugin>
		</plugins>
	</reporting>
</project>
