java/sql-dk/pom.xml
author František Kučera <franta-hg@frantovo.cz>
Sun, 13 Sep 2020 12:01:35 +0200
branchv_0
changeset 253 d8442b266ca8
parent 244 6bdb45af26d9
permissions -rw-r--r--
combatibility with Java 9+, Tested with Java 11; JAXB library
franta-hg@238
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@238
     2
<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">
franta-hg@238
     3
	<modelVersion>4.0.0</modelVersion>
franta-hg@238
     4
	<groupId>info.globalcode.sql.dk</groupId>
franta-hg@238
     5
	<artifactId>sql-dk</artifactId>
franta-hg@244
     6
	<version>0.11-SNAPSHOT</version>
franta-hg@238
     7
	<packaging>jar</packaging>
franta-hg@238
     8
	
franta-hg@238
     9
	<properties>
franta-hg@238
    10
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
franta-hg@238
    11
		<maven.compiler.source>1.8</maven.compiler.source>
franta-hg@238
    12
		<maven.compiler.target>1.8</maven.compiler.target>
franta-hg@241
    13
		<junit.version>5.4.0</junit.version>
franta-hg@238
    14
	</properties>
franta-hg@238
    15
	
franta-hg@241
    16
	<dependencies>
franta-hg@241
    17
		<dependency>
franta-hg@253
    18
			<groupId>jakarta.xml.bind</groupId>
franta-hg@253
    19
			<artifactId>jakarta.xml.bind-api</artifactId>
franta-hg@253
    20
			<version>2.3.3</version>
franta-hg@253
    21
		</dependency>
franta-hg@253
    22
		<dependency>
franta-hg@253
    23
			<groupId>com.sun.xml.bind</groupId>
franta-hg@253
    24
			<artifactId>jaxb-impl</artifactId>
franta-hg@253
    25
			<version>2.3.3</version>
franta-hg@253
    26
			<scope>runtime</scope>
franta-hg@253
    27
		</dependency>
franta-hg@253
    28
		<dependency>
franta-hg@241
    29
			<groupId>org.junit.jupiter</groupId>
franta-hg@241
    30
			<artifactId>junit-jupiter-engine</artifactId>
franta-hg@241
    31
			<version>${junit.version}</version>
franta-hg@241
    32
			<scope>test</scope>
franta-hg@241
    33
		</dependency>
franta-hg@241
    34
		<dependency>
franta-hg@241
    35
			<groupId>org.junit.jupiter</groupId>
franta-hg@241
    36
			<artifactId>junit-jupiter-params</artifactId>
franta-hg@241
    37
			<version>${junit.version}</version>
franta-hg@241
    38
			<scope>test</scope>
franta-hg@241
    39
		</dependency>
franta-hg@241
    40
	</dependencies>
franta-hg@241
    41
	
franta-hg@238
    42
	<build>
franta-hg@238
    43
		<plugins>
franta-hg@238
    44
			<plugin>
franta-hg@238
    45
				<groupId>org.codehaus.mojo</groupId>
franta-hg@238
    46
				<artifactId>exec-maven-plugin</artifactId>
franta-hg@238
    47
				<version>1.6.0</version>
franta-hg@238
    48
				<executions>
franta-hg@238
    49
					<execution>
franta-hg@238
    50
						<id>version-info</id>
franta-hg@238
    51
						<phase>generate-sources</phase>
franta-hg@238
    52
						<goals>
franta-hg@238
    53
							<goal>exec</goal>
franta-hg@238
    54
						</goals>
franta-hg@238
    55
						<configuration>
franta-hg@238
    56
							<executable>./version-info.sh</executable>
franta-hg@238
    57
							<outputFile>src/main/resources/info/globalcode/sql/dk/version.txt</outputFile><!-- TODO: move to target/generated-sources/ -->
franta-hg@238
    58
						</configuration>
franta-hg@238
    59
					</execution>
franta-hg@238
    60
					<execution>
franta-hg@238
    61
						<id>help-generator</id>
franta-hg@238
    62
						<phase>generate-sources</phase>
franta-hg@238
    63
						<goals>
franta-hg@238
    64
							<goal>exec</goal>
franta-hg@238
    65
						</goals>
franta-hg@238
    66
						<configuration>
franta-hg@238
    67
							<executable>./help-generator.sh</executable>
franta-hg@238
    68
							<outputFile>src/main/resources/info/globalcode/sql/dk/help.txt</outputFile><!-- TODO: move to target/generated-sources/ -->
franta-hg@238
    69
						</configuration>
franta-hg@238
    70
					</execution>
franta-hg@238
    71
					<execution>
franta-hg@238
    72
						<id>bash-completion</id>
franta-hg@238
    73
						<phase>generate-sources</phase>
franta-hg@238
    74
						<goals>
franta-hg@238
    75
							<goal>exec</goal>
franta-hg@238
    76
						</goals>
franta-hg@238
    77
						<configuration>
franta-hg@238
    78
							<executable>./bash-completion.sh</executable>
franta-hg@238
    79
							<outputFile>target/bash-completion.sh</outputFile>
franta-hg@238
    80
						</configuration>
franta-hg@238
    81
					</execution>
franta-hg@238
    82
				</executions>
franta-hg@238
    83
			</plugin>
franta-hg@241
    84
			<plugin>
franta-hg@241
    85
				<!--
franta-hg@241
    86
					Without this, tests are executed as „POJO Tests“ instead of „JUnit5 Tests“
franta-hg@241
    87
					and @BeforeEach annotation does not work.
franta-hg@241
    88
					http://maven.apache.org/surefire/maven-surefire-plugin/examples/pojo-test.html
franta-hg@241
    89
				-->
franta-hg@241
    90
				<artifactId>maven-surefire-plugin</artifactId>
franta-hg@241
    91
				<version>2.22.0</version>
franta-hg@241
    92
				<dependencies>
franta-hg@241
    93
					<dependency>
franta-hg@241
    94
						<groupId>org.junit.platform</groupId>
franta-hg@241
    95
						<artifactId>junit-platform-surefire-provider</artifactId>
franta-hg@241
    96
						<version>1.2.0</version>
franta-hg@241
    97
					</dependency>
franta-hg@241
    98
				</dependencies>
franta-hg@241
    99
			</plugin>
franta-hg@253
   100
			<plugin>
franta-hg@253
   101
				<artifactId>maven-dependency-plugin</artifactId>
franta-hg@253
   102
				<version>3.1.1</version>
franta-hg@253
   103
				<executions>
franta-hg@253
   104
					<execution>
franta-hg@253
   105
						<phase>process-sources</phase>
franta-hg@253
   106
						<goals>
franta-hg@253
   107
							<goal>copy-dependencies</goal>
franta-hg@253
   108
						</goals>
franta-hg@253
   109
						<configuration>
franta-hg@253
   110
							<outputDirectory>${project.build.directory}/lib</outputDirectory>
franta-hg@253
   111
							<includeScope>runtime</includeScope>
franta-hg@253
   112
						</configuration>
franta-hg@253
   113
					</execution>
franta-hg@253
   114
				</executions>
franta-hg@253
   115
			</plugin>
franta-hg@238
   116
		</plugins>
franta-hg@238
   117
	</build>
franta-hg@238
   118
	
franta-hg@238
   119
</project>