-
Notifications
You must be signed in to change notification settings - Fork 3
/
pom.xml
349 lines (310 loc) · 20.6 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<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>ch.zizka.junitdiff</groupId>
<artifactId>JUnitDiff</artifactId>
<packaging>jar</packaging>
<version>2.0.1-SNAPSHOT</version>
<name>JUnitDiff</name>
<description>JUnitDiff creates a HTML table from JUnit results. Rows are tests, columns are runs. Clicking the statuses reveals a pop-up with the logs and the stacktrace if any. </description>
<url>https://github.com/OndraZizka/junitdiff</url>
<!-- <url>http://ondra.zizka.cz/stranky/programovani/java/junit-test-results-report-comparison-junitdiff.texy</url> -->
<licenses><license><name>The Apache Software License, Version 2.0</name><url>http://www.apache.org/licenses/LICENSE-2.0.txt</url><distribution>repo</distribution></license></licenses>
<developers><developer><name>Ondrej Zizka</name><email>[email protected]</email></developer></developers>
<issueManagement><system>GitHub Issues</system><url>https://github.com/OndraZizka/junitdiff/issues</url></issueManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.java>11</version.java>
<version.kotlin>1.8.0-Beta</version.kotlin>
<version.kotlin-dokka>1.7.20</version.kotlin-dokka>
<mainClass>ch.zizka.junitdiff.JUnitDiffApp</mainClass>
<distDir>${project.basedir}/./dist</distDir>
<jvm.args.debug />
<kotlin.version>${version.kotlin}</kotlin.version>
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
</properties>
<scm>
<url>https://github.com/OndraZizka/junitdiff</url>
<connection>scm:git:git://github.com/OndraZizka/junitdiff.git</connection>
<developerConnection>scm:git:[email protected]:OndraZizka/junitdiff.git</developerConnection>
<tag>JUnitDiff-2.0.0</tag>
</scm>
<build>
<resources>
<!-- This allows to have resources next to java files. For convenience in IDE. -->
<resource>
<directory>src/main/java</directory>
<excludes><exclude>**/*.java</exclude></excludes>
</resource>
<!-- This is the default resources dir; the resource above would disable it. -->
<resource> <directory>src/main/resources</directory> </resource>
<resource> <directory>xslt</directory>
<filtering>true</filtering>
<includes><include>*.xsl</include></includes>
</resource>
</resources>
<plugins>
<!-- Compiler -->
<plugin>
<groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-maven-plugin</artifactId><version>${kotlin.version}</version>
<executions>
<execution><id>compile</id><phase>compile</phase><goals><goal>compile</goal></goals></execution>
<execution><id>test-compile</id><phase>test-compile</phase><goals><goal>test-compile</goal></goals></execution>
</executions>
<configuration>
<jvmTarget>${version.java}</jvmTarget>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.10.1</version>
<executions>
<execution><id>default-compile</id><goals><goal>compile</goal></goals><phase>none</phase></execution>
<execution><id>default-test-compile</id><goals><goal>testCompile</goal></goals><phase>none</phase></execution>
</executions>
<configuration><source>${version.java}</source><target>${version.java}</target></configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>3.1.0</version>
<executions>
<execution>
<phase>clean</phase> <goals><goal>run</goal></goals>
<configuration> <target>
<unzip src="src/test/data/hibernate-ann-run1.zip" dest="target/sample-data/" overwrite="true" />
<unzip src="src/test/data/hibernate-ann-run2.zip" dest="target/sample-data/" overwrite="true" />
<unzip src="src/test/data/hibernate-ann-run3.zip" dest="target/sample-data/" overwrite="true" />
</target> </configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-assembly-plugin</artifactId><version>3.4.2</version>
<!-- The executable JAR(s), flattened -->
<executions>
<execution><phase>package</phase><goals><goal>single</goal></goals>
<configuration>
<appendAssemblyId>true</appendAssemblyId>
<finalName>${project.artifactId}</finalName>
<outputDirectory>${project.build.directory}/dist</outputDirectory>
<descriptorRefs><descriptorRef>jar-with-dependencies</descriptorRef></descriptorRefs>
<archive>
<manifest> <!-- Jar - MANIFEST.MF options. -->
<addClasspath>false</addClasspath>
<mainClass>${mainClass}</mainClass>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
<manifestEntries>
<Release-Version>${project.version}</Release-Version>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>3.0.0-M7</version>
<configuration>
<workingDirectory>target/</workingDirectory>
<systemPropertyVariables>
<junitdiff.test.data.dir>${basedir}/src/test/data</junitdiff.test.data.dir>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-enforcer-plugin</artifactId><version>3.1.0</version>
<executions><execution><id>enforce-maven</id><goals><goal>enforce</goal></goals></execution></executions>
<configuration><rules><requireMavenVersion><version>3.8.1</version></requireMavenVersion></rules></configuration>
</plugin>
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-clean-plugin</artifactId><version>3.2.0</version></plugin>
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><version>3.3.0</version></plugin>
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-deploy-plugin</artifactId><version>3.0.0</version></plugin>
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-install-plugin</artifactId><version>3.0.1</version></plugin>
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>3.3.0</version></plugin>
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-release-plugin</artifactId><version>3.0.0-M7</version></plugin>
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.3.0</version></plugin>
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-site-plugin</artifactId><version>4.0.0-M3</version></plugin>
</plugins>
</build>
<profiles>
<!-- Debug. -->
<profile>
<id>debug</id> <activation><property><name>debug</name></property></activation>
<properties>
<jvm.args.debug>-Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y</jvm.args.debug>
</properties>
</profile>
<profile>
<id>packageDistributable</id> <activation><property><name>release</name></property></activation>
<build>
<plugins>
<!-- Copy the dependencies to /lib -->
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><version>3.3.0</version>
<executions><execution><id>copyDeps</id><phase>prepare-package</phase><goals><goal>copy-dependencies</goal></goals></execution></executions>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<excludeTransitive>false</excludeTransitive>
<stripVersion>false</stripVersion>
</configuration>
</plugin>
<!-- Add the /lib above to the classPath. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>3.3.0</version>
<executions>
<execution> <!-- If the jars are within a jar, it would need a special classloader. -->
<id>executable</id><goals><goal>jar</goal></goals><phase>prepare-package</phase>
<configuration>
<classifier>executable</classifier>
<archive><manifest><addClasspath>true</addClasspath><classpathPrefix>lib/</classpathPrefix><mainClass>${mainClass}</mainClass></manifest></archive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-assembly-plugin</artifactId><version>3.4.2</version>
<executions>
<!-- Create the distributable ZIP. -->
<execution>
<id>assembleDistZip</id><goals><goal>single</goal></goals><phase>package</phase>
<configuration>
<finalName>${project.artifactId}-${project.version}-dist</finalName>
<appendAssemblyId>false</appendAssemblyId>
<attach>true</attach>
<archive>
<manifest>
<mainClass>${mainClass}</mainClass>
<addClasspath>false</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
<descriptors><descriptor>src/build/assembly-dist.xml</descriptor></descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>e2eTest</id> <activation><property><name>release</name></property></activation>
<build>
<plugins>
<!-- One real execution of the tool from outside JUnit. -->
<plugin>
<groupId>org.codehaus.mojo</groupId><artifactId>exec-maven-plugin</artifactId><version>3.1.0</version>
<executions>
<execution>
<id>testJunitDiffExecutable-simple</id><phase>integration-test</phase><goals><goal>exec</goal></goals>
<configuration>
<executable>java</executable>
<commandlineArgs>
${jvm.args.debug} -jar ${project.build.directory}/${project.artifactId}-${project.version}-executable.jar -o target/testE2eOutput/output.html
src/test/data/hibernate-run1 src/test/data/hibernate-run2 src/test/data/hibernate-run3 src/test/data/hibernate-run4
</commandlineArgs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Release. -->
<profile><id>release</id> <activation><property><name>release</name></property></activation>
<properties>
<ossrh.host>oss.sonatype.org</ossrh.host>
</properties>
<distributionManagement>
<snapshotRepository><id>ossrh</id><name>ossrh</name><url>https://${ossrh.host}/content/repositories/snapshots</url></snapshotRepository>
<repository><id>ossrh</id><name>ossrh</name><url>https://${ossrh.host}/service/local/staging/deploy/maven2/</url></repository>
</distributionManagement>
<build>
<plugins>
<!-- Generate a JavaDoc and source jars -->
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-source-plugin</artifactId><version>3.2.1</version>
<configuration><includes>**/*.kt</includes></configuration>
<executions><execution><id>attach-sources</id><goals><goal>jar</goal></goals></execution></executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-javadoc-plugin</artifactId><version>3.4.1</version>
<executions><execution><id>attach-javadocs</id><goals><goal>jar</goal></goals></execution></executions>
</plugin>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>${version.kotlin-dokka}</version>
<executions>
<execution><id>dokka-site</id><phase>pre-site</phase><goals><goal>dokka</goal></goals></execution>
<execution><id>dokka-jar</id><phase>package</phase><goals><goal>javadocJar</goal></goals></execution>
</executions>
<configuration><dokkaPlugins><plugin><groupId>org.jetbrains.dokka</groupId><artifactId>kotlin-as-java-plugin</artifactId><version>${version.kotlin-dokka}</version></plugin></dokkaPlugins></configuration>
</plugin>
<!-- Release plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-release-plugin</artifactId><version>3.0.0-M7</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId><artifactId>nexus-staging-maven-plugin</artifactId><version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://${ossrh.host}/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<attachedArtifacts>
<artifact>target/${project.artifactId}-${project.version}-dist.zip</artifact>
</attachedArtifacts>
</configuration>
</plugin>
<!-- This relies on the gpg command being installed and the GPG credentials being available e.g. from settings.xml. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals><goal>sign</goal></goals>
<configuration>
<!-- On MacOS, remember to run this before Maven build: export GPG_TTY=$(tty) -->
<keyname>73BA361CA92D829800730DE207838E30786B5257</keyname>
<passphrase>${gpg.passphrase}</passphrase>
<executable>${gpg.executable}</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-stdlib-jdk8</artifactId><version>${kotlin.version}</version></dependency>
<dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-test-junit</artifactId><version>${kotlin.version}</version><scope>test</scope></dependency>
<!-- Commons -->
<dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId><version>3.12.0</version></dependency>
<dependency><groupId>org.apache.commons</groupId><artifactId>commons-text</artifactId><version>1.10.0</version></dependency>
<dependency><groupId>commons-io</groupId><artifactId>commons-io</artifactId><version>2.11.0</version></dependency>
<!-- JDom -->
<dependency><groupId>org.jdom</groupId><artifactId>jdom</artifactId><version>1.1.3</version></dependency>
<!-- JDom's XPath needs these, otherwise XPath.newInstance("/testsuite/testcase") throws... -->
<dependency><groupId>org.jdom</groupId><artifactId>jaxen-core</artifactId><version>1.0-FCS</version></dependency> <!-- CNFEx org.jaxen.NamespaceContext -->
<dependency><groupId>org.jdom</groupId><artifactId>jaxen-jdom</artifactId><version>1.0-FCS</version></dependency><!-- NoClassDefFoundError: org/jaxen/jdom/JDOMXPath: org/jaxen/jdom/JDOMXPath -->
<dependency><groupId>org.jdom</groupId><artifactId>saxpath</artifactId><version>1.0-FCS</version></dependency><!-- CNFEx org.saxpath.SAXPathException -->
<dependency><groupId>org.slf4j</groupId><artifactId>slf4j-api</artifactId><version>2.0.5</version></dependency>
<dependency><groupId>org.slf4j</groupId><artifactId>jcl-over-slf4j</artifactId><version>2.0.5</version></dependency>
<dependency><groupId>org.slf4j</groupId><artifactId>log4j-over-slf4j</artifactId><version>2.0.5</version></dependency><!-- for for Log4J 1.x -->
<dependency><groupId>ch.qos.logback</groupId><artifactId>logback-classic</artifactId><version>1.4.5</version></dependency>
<dependency><groupId>ch.qos.logback</groupId><artifactId>logback-core</artifactId><version>1.4.5</version></dependency>
<!-- Test dependencies -->
<dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.13.2</version><scope>test</scope></dependency>
</dependencies>
<pluginRepositories>
<pluginRepository><id>codehaus</id><name>Codehaus Release Repo</name><url>http://repository.codehaus.org</url></pluginRepository>
<pluginRepository><id>codehaus-snapshot</id><name>Codehaus Snapshot Repo</name><url>http://snapshots.repository.codehaus.org</url></pluginRepository>
</pluginRepositories>
</project>