-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom-v6.xml
111 lines (106 loc) · 3.54 KB
/
pom-v6.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
<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>
<parent>
<groupId>org.nlogo.extensions.dbscan</groupId>
<artifactId>dbscan</artifactId>
<version>0.4</version>
<relativePath>pom-root.xml</relativePath>
</parent>
<groupId>org.nlogo.extensions.dbscan</groupId>
<artifactId>dbscan-NetLogo6</artifactId>
<version>0.4</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>NetLogo</groupId>
<artifactId>NetLogo</artifactId>
<version>6.0.0</version>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.12.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<executions>
<!-- Prevent test compilation as of considerable API differences (automated testing done only on latest supported API) -->
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<configuration>
<testExcludes>
<exclude>**/TestNetLogoDBSCAN.java</exclude>
</testExcludes>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Make copy of source files (and recovery afterwards) before applying syntax changes to accommodate NetLogo Extensions API v6 -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>replace-source-file</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<copy file="src/main/resources/manifest.txt" tofile="tmp/manifest.bak"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>restore-source-file</id>
<phase>package</phase>
<configuration>
<tasks>
<move file="tmp/manifest.bak" tofile="src/main/resources/manifest.txt"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Replacing syntax to accommodate NetLogo Extensions API v6 -->
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>${basedir}/src/main/resources/manifest.txt</include>
</includes>
<replacements>
<replacement>
<token>((NetLogo-Extension-API-Version:)(.)*)</token>
<value>NetLogo-Extension-API-Version: 6.0</value>
</replacement>
</replacements>
</configuration>
</plugin>
</plugins>
</build>
</project>