-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
192 lines (167 loc) · 8.3 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
<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>
<groupId>de.uni-mannheim.informatik.dws</groupId>
<artifactId>WiktionaryMatcher
</artifactId><!-- id used as matcher id in descriptor file of seals package and as the project name in gitlab (hobbit) -->
<packaging>jar</packaging>
<version>1.0</version><!-- version appearing in descriptor file of seals package and system.ttl file in hobbit -->
<description>WiktionaryMatcher uses Wiktionary to match ontologies.
</description><!-- description appearing in descriptor file of seals package and system.ttl file in hobbit -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- mandatory: this class has to implement IOntologyMatchingToolBridge -->
<oaei.mainClass>de.uni_mannheim.informatik.dws.WiktionaryMatcher.OrchestratingMatcher</oaei.mainClass>
<oaei.copyright>(C) Jan Portisch, 2020
</oaei.copyright> <!--optional copyright appearing in the seals descriptor file -->
<oaei.license>GNU Lesser General Public License 2.1 or above
</oaei.license> <!--optional license appearing in the seals descriptor file -->
<maven.deploy.skip>true
</maven.deploy.skip><!-- needed to call mvn deploy without having a distributionManagement -->
<matching.version>3.2-SNAPSHOT</matching.version> <!-- version for all matching related packages -->
</properties>
<!-- Accessing the resources:
- all files in "oaei-resources" folder are stored in the current working directory and can be accessed with
Files.readAllLines(Paths.get("oaei-resources", "configuration_oaei.txt"));
- all files in "src/main/resources" folder are compiled to the resulting jar and can be accessed with
getClass().getClassLoader().getResourceAsStream("configuration_jar.txt");
-->
<dependencies>
<!-- dependency for jena matchers - for other matchers you can replace it with artifactId: matching-base -->
<dependency>
<groupId>de.uni-mannheim.informatik.dws.melt</groupId>
<artifactId>matching-jena</artifactId>
<version>${matching.version}</version>
</dependency>
<dependency>
<groupId>de.uni-mannheim.informatik.dws.melt</groupId>
<artifactId>matching-eval</artifactId>
<version>${matching.version}</version>
<!--<scope>test</scope>-->
<!-- only in test scope, can only be used when running tests.
You can also remove the scope but then remove the whole dependency when packaging the matcher.
Otherwise you get a lot of unused dependencies in your matcher.-->
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.5</version>
</dependency>
<!-- This dependency is necessary for web submission. It contains the server wrapper. -->
<dependency>
<groupId>de.uni-mannheim.informatik.dws.melt</groupId>
<artifactId>receiver-http</artifactId>
<version>${matching.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.3.0-M1</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.3.0-M1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.mpkorstanje</groupId>
<artifactId>simmetrics-core</artifactId>
<version>4.1.1</version>
</dependency>
<dependency>
<groupId>org.mapdb</groupId>
<artifactId>mapdb</artifactId>
<version>3.0.7</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-tdb</artifactId>
<version>3.16.0</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-core</artifactId>
<version>3.16.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-arq</artifactId>
<version>3.16.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- the following plugin will generate a docker image and save it into the target folder -->
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.36.0</version>
<configuration>
<!-- further machine configuration options: https://dmp.fabric8.io/#docker-machine
Use the following line in case you have installed docker on windows or mac
<machine><name>default</name></machine>
-->
<!--machine><name>default</name></machine-->
<images>
<image>
<name>%a-%v-web</name>
<build>
<from>openjdk:8-jre-alpine</from><!--change it to a docker base image you want - this is just a small image which contains java-->
<assembly><descriptorRef>web</descriptorRef></assembly>
<cmd><shell>java -cp "${project.build.finalName}.${project.packaging}:lib/*" de.uni_mannheim.informatik.dws.melt.receiver_http.Main</shell></cmd>
<workdir>/maven</workdir>
<ports><port>8080</port></ports><!--port exposure to specify on which port the server runs -->
</build>
</image>
</images>
</configuration>
<dependencies>
<dependency>
<groupId>de.uni-mannheim.informatik.dws.melt</groupId>
<artifactId>matching-assembly</artifactId>
<version>${matching.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>build</goal>
<goal>save</goal>
</goals>
<!--execute build and save when calling "mvn install" -->
<phase>install</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
<!-- config example for settings file which is usually located at ~/.m2/settings.xml (you can create the file if it does not exist)
username and password are used for pushing the docker image and privateKey is necessary for creating gitlab projects and system.ttl files:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>git.project-hobbit.eu</id>
<username>{username}</username>
<password>{password}</password>
<privateKey>{gitlab_access_token}</privateKey>
</server>
</servers>
</settings>
-->