/
pom.xml
175 lines (163 loc) · 7.57 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright The WildFly Authors
~ SPDX-License-Identifier: Apache-2.0
-->
<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>33.0.0.Beta1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>wildfly-testsuite-scripts</artifactId>
<name>WildFly Test Suite: Scripts</name>
<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>
<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-controller-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-core-testsuite-shared</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.json</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.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<configuration>
<overwrite-provisioned-server>true</overwrite-provisioned-server>
</configuration>
<executions>
<execution>
<id>server-provisioning</id>
<goals>
<goal>provision</goal>
</goals>
<phase>process-test-classes</phase>
<configuration>
<provisioning-dir>${wildfly.home}</provisioning-dir>
<record-provisioning-state>false</record-provisioning-state>
<log-provisioning-time>${galleon.log.time}</log-provisioning-time>
<offline-provisioning>${galleon.offline}</offline-provisioning>
<galleon-options>
<jboss-maven-dist/>
<jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
</galleon-options>
<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>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<failIfNoTests>false</failIfNoTests>
<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 WildFly Preview dist -->
<profile>
<id>preview.profile</id>
<activation>
<property>
<name>ts.preview</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<executions>
<execution>
<id>server-provisioning</id>
<goals>
<goal>provision</goal>
</goals>
<phase>generate-resources</phase>
</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>${settings.localRepository}</maven.repo.local>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>