<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>dk.nsp.sorutils</groupId>
	<artifactId>sorutils</artifactId>
	<version>1.0.6</version>

	<properties>
		<commons-pool.version>1.6</commons-pool.version>
		<commons-lang3.version>3.9</commons-lang3.version>
		<msbutil-common.version>1.0.1</msbutil-common.version>
		<spring.version>5.2.0.RELEASE</spring.version>
	</properties>

	<packaging>pom</packaging>

	<scm>
		<url>scm:svn:https://svn.nspop.dk/svn/libraries/SORUtils/tags/release-1.0.6</url>
		<connection>scm:svn:https://svn.nspop.dk/svn/libraries/SORUtils/tags/release-1.0.6</connection>
		<developerConnection>scm:svn:https://svn.nspop.dk/svn/libraries/SORUtils/tags/release-1.0.6</developerConnection>
	</scm>

	<repositories>
		<repository>
			<id>nspop</id>
			<name>NSPOP Nexus</name>
			<url>https://nexus.nspop.dk/nexus/content/repositories/releases/</url>
		</repository>
	</repositories>

	<dependencies>
		<dependency>
			<groupId>dk.nsp.msbutil</groupId>
			<artifactId>msbutil-common</artifactId>
			<version>${msbutil-common.version}</version>
		</dependency>
		<dependency>
			<groupId>commons-pool</groupId>
			<artifactId>commons-pool</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-lang3</artifactId>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-core</artifactId>
			<version>3.3.3</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>4.2.1</version>
			<scope>provided</scope>
		</dependency>
		<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>2.4.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.sun.xml.ws</groupId>
			<artifactId>jaxws-rt</artifactId>
			<version>2.1.7</version>
			<exclusions>
				<exclusion>
					<groupId>stax</groupId>
					<artifactId>stax-api</artifactId>
				</exclusion>
				<exclusion>
					<groupId>javax.xml.stream</groupId>
					<artifactId>stax-api</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>com.sun.xml.ws</groupId>
			<artifactId>jaxws-tools</artifactId>
			<version>2.1.7</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>
	<modules>
		<module>interface</module>
		<module>client</module>
	</modules>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>commons-pool</groupId>
				<artifactId>commons-pool</artifactId>
				<version>${commons-pool.version}</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-lang3</artifactId>
				<version>${commons-lang3.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<profiles>
		<profile>
			<id>parent</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<build>
				<finalName>${project.artifactId}-${project.version}</finalName>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-compiler-plugin</artifactId>
						<version>2.3.2</version>
						<configuration>
							<source>1.8</source>
							<target>1.8</target>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-release-plugin</artifactId>
						<version>2.4</version>
						<configuration>
							<checkModificationExcludes>
								<checkModificationExclude>*.project</checkModificationExclude>
								<checkModificationExclude>*.classpath</checkModificationExclude>
							</checkModificationExcludes>
							<autoVersionSubmodules>true</autoVersionSubmodules>
							<tagBase>https://svn.nspop.dk/svn/libraries/SORUtils/tags</tagBase>
							<tagNameFormat>release-@{project.version}</tagNameFormat>
							<releaseProfiles>production</releaseProfiles>
							<goals>package</goals>
						</configuration>
					</plugin>
					<plugin>
						<inherited>false</inherited>
						<groupId>com.mycila.maven-license-plugin</groupId>
						<artifactId>maven-license-plugin</artifactId>
						<version>1.9.0</version>
						<configuration>
							<strictCheck>true</strictCheck>
							<header>${basedir}/standardheader.txt</header>
							<failIfMissing>true</failIfMissing>
							<aggregate>true</aggregate>
							<includes>
								<include>**/src/**/*.java</include>
							</includes>
						</configuration>
						<executions>
							<execution>
								<phase>verify</phase>
								<goals>
									<goal>format</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.jacoco</groupId>
						<artifactId>jacoco-maven-plugin</artifactId>
						<version>0.7.9</version>
						<configuration>
							<excludes>
								<exclude>dk/medcom/**/*</exclude>
								<exclude>dk/nsi/fmki20110601/**/*</exclude>
								<exclude>dk/nsi/state/_2011/_10/**/*</exclude>
								<exclude>dk/nsi/stamdata/_2011/_09/**/*</exclude>
								<exclude>dk/nsi/cprabbs/_2011/_10/**/*</exclude>
								<exclude>dk/oio/**/*</exclude>
								<exclude>oasis/**/*</exclude>
								<exclude>org/**/*</exclude>
								<exclude>dk/nsp/**/*Test.class</exclude>
							</excludes>
						</configuration>
						<executions>
							<execution>
								<id>pre-unit-test</id>
								<goals>
									<goal>prepare-agent</goal>
								</goals>
							</execution>
							<execution>
								<id>post-unit-test</id>
								<phase>test</phase>
								<goals>
									<goal>report</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>2.9</version>
						<configuration>
							<systemPropertyVariables>
								<jboss.server.log.dir>${java.io.tmpdir}</jboss.server.log.dir>
								<jboss.server.config.dir>${project.build.testOutputDirectory}/</jboss.server.config.dir>
							</systemPropertyVariables>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>
