-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
308 lines (302 loc) · 15.4 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
<?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>graal.learning</groupId>
<artifactId>smt-ta-learning</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<project.dependency.relativepath>dependency</project.dependency.relativepath>
<project.dependency.path>${project.build.directory}/${project.dependency.relativepath}</project.dependency.path>
</properties>
<dependencies>
<!-- Yices2 has two dependencies (on Linux) ... taken from the JavaSMT repository -->
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-yices2</artifactId>
<version>3.10.0</version> <!-- version of Yices2 bindings in JavaSMT -->
<type>jar</type>
</dependency>
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-yices2</artifactId>
<version>2.6.2-396-g194350c1</version> <!-- version of Yices2 release -->
<type>so</type>
<classifier>libyices2j</classifier>
</dependency>
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>java-smt</artifactId>
<version>3.11.0</version>
</dependency>
<!-- MathSAT5 has one dependency -->
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-mathsat5</artifactId>
<version>5.6.5</version>
<type>so</type>
</dependency>
<!-- Z3 has three dependencies ... taken from the JavaSMT repository -->
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-z3</artifactId>
<version>4.8.10</version>
<type>jar</type>
<classifier>com.microsoft.z3</classifier>
</dependency>
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-z3</artifactId>
<version>4.8.10</version>
<type>so</type>
<classifier>libz3</classifier>
</dependency>
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-z3</artifactId>
<version>4.8.10</version>
<type>so</type>
<classifier>libz3java</classifier>
</dependency>
<!-- Boolector has three dependencies (on Linux) ... taken from the JavaSMT repository -->
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-boolector</artifactId>
<version>3.2.1-30-g95859db8</version>
<type>so</type>
<classifier>libboolector</classifier>
</dependency>
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-boolector</artifactId>
<version>3.2.1-30-g95859db8</version>
<type>so</type>
<classifier>libminisat</classifier>
</dependency>
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-boolector</artifactId>
<version>3.2.1-30-g95859db8</version>
<type>so</type>
<classifier>libpicosat</classifier>
</dependency>
<!-- CVC4 has four dependencies (on Linux) ... taken from the JavaSMT repository -->
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-cvc4</artifactId>
<version>1.8-prerelease-2020-06-24-g7825d8f28</version>
<type>jar</type>
<classifier>CVC4</classifier>
</dependency>
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-cvc4</artifactId>
<version>1.8-prerelease-2020-06-24-g7825d8f28</version>
<type>so</type>
<classifier>libcvc4</classifier>
</dependency>
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-cvc4</artifactId>
<version>1.8-prerelease-2020-06-24-g7825d8f28</version>
<type>so</type>
<classifier>libcvc4jni</classifier>
</dependency>
<dependency>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-cvc4</artifactId>
<version>1.8-prerelease-2020-06-24-g7825d8f28</version>
<type>so</type>
<classifier>libcvc4parser</classifier>
</dependency>
<!-- JUnit for testing -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<!-- This step starts its own JVM that ignores system properties set by the user,
because why would those ever be important?! -->
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<!-- For solvers with native binaries, you need to add the classpath to test properly.
This path needs to be the location of the sosy-lab.commons.jar and the solver binaries.
See maven-dependency-plugin below for more information. -->
<argLine>-Djava.library.path=${project.dependency.path}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-Djava.library.path=${project.dependency.path}</argument>
<argument>-classpath</argument>
<classpath />
<argument>graal.learning.smt.experiments.Experiments</argument>
</arguments>
<!--<mainClass>graal.learning.smt.experiments.Experiments</mainClass>-->
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>${project.dependency.relativepath}</classpathPrefix>
<mainClass>graal.learning.smt.experiments.Experiments</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<!-- The dependency plugin allows us to copy or delete files. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<!-- The goal "copy" is used to change the name of the solver libraries (i.e. Z3)
from the name that is used internally in Maven to the normal name. -->
<id>copy</id>
<phase>initialize</phase>
<goals>
<goal>copy</goal>
</goals>
</execution>
<execution>
<!-- Taken from the JavaSMT repository : -->
<!-- This copies all dependencies to ${project.dependency.path}. -->
<!-- We do this, because the sosy-lab.commons dependency (in JavaSMT) searches the
native solver binaries (i.e. MathSAT or Z3) at specific locations and with specific names.
So we just copy the dependencies and set the classpath to this location.
You may of course change this if you know how to.
Default search locations for sosy-lab.commons:
(1) in its own folder (by far the easiest, just copy everything together) or
(2) in the "native library path" as returned by getNativeLibraryPath() in Java,
which is the directory ../native/<arch>-<os>/ relative to the JAR file of sosy-lab.commons,
with the following values depending on your system (arch=x86_64|x86; os=linux|windows|macosx). -->
<id>copy-dependencies</id>
<phase>validate</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${project.dependency.path}</outputDirectory>
<artifactItems>
<!-- Taken from the JavaSMT repository -->
<!-- Here we specify what we want to use for the goal "copy".
In our case we copy the solver dependencies (binaries) to change their names.
groupId/artifactId/version/type/classifier have to match the dependency!
We copy them to ${project.dependency.path} as this is the location
that copy-dependencies uses by default. destFileName specifies the final name.
You may only need some of the artifacts below, depending on what solver(s) you want.
Important: you NEED to set the classpath to ${project.dependency.path} or
wherever you have your sosy-lab.commons + solver binaries! -->
<!-- MathSAT5 has one native library -->
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-mathsat5</artifactId>
<type>so</type>
<destFileName>libmathsat5j.so</destFileName>
</artifactItem>
<!-- Z3 has two native libraries -->
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-z3</artifactId>
<type>so</type>
<classifier>libz3java</classifier>
<destFileName>libz3java.so</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-z3</artifactId>
<type>so</type>
<classifier>libz3</classifier>
<destFileName>libz3.so</destFileName>
</artifactItem>
<!-- Boolector has three dependencies (on Linux) -->
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-boolector</artifactId>
<type>so</type>
<classifier>libboolector</classifier>
<destFileName>libboolector.so</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-boolector</artifactId>
<type>so</type>
<classifier>libminisat</classifier>
<destFileName>libminisat.so</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-boolector</artifactId>
<type>so</type>
<classifier>libpicosat</classifier>
<destFileName>libpicosat.so</destFileName>
</artifactItem>
<!-- CVC4 has four dependencies (on Linux),
and renaming the JAR file is not required -->
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-cvc4</artifactId>
<type>so</type>
<classifier>libcvc4</classifier>
<destFileName>libcvc4.so</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-cvc4</artifactId>
<type>so</type>
<classifier>libcvc4jni</classifier>
<destFileName>libcvc4jni.so</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-cvc4</artifactId>
<type>so</type>
<classifier>libcvc4parser</classifier>
<destFileName>libcvc4parser.so</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.sosy-lab</groupId>
<artifactId>javasmt-solver-yices2</artifactId>
<type>so</type>
<classifier>libyices2j</classifier>
<destFileName>libyices2j.so</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</plugin>
</plugins>
</build>
</project>