-
Notifications
You must be signed in to change notification settings - Fork 25
/
pom.xml
509 lines (491 loc) · 24 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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2008, 2009, 2010, 2011, 2015 by the Department of Computer Science in the University of Oxford; see lgpl-3.0.txt and gpl.txt for details -->
<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>
<!-- USAGE:
`mvn compile` to compile main sources.
`mvn test` to compile all tests and run AllQuickTests.
`mvn -PallTests test` to compile all tests and run AllTests.
`mvn package` to assemble the Protege plugin, the standalone CLI with all dependencies, and the source code package.
`mvn install` to run all the preceeding tasks, and to generate a standalone HermiT library without dependencies.
This will also generate the JUnit reports and attempt to SCP the build results to linux.cs.ox.ac.uk.
-->
<groupId>com.hermit-reasoner</groupId>
<artifactId>org.semanticweb.hermit</artifactId>
<!-- Note that on each released build, the ${updatefile} on the web site
should be replaced, and the new version of the plugin should be
posted at the (auto-generated) URL in that file.
It seems that Protege requires that the version string for the plugin
is either in the format X.Y.Z.W or X.Y.Z.W-SNAPSHOT, and Protege will
silently refuse to load the plugin otherwise. -->
<version>1.4.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>HermiT</name>
<url>http://hermit-reasoner.com/</url>
<description>HermiT is reasoner for ontologies written using the Web
Ontology Language (OWL). Given an OWL file, HermiT can determine whether or
not the ontology is consistent, identify subsumption relationships between
classes, and much more.
This is the maven build of HermiT and is designed for people who wish to use
HermiT from within the OWL API. It is now versioned in the main HermiT
version repository, although not officially supported by the HermiT
developers.
The version number of this package is a composite of the HermiT version and
an value representing releases of this packaged version. So, 1.3.7.1 is the
first release of the mavenized version of HermiT based on the 1.3.7 release
of HermiT.
</description>
<scm>
<connection>scm:svn:svn://svn.cs.ox.ac.uk/krr/2008/HermiT/trunk/</connection>
<developerConnection>scm:svn:svn://svn.cs.ox.ac.uk/krr/2008/HermiT/trunk/</developerConnection>
<tag>HEAD</tag>
<url>svn://svn.cs.ox.ac.uk/krr/2008/HermiT/trunk/</url>
</scm>
<licenses>
<license>
<name>LGPL</name>
<url>http://www.gnu.org/licenses/lgpl-3.0.txt</url>
</license>
</licenses>
<properties>
<!-- General info. -->
<homepage>http://hermit-reasoner.com/</homepage>
<updatefile>${homepage}protege-4-1-beta-update/update.properties</updatefile>
<mainClass>org.semanticweb.HermiT.cli.CommandLine</mainClass>
<!-- structure of output files -->
<reportsDirectory>${project.build.directory}/junit-reports</reportsDirectory>
<!-- To generate a debug version, use `mvn -DdebugHermiT=true` when running Maven. -->
<debugHermiT>false</debugHermiT>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<prerequisites>
<maven>2.2.1</maven>
</prerequisites>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<compilerArgs>
<arg value="-Xlint:all"/>
<arg value="-Xlint:-path"/>
<arg value="-Xlint:-options"/>
<arg value="-Xlint:-rawtypes"/>
</compilerArgs>
<showDeprecation>true</showDeprecation>
<debug>${debugHermiT}</debug>
<debuglevel>lines,vars,source</debuglevel>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<!-- test configuration goes here -->
<configuration>
<!-- By default, run only AllQuickTests. -->
<includes>
<include>org/semanticweb/HermiT/AllQuickTests*</include>
</includes>
<failIfNoTests>true</failIfNoTests>
<enableAssertions>true</enableAssertions>
<argLine>-Xmx1G</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit4</artifactId>
<version>2.19</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
<show>protected</show>
<author>false</author>
<version>true</version>
<use>true</use>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<timestampFormat>{0,date,dd-MM-yyyy HH:mm:ss}</timestampFormat>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>org.tmatesoft.svnkit</groupId>
<artifactId>svnkit</artifactId>
<version>1.8.5</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-Vendor>Oxford University</Implementation-Vendor>
<Implementation-Version>${project.version}</Implementation-Version>
<!-- Manifest includes the SVN version number. -->
<Implementation-Build>${buildNumber}</Implementation-Build>
<SCM-Revision>${buildNumber}</SCM-Revision>
<Built-By>${user.name}</Built-By>
<Built-OS>${os.name}</Built-OS>
<Build-Date>${timestamp}</Build-Date>
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-Name>HermiT Reasoner</Bundle-Name>
<Bundle-Category>protege</Bundle-Category>
<Bundle-Description>An OWL 2 reasoner</Bundle-Description>
<Bundle-DocURL>${homepage}</Bundle-DocURL>
<Bundle-Vendor>Boris Motik, Birte Glimm, Giorgos Stoilos, and Ian Horrocks</Bundle-Vendor>
<Bundle-Version>${project.version}</Bundle-Version>
<Update-Url>${updatefile}</Update-Url>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<!-- Maven Assembly Plugin for jars with included dependencies. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifestEntries>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-Vendor>Oxford University</Implementation-Vendor>
<Implementation-Version>${project.version}</Implementation-Version>
<!-- Manifest includes the SVN version number. -->
<Implementation-Build>${buildNumber}</Implementation-Build>
<SCM-Revision>${buildNumber}</SCM-Revision>
<Built-By>${user.name}</Built-By>
<Built-OS>${os.name}</Built-OS>
<Build-Date>${timestamp}</Build-Date>
<Bundle-Activator>org.protege.editor.core.plugin.DefaultPluginActivator</Bundle-Activator>
<Bundle-ClassPath>.</Bundle-ClassPath>
<Bundle-Description>An OWL 2 reasoner</Bundle-Description>
<Bundle-DocURL>${homepage}</Bundle-DocURL>
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-Name>HermiT Reasoner</Bundle-Name>
<Bundle-SymbolicName>${project.artifactId};singleton:=true</Bundle-SymbolicName>
<Bundle-Vendor>Boris Motik, Birte Glimm, Giorgos Stoilos, and Ian Horrocks</Bundle-Vendor>
<Bundle-Version>${project.version}</Bundle-Version>
<Require-Bundle>org.eclipse.equinox.registry,org.eclipse.equinox.common,org.protege.editor.core.application;bundle-version=4.1,org.protege.editor.owl;bundle-version=4.1,org.semanticweb.owl.owlapi;bundle-version=3.2</Require-Bundle>
<Update-Url>${updatefile}</Update-Url>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<!-- Build the assembly jar for the CLI. -->
<id>make-assembly-cli</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${basedir}/src/assembly/cli-assembly.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>${mainClass}</mainClass>
</manifest>
</archive>
</configuration>
</execution>
<execution>
<!-- Build the assembly jar for the Protege plugin. -->
<id>make-assembly-protege</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${basedir}/src/assembly/protege-assembly.xml</descriptor>
</descriptors>
<archive>
<manifestEntries>
<Bundle-Category>protege</Bundle-Category>
<Bundle-Activator>org.protege.editor.core.plugin.DefaultPluginActivator</Bundle-Activator>
</manifestEntries>
</archive>
</configuration>
</execution>
<execution>
<!-- Build the assembly of the source code project. -->
<id>make-src-package</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${basedir}/src/assembly/source-assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>test-reports</id>
<phase>install</phase>
<configuration>
<tasks>
<junitreport todir="target/surefire-reports">
<fileset dir="target/surefire-reports">
<include name="**/*.xml"/>
</fileset>
<report format="noframes" todir="${reportsDirectory}">
<param name="TITLE" expression="HermiT JUnit Test Results"/>
</report>
</junitreport>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<phase>install</phase>
<configuration>
<target>
<echo message="Publishing a new version of HermiT"/>
<input message="Enter a user name for linux:" addproperty="username" defaultvalue="${user.name}"/>
<input message="Enter ${username}'s password on linux: " addproperty="password"/>
<sshexec host="linux.cs.ox.ac.uk" username="${username}" password="${password}" command="mkdir /fs/website/research/themes/isg/tools/HermiT/download/${project.version}/" trust="yes"/>
<!-- SCP the assembly of the entrie code project. -->
<scp file="${project.build.directory}/${project.artifactId}-${project.version}-src.zip" localTofile="${project.name}.zip" todir="${username}:${password}@linux.cs.ox.ac.uk:/fs/website/research/themes/isg/tools/HermiT/download/${project.version}/" trust="yes"/>
<!-- SCP the Protege plugin jar. -->
<scp file="${project.build.directory}/${project.artifactId}-${project.version}-protege-assembly.jar" todir="${username}:${password}@linux.cs.ox.ac.uk:/fs/website/research/themes/isg/tools/HermiT/download/${project.version}/" trust="yes"/>
<!-- SCP the README file. -->
<scp file="${project.basedir}/README.txt" todir="${username}:${password}@linux.cs.ox.ac.uk:/fs/website/research/themes/isg/tools/HermiT/download/${project.version}/" trust="yes"/>
<!-- SCP the generated update.properties file for Protege. -->
<scp file="${project.build.directory}/update.properties" todir="${username}:${password}@linux.cs.ox.ac.uk:/fs/website/research/themes/isg/tools/HermiT/protege-4-1-beta-update/" trust="yes"/>
<sshexec host="linux.cs.ox.ac.uk" username="${username}" password="${password}" command="rm /fs/website/research/themes/isg/tools/HermiT/download/current/HermiT.zip" trust="yes"/>
<sshexec host="linux.cs.ox.ac.uk" username="${username}" password="${password}" command="ln -s /fs/website/research/themes/isg/tools/HermiT/download/${project.version}/HermiT.zip /fs/website/research/themes/isg/tools/HermiT/download/current/HermiT.zip" trust="yes"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
<version>1.9.6</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-jsch</artifactId>
<version>1.9.6</version>
</dependency>
</dependencies>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>${project.basedir}</directory>
<targetPath>${project.build.directory}</targetPath>
<filtering>true</filtering>
<includes>
<include>update.properties</include>
</includes>
</resource>
</resources>
</build>
<!-- To view the report that results from the JUnit tests, run `mvn site`. -->
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.19</version>
<configuration>
<showSuccess>false</showSuccess>
<outputDirectory>${basedir}/target/surefire-reports</outputDirectory>
</configuration>
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>allTests</id>
<activation>
<property>
<name>allTests</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- When using the allTests profile, run all tests. To enable, run maven with `mvn -PallTests` -->
<includes>
<include>org/semanticweb/HermiT/AllTests*</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-distribution</artifactId>
<version>4.2.8</version>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-api</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-c14n</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-impl</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-dom</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>dk.brics.automaton</groupId>
<artifactId>automaton</artifactId>
<version>1.11-8</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>edu.stanford.protege</groupId>
<artifactId>protege-editor-owl</artifactId>
<version>5.0.0-beta-21</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>gnu.getopt</groupId>
<artifactId>java-getopt</artifactId>
<version>1.0.13</version>
</dependency>
<dependency>
<groupId>oqube</groupId>
<artifactId>jautomata-core</artifactId>
<version>2.0-alpha-1</version>
<scope>system</scope>
<systemPath>${basedir}/lib/jautomata-core-2.0-alpha-1.jar</systemPath>
</dependency>
</dependencies>
<developers>
<developer>
<id>bmotik</id>
<name>Boris Motik</name>
<email>[email protected]</email>
</developer>
<developer>
<id>bglimm</id>
<name>Birte Glimm</name>
<email>[email protected]</email>
</developer>
</developers>
<mailingLists>
<mailingList>
<name>Hermit Users Group</name>
<archive>http://groups.google.com/group/hermit-users</archive>
</mailingList>
</mailingLists>
<!-- additionally -->
<!-- tag the SVN with the current build version -->
<!-- update Protege binaries SVN with the Protege plugin and readme -->
<!-- update index.html for the HermiT web page -->
</project>