/
pom.xml
108 lines (102 loc) · 4.47 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
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-integration-tests-spring</artifactId>
<version>3.6.1.SP1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>resteasy-integration-tests-spring-deployment</artifactId>
<name>RESTEasy Main testsuite: Spring integration tests - Deployment</name>
<profiles>
<!--
Name: download
Descr: Download WildFly
-->
<profile>
<id>download</id>
<activation>
<property>
<name>!server.home</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>generate-test-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-dist</artifactId>
<version>${server.version}</version>
<type>zip</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/test-server</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>unpack-resteasy</id>
<phase>generate-test-resources</phase>
<configuration>
<target>
<!-- Explicitly remove resteasy-spring contents as the module.xml does not reference resource jars in this case
so adding jars without removing old ones basically messes up the classloader -->
<delete>
<fileset dir="${project.build.directory}/test-server/wildfly-${server.version}/modules/system/layers/base/org/jboss/resteasy/resteasy-spring/main" includes="**/*.jar"/>
</delete>
<unzip src="../../../jboss-modules/target/resteasy-jboss-modules-${project.version}.zip"
dest="${project.build.directory}/test-server/wildfly-${server.version}/modules/system/layers/base"
overwrite="true"/>
<delete dir="target/dependency-maven-plugin-markers"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<jboss.home>${project.build.directory}/test-server/wildfly-${server.version}</jboss.home>
</properties>
</profile>
</profiles>
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<includes>
<include>arquillian.xml</include>
</includes>
</testResource>
<testResource>
<directory>src/test/resources</directory>
<excludes>
<exclude>arquillian.xml</exclude>
</excludes>
</testResource>
</testResources>
</build>
</project>