/
pom.xml
113 lines (106 loc) · 3.49 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
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-tests</artifactId>
<version>1.5-SNAPSHOT</version>
</parent>
<artifactId>playn-tests-flash</artifactId>
<name>PlayN Tests Flash</name>
<packaging>war</packaging>
<properties>
<gwt.module>playn.test.tests.TestsFlashGame</gwt.module>
<gwt.name>testsflash</gwt.name>
<flexsdk.dir>${project.build.directory}${file.separator}flex4sdk</flexsdk.dir>
</properties>
<dependencies>
<dependency>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-tests-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-flash</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- download and unpack flex4sdk -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>validate</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.adobe.flex</groupId>
<artifactId>flex-sdk</artifactId>
<version>4.1.0.16076_mpl</version>
<type>zip</type>
<overWrite>false</overWrite>
<outputDirectory>${flexsdk.dir}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- Dependency plugin discards file permissions so we need to set them manually -->
<chmod file="${flexsdk.dir}/bin/mxmlc" perm="ugo+rx"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<extraJvmArgs>-Dflexsdk.home=${flexsdk.dir}</extraJvmArgs>
</configuration>
</plugin>
<!-- allows testing of Flash backend via: mvn integration-test -Pflash -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.0.0.v20110901</version>
<configuration>
<webApp>
${project.basedir}/target/${project.artifactId}-${project.version}
</webApp>
</configuration>
<executions>
<execution>
<id>test-flash</id>
<phase>integration-test</phase>
<goals>
<goal>run-exploded</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>