/
pom.xml
218 lines (207 loc) · 10.2 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate Search, full-text search for your domain model
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<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>
<parent>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-parent-integrationtest</artifactId>
<version>6.2.0-SNAPSHOT</version>
<relativePath>../../../parents/integrationtest</relativePath>
</parent>
<artifactId>hibernate-search-parent-integrationtest-orm6</artifactId>
<packaging>pom</packaging>
<name>Hibernate Search Parent POM for Integration Test Artifacts - ORM6</name>
<description>Common build configuration for all ORM6 integration test artifacts (including documentation)</description>
<properties>
<surefire.integration>orm6</surefire.integration>
<!-- JQAssistant does not seem to work correctly on these artifacts for some reason -->
<jqassistant.skip>true</jqassistant.skip>
<!-- Forbiddenapis fails when some forbidden methods are not found, and some forbidden methods were removed in ORM 6 -->
<forbiddenapis.skip>true</forbiddenapis.skip>
<!-- Prevent these modules from artificially affecting Sonar metrics -->
<sonar.skip>true</sonar.skip>
<version.net.bytebuddy>${version.net.bytebuddy.orm6}</version.net.bytebuddy>
<!-- To be set by child modules -->
<transform.original.pathFromRoot></transform.original.pathFromRoot>
<transform.original.path>${rootProject.directory}/${transform.original.pathFromRoot}</transform.original.path>
<transform.output.root.path>${project.build.directory}/copied-sources/</transform.output.root.path>
<transform.output.main.sources.path>${transform.output.root.path}/main/java</transform.output.main.sources.path>
<transform.output.main.resources.path>${transform.output.root.path}/main/resources</transform.output.main.resources.path>
<transform.output.test.sources.path>${transform.output.root.path}/test/java</transform.output.test.sources.path>
<transform.output.test.resources.path>${transform.output.root.path}/test/resources</transform.output.test.resources.path>
<transform.patch.path>${project.basedir}/ant-src-changes.patch</transform.patch.path>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate.common</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>${version.org.hibernate.commons.annotations.orm6}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-shaded</artifactId>
<version>${version.org.jboss.weld.jakarta}</version>
</dependency>
<dependency>
<groupId>org.jberet</groupId>
<artifactId>jberet-core</artifactId>
<version>${version.org.jberet.jakarta}</version>
<exclusions>
<!-- These dependencies are marked as "provided" but will never be there at runtime.
This confuses maven-enforcer-plugin, so we'll exclude them. -->
<exclusion>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-processor</artifactId>
</exclusion>
<exclusion>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-commons</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jberet</groupId>
<artifactId>jberet-se</artifactId>
<version>${version.org.jberet.jakarta}</version>
</dependency>
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-util-internal-test-common</artifactId>
<version>${project.version}</version>
<exclusions>
<!-- Trust the ORM 6 dependency to bring in the correct version of Jandex and Bytebuddy
(which, unfortunately, might be different from the version used in ORM 5.x
on which our utils are aligned) -->
<exclusion>
<groupId>org.jboss</groupId>
<artifactId>jandex</artifactId>
</exclusion>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-util-internal-integrationtest-mapper-orm-orm6</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-util-internal-integrationtest-v5migrationhelper-orm6</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-util-internal-integrationtest-jbatch-runtime-orm6</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-util-internal-integrationtest-jberet-se-orm6</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>copy-and-transform-sources</id>
<phase>initialize</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<!-- WARNING: if you update this, make sure to update the "public" and "internal" parent POMs, too -->
<target>
<ant dir="${rootProject.directory}/orm6/" antfile="ant-copy-and-transform-sources.xml">
<target name="copy"/>
<target name="transform"/>
<target name="patch"/>
</ant>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-sources-copy</id>
<phase>initialize</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${transform.output.main.sources.path}</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-resources-copy</id>
<phase>initialize</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${transform.output.main.resources.path}</directory>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>add-test-sources-copy</id>
<phase>initialize</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${transform.output.test.sources.path}</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-test-resources-copy</id>
<phase>initialize</phase>
<goals>
<goal>add-test-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${transform.output.test.resources.path}</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>