<?xml version="1.0" encoding="UTF-8"?>
<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>ee.datel.xtee6</groupId>
	<artifactId>xtee6-client-parent</artifactId>
	<version>2.3.0</version>
	<packaging>pom</packaging>

	<name>${project.groupId}:${project.artifactId}</name>
	<description>Library for XROAD service clints - Parent</description>
	<inceptionYear>2018</inceptionYear>
	<url>https://www.datel.eu/en/</url>
	<organization>
		<name>AS Datel</name>
		<url>https://www.datel.eu/en/</url>
	</organization>
	<licenses>
		<license>
			<name>Free Binary Use License</name>
			<comments>
				<![CDATA[
Copyright (C) 2018 - 2021 AS Datel <licenses@datel.ee>

Redistribution and use in binary form, without modification, are permitted
provided that the following conditions are met:
                          
1. Redistributions in must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.

2. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
      ]]>
			</comments>
		</license>
	</licenses>
	<developers>
		<developer>
			<organization>AS Datel</organization>
			<email>licenses@datel.ee</email>
			<organizationUrl>https://www.datel.eu/en/</organizationUrl>
		</developer>
	</developers>
	<scm>
		<connection>scm:svn:https://tarkvara.datel.ee/bitbucket/scm/dgs6/dogis6-parent.git</connection>
		<url>https://tarkvara.datel.ee/bitbucket/projects/DGS6/repos/dogis6-parent/browse</url>
	</scm>

	<properties>
		<maven.compiler.source>11</maven.compiler.source>
		<maven.compiler.target>11</maven.compiler.target>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<profiles>
		<profile>
			<id>dev</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
		</profile>
		<profile>
			<id>owasp</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.owasp</groupId>
						<artifactId>dependency-check-maven</artifactId>
						<version>6.2.1</version>
						<configuration>
							<failBuildOnCVSS>9</failBuildOnCVSS>
						</configuration>
						<executions>
							<execution>
								<goals>
									<goal>check</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>local</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>3.2.1</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
			<distributionManagement>
				<repository>
					<uniqueVersion>false</uniqueVersion>
					<id>datel-libs-artifactory</id>
					<url>http://artifactory.datel.ee/artifactory/libs-release-local</url>
				</repository>
			</distributionManagement>
		</profile>

		<profile>
			<id>deploy</id>
			<properties>
				<license.licenseName>datel</license.licenseName>
				<license.licenseResolver>${project.baseUri}license</license.licenseResolver>
			</properties>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-sources</id>
								<phase>package</phase>
								<goals>
									<goal>jar-no-fork</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<archive>
								<addMavenDescriptor>false</addMavenDescriptor>
							</archive>
							<useDefaultManifestFile>true</useDefaultManifestFile>
							<excludeResources>true</excludeResources>
							<includePom>false</includePom>
							<forceCreation>true</forceCreation>
							<includes>
								<include>source.txt</include>
							</includes>
							<excludes>
								<exclude>ee/**</exclude>
							</excludes>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<show>public</show>
							<encoding>UTF-8</encoding>
							<excludePackageNames>ee.xtee6.*</excludePackageNames>
						</configuration>
					</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>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-resources-plugin</artifactId>
						<version>3.2.0</version>
						<executions>
							<execution>
								<id>copy-resources</id>
								<phase>validate</phase>
								<goals>
									<goal>copy-resources</goal>
								</goals>
								<configuration>
									<outputDirectory>${basedir}/target/extra-resources</outputDirectory>
									<resources>
										<resource>
											<directory>../license/datel</directory>
											<targetPath>../generated-sources/annotations</targetPath>
											<filtering>false</filtering>
											<includes>
												<include>source.txt</include>
											</includes>
										</resource>
									</resources>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>license-maven-plugin</artifactId>
						<version>2.0.0</version>
						<configuration>
							<organizationName>AS Datel &lt;licenses@datel.ee&gt;</organizationName>
							<inceptionYear>${project.inceptionYear}</inceptionYear>
							<encoding>UTF-8</encoding>
							<licenseName>datel</licenseName>
							<includeTransitiveDependencies>true</includeTransitiveDependencies>
							<addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
							<canUpdateCopyright>true</canUpdateCopyright>
							<canUpdateDescription>true</canUpdateDescription>
							<canUpdateLicense>true</canUpdateLicense>
							<trimHeaderLine>true</trimHeaderLine>
							<verbose>false</verbose>
						</configuration>
						<executions>
							<execution>
								<id>first</id>
								<goals>
									<goal>update-file-header</goal>
								</goals>
								<phase>process-sources</phase>
								<configuration>
									<processStartTag>==========================LICENSE_START===================================</processStartTag>
									<sectionDelimiter>�</sectionDelimiter>
									<processEndTag>===========================LICENSE_END====================================</processEndTag>
									<roots>
										<root>src/main/java</root>
										<root>src/test/java</root>
									</roots>
								</configuration>
							</execution>
							<execution>
								<id>second</id>
								<goals>
									<goal>update-project-license</goal>
								</goals>
								<phase>generate-sources</phase>
							</execution>
						</executions>
					</plugin>
					<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>
			<distributionManagement>
				<repository>
					<id>ossrh</id>
					<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
				</repository>
			</distributionManagement>
		</profile>
	</profiles>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>ee.datel.xtee6</groupId>
				<artifactId>xtee6-client-common</artifactId>
				<version>${project.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>com.sun.xml.ws</groupId>
			<artifactId>jaxws-rt</artifactId>
			<version>2.3.5</version>
		</dependency>
		<dependency>
			<groupId>org.junit.jupiter</groupId>
			<artifactId>junit-jupiter</artifactId>
			<version>5.8.2</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.8.1</version>
					<configuration>
						<optimize>true</optimize>
						<debug>true</debug>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jar-plugin</artifactId>
					<configuration>
						<archive>
							<addMavenDescriptor>false</addMavenDescriptor>
						</archive>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>jaxws-maven-plugin</artifactId>
					<version>2.6</version>
					<configuration>
						<bindingFiles>
							<bindingFile>${project.parent.basedir}/wsdl/bindings.xml</bindingFile>
						</bindingFiles>
						<args>
							<arg>-extension</arg>
							<arg>
                -encoding UTF-8
              </arg>
							<arg>-mark-generated</arg>
						</args>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.22.2</version>
				<configuration>
					<forkedProcessExitTimeoutInSeconds>5</forkedProcessExitTimeoutInSeconds>
					<forkedProcessTimeoutInSeconds>120</forkedProcessTimeoutInSeconds>
					<redirectTestOutputToFile>true</redirectTestOutputToFile>
					<forkCount>1</forkCount>
					<forkMode>once</forkMode>
					<threadCount>1</threadCount>
					<useUnlimitedThreads>false</useUnlimitedThreads>
					<reuseForks>true</reuseForks>
					<argLine>${argLine} -Xmx1024m -Xms1024m</argLine>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>0.8.7</version>
				<configuration>
					<excludes>
						<exclude>ee/xtee6/**</exclude>
					</excludes>
				</configuration>
				<executions>
					<execution>
						<id>default-prepare-agent</id>
						<goals>
							<goal>prepare-agent</goal>
						</goals>
					</execution>
					<execution>
						<id>default-report</id>
						<goals>
							<goal>report</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.owasp</groupId>
				<artifactId>dependency-check-maven</artifactId>
				<reportSets>
					<reportSet>
						<reports>
							<report>aggregate</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>ee/xtee6/**</exclude>
					</excludes>
				</configuration>
				<reportSets>
					<reportSet>
						<reports>
							<report>report</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
		</plugins>
	</reporting>

	<modules>
		<module>xtee6-client-common</module>
		<module>xtee6-client-etak</module>
		<module>xtee6-client-ads</module>
		<module>xtee6-client-kvr</module>
		<module>xtee6-client-rr</module>
		<module>xtee6-client-muinas</module>
		<module>xtee6-client-kr</module>
		<module>xtee6-client-mis</module>
		<module>xtee6-client-arireg</module>
		<module>xtee6-client-jvis</module>
		<module>xtee6-client-ehr</module>
		<module>xtee6-client-knr</module>
		<module>xtee6-client-kpois</module>
	</modules>
</project>