-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpom.xml
314 lines (295 loc) · 9.7 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.scijava</groupId>
<artifactId>pom-scijava</artifactId>
<version>37.0.0</version>
<relativePath />
</parent>
<artifactId>scijava-incubator</artifactId>
<version>0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>SciJava Incubator</name>
<description>A wonderful bag of cats.</description>
<url>https://github.com/scijava/incubator</url>
<inceptionYear>2020</inceptionYear>
<organization>
<name>SciJava</name>
<url>https://scijava.org/</url>
</organization>
<licenses>
<license>
<name>N/A - See individual modules</name>
</license>
</licenses>
<developers>
<developer>
<name>N/A - see individual modules</name>
</developer>
</developers>
<contributors>
<contributor>
<name>N/A - see individual modules</name>
</contributor>
</contributors>
<mailingLists>
<mailingList>
<name>N/A - see individual modules</name>
</mailingList>
</mailingLists>
<modules>
<module>scijava-persist</module>
</modules>
<scm>
<connection>scm:git:git://github.com/scijava/incubator</connection>
<developerConnection>scm:git:[email protected]:scijava/incubator</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/scijava/incubator</url>
</scm>
<issueManagement>
<system>N/A - see individual modules</system>
</issueManagement>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/scijava/incubator/actions</url>
</ciManagement>
<properties>
<license.licenseName>N/A</license.licenseName>
<license.copyrightOwners>N/A</license.copyrightOwners>
<scijava.jvm.build.version>[11,)</scijava.jvm.build.version>
<scijava.jvm.version>11</scijava.jvm.version>
<scijava.javadoc.url.java>https://javadoc.scijava.org/Java11/</scijava.javadoc.url.java>
<scijava.javadoc.url.javafx>https://javadoc.scijava.org/JavaFX11/</scijava.javadoc.url.javafx>
<scijava-maven-plugin.version>2.2.0</scijava-maven-plugin.version>
<doclint>none</doclint>
<!-- NB: Deploy releases to the SciJava Maven repository. -->
<releaseProfiles>sign,deploy-to-scijava</releaseProfiles>
<guava.version>28.2-jre</guava.version>
<geantyref.version>1.3.6</geantyref.version>
<script-maven-plugin.version>1.0.0</script-maven-plugin.version>
<jruby.version>9.2.11.1</jruby.version>
<scijava.parse.ops>true</scijava.parse.ops>
<!-- No java source files for this project -->
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.scijava</groupId>
<artifactId>scijava-ops-indexer</artifactId>
<version>${project.version}</version>
</path>
</annotationProcessorPaths>
<fork>true</fork>
<showWarnings>true</showWarnings>
<compilerArgs>
<arg>-Aparse.ops="${scijava.parse.ops}"</arg>
<arg>-Aop.version="${project.version}"</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<tagletArtifacts>
<tagletArtifact>
<groupId>org.scijava</groupId>
<artifactId>scijava-taglets</artifactId>
<version>${project.version}</version>
</tagletArtifact>
</tagletArtifacts>
</configuration>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.scijava</groupId>
<artifactId>scijava-maven-plugin</artifactId>
<version>2.2.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>enforce-no-package-cycles</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>test</phase>
<configuration>
<rules>
<NoPackageCyclesRule
implementation="org.scijava.maven.plugin.enforcer.NoPackageCyclesRule" />
</rules>
</configuration>
</execution>
<execution>
<id>enforce-no-subpackage-dependence</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>test</phase>
<configuration>
<rules>
<NoSubpackageDependenceRule
implementation="org.scijava.maven.plugin.enforcer.NoSubpackageDependenceRule" />
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.alexecollins.maven.plugin</groupId>
<artifactId>script-maven-plugin</artifactId>
<version>${script-maven-plugin.version}</version>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<links>
<!-- Core Java. -->
<link>${scijava.javadoc.url.java}</link>
<!-- SciJava and related projects and forks. -->
<link>https://javadoc.scijava.org/ImgLib2/</link>
<link>https://javadoc.scijava.org/SCIFIO/</link>
<!-- Third party projects. -->
<link>https://javadoc.scijava.org/Apache-Commons-Math/</link>
<link>https://javadoc.scijava.org/Guava/</link>
<link>https://javadoc.scijava.org/JAMA/</link>
<link>https://javadoc.scijava.org/JOML/</link>
<link>https://javadoc.scijava.org/Javassist/</link>
<link>https://javadoc.scijava.org/ojAlgo/</link>
</links>
</configuration>
</plugin>
<plugin>
<groupId>com.alexecollins.maven.plugin</groupId>
<artifactId>script-maven-plugin</artifactId>
<version>${script-maven-plugin.version}</version>
<executions>
<execution>
<id>union-metadata-indices</id>
<phase>process-test-classes</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<language>ruby</language>
<script>
# Append the source plugin annotations to the test plugin annotations
require 'set'
# Handle windows paths
basedir = '${project.basedir}'.gsub /\\+/, '\\\\'
# Reads plugin metadata into a set of strings, one per plugin declaration.
def read_plugins(path)
delim = 'UNIQUE-SEQUENCE-THAT-NO-PLUGIN-WILL-EVER-USE'
return File.exist?(path) ? File.read(path).sub('}{', '}' + delim + '{').split(delim).to_set : Set.new()
end
# Read in main and test scope plugin annotations.
['ops.yaml'].each do |pluginsPath|
mainPluginsPath = "#{basedir}/target/classes/#{pluginsPath}"
testPluginsPath = "#{basedir}/target/test-classes/#{pluginsPath}"
mainPlugins = read_plugins(mainPluginsPath)
testPlugins = read_plugins(testPluginsPath)
# Write out unioned plugin annotations to test scope plugin annotations.
# Without this, the test scope code does not know of the main scope plugins.
allPlugins = mainPlugins.union(testPlugins)
unless allPlugins.empty?()
require 'fileutils'
FileUtils.mkdir_p File.dirname(testPluginsPath)
File.write(testPluginsPath, allPlugins.to_a.join(''))
end
end
</script>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>${jruby.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>benchmarks</id>
<modules>
<module>scijava-ops-benchmarks</module>
</modules>
</profile>
<profile>
<id>only-eclipse-incubator</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<!--
Configure the Eclipse m2e plugin to support needed plugins.
-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<!--
NB: Eclipse cannot handle an overridden version property here!
The version needs to stay hardcoded at 1.0.0.
-->
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions combine.children="append">
<!--
NB: Make Eclipse union the metadata indices on every build; see:
https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html
-->
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.alexecollins.maven.plugin</groupId>
<artifactId>script-maven-plugin</artifactId>
<versionRange>${script-maven-plugin.version}</versionRange>
<goals>
<goal>execute</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnConfiguration>true</runOnConfiguration>
<!--
NB: You might think we could run the annotations
union script once only, at configuration time.
Unfortunately, when configuration happens in Eclipse,
the plugin annotations have not yet been generated.
So let's redo the union on every incremental build.
That'll show 'em!
-->
<runOnIncremental>true</runOnIncremental>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>