forked from Captain-Chaos/DemoWPPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
104 lines (99 loc) · 4.96 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
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.demo.wpplugin</groupId>
<artifactId>DemoWPPlugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<parent>
<groupId>org.pepsoft.worldpainter</groupId>
<artifactId>PluginParent</artifactId>
<version>1.9.0</version>
</parent>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>org.demo.wpplugin.properties</include>
<include>org.pepsoft.worldpainter.plugins</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>org.demo.wpplugin.properties</exclude>
<exclude>org.pepsoft.worldpainter.plugins</exclude>
</excludes>
<filtering>false</filtering>
</resource>
</resources>
</build>
<profiles>
<!-- Enable this profile and execute the test phase in order to run your plugin with WorldPainter. -->
<profile>
<id>testWithWorldPainter</id>
<dependencies>
<dependency>
<groupId>org.pepsoft.worldpainter</groupId>
<artifactId>WPGUI</artifactId>
<!-- Update this to the version of WorldPainter you wish to test with: -->
<version>2.23.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>test</phase>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<!-- Uncomment this to enable debugging. Change suspend=n to suspend=y if you want to debug plugin loading or initialisation: -->
<!--argument>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005</argument-->
<!-- These exports are needed from Java 9+ to make the JIDE GUI framework work: -->
<argument>--add-exports</argument>
<argument>java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED</argument>
<argument>--add-exports</argument>
<argument>java.desktop/javax.swing.plaf.synth=ALL-UNNAMED</argument>
<argument>--add-exports</argument>
<argument>java.desktop/sun.awt.shell=ALL-UNNAMED</argument>
<argument>--add-exports</argument>
<argument>java.desktop/sun.swing=ALL-UNNAMED</argument>
<argument>--add-exports</argument>
<argument>java.desktop/sun.awt=ALL-UNNAMED</argument>
<argument>--add-exports</argument>
<argument>java.desktop/sun.awt.windows=ALL-UNNAMED</argument>
<argument>--add-exports</argument>
<argument>java.desktop/sun.awt.image=ALL-UNNAMED</argument>
<argument>--add-exports</argument>
<argument>java.base/sun.security.action=ALL-UNNAMED</argument>
<argument>org.pepsoft.worldpainter.Main</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>