-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
139 lines (139 loc) · 4.65 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?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">
<name>Data Language Examples</name>
<modelVersion>4.0.0</modelVersion>
<groupId>de.s42</groupId>
<artifactId>dlexamples</artifactId>
<version>0.1.0</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>14</maven.compiler.source>
<maven.compiler.target>14</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>de.s42</groupId>
<artifactId>base42</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>de.s42</groupId>
<artifactId>log42</artifactId>
<version>0.1.0</version>
<scope>compile</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>de.s42</groupId>
<artifactId>dl</artifactId>
<version>0.1.0</version>
<scope>compile</scope>
<type>jar</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>generate-resources</phase>
<configuration>
<target>
<exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
<arg value="describe"/>
<arg value="--tags"/>
<arg value="--always"/>
<arg value="--abbrev=11"/>
<arg value="HEAD"/>
</exec>
<property name="versionFile" value="${project.basedir}/src/main/resources/de/s42/dl/examples/${project.artifactId}.version"/>
<property name="fullVersion" value="${project.version} #${git.revision} ${maven.build.timestamp}"/>
<echo file="${versionFile}">${fullVersion}</echo>
<echo>New version is ${fullVersion}</echo>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<!-- https://stackoverflow.com/questions/64688896/how-to-make-testng-print-detail-message-about-the-failure -->
<trimStackTrace>false</trimStackTrace>
<argLine>--add-modules de.sft.dlexamples -Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-compiler-plugin/ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-dependency-plugin/ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/libs
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-jar-plugin/ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>de.sft.dlexamples</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-mojo.html -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<outputDirectory>${project.basedir}/docs</outputDirectory>
<reportOutputDirectory>${project.basedir}/docs</reportOutputDirectory>
<destDir>javadoc</destDir>
<show>private</show>
</configuration>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-install-plugin/ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
</plugins>
</build>
</project>