forked from wildfly/wildfly
/
pom.xml
171 lines (160 loc) · 7.67 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2021 Red Hat, Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<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">
<parent>
<artifactId>wildfly-testsuite</artifactId>
<groupId>org.wildfly</groupId>
<!--
Maintain separation between the artifact id and the version to help prevent
merge conflicts between commits changing the GA and those changing the V.
-->
<version>25.0.0.Beta1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>wildfly-testsuite-scripts</artifactId>
<properties>
<!-- By default the scripts and configurations expect an IPv4 address so we should use one by default -->
<jboss.test.script.address>127.0.0.1</jboss.test.script.address>
<jboss.test.start.timeout>120</jboss.test.start.timeout>
<jbossas.ts.dir>${basedir}/..</jbossas.ts.dir>
<wildfly.home>${project.basedir}${file.separator}target${file.separator}${server.output.dir.prefix}</wildfly.home>
</properties>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>wildfly-testsuite-shared</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- This enforcer.skip property was set to true in the properties. However this doesn't work if the
property is passed on the command line. Therefore we need to explicitly skip it.
-->
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<executions>
<execution>
<id>server-provisioning</id>
<goals>
<goal>provision</goal>
</goals>
<phase>process-test-classes</phase>
<configuration>
<install-dir>${wildfly.home}</install-dir>
<record-state>false</record-state>
<log-time>${galleon.log.time}</log-time>
<offline>${galleon.offline}</offline>
<feature-packs>
<feature-pack>
<groupId>${testsuite.ee.galleon.pack.groupId}</groupId>
<artifactId>${testsuite.ee.galleon.pack.artifactId}</artifactId>
<version>${testsuite.ee.galleon.pack.version}</version>
<excluded-packages>
<name>product.conf</name>
<name>docs</name>
<name>docs.licenses.merge</name>
</excluded-packages>
</feature-pack>
</feature-packs>
<plugin-options>
<jboss-maven-dist/>
<jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
</plugin-options>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<failIfNoTests>false</failIfNoTests>
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>
<reuseForks>true</reuseForks>
<systemPropertyVariables>
<jboss.home>${wildfly.home}</jboss.home>
<jboss.test.start.timeout>${jboss.test.start.timeout}</jboss.test.start.timeout>
<maven.repo.local>${settings.localRepository}</maven.repo.local>
<jboss.bind.address>${jboss.test.script.address}</jboss.bind.address>
<management.address>${jboss.test.script.address}</management.address>
<jboss.test.proc.dir>${project.build.directory}${file.separator}proc</jboss.test.proc.dir>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!-- Test against EE 9 dist -->
<profile>
<id>ee9.profile</id>
<activation>
<property>
<name>ts.ee9</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jboss.galleon</groupId>
<artifactId>galleon-maven-plugin</artifactId>
<executions>
<execution>
<id>server-provisioning</id>
<goals>
<goal>provision</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<plugin-options combine.self="append">
<jboss-jakarta-transform-artifacts>false</jboss-jakarta-transform-artifacts>
<jboss-maven-provisioning-repo>${wildfly.transformed.repo.dir}</jboss-maven-provisioning-repo>
</plugin-options>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<!--Re-enable the default surefire execution. -->
<execution>
<id>default-test</id>
<phase>test</phase>
<configuration>
<systemPropertyVariables>
<maven.repo.local>${wildfly.transformed.repo.dir}</maven.repo.local>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>