forked from tlaplus/tlaplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
291 lines (264 loc) · 10.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
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
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>tlatoolbox</groupId>
<artifactId>parent</artifactId>
<name>TLA+ Tools and TLA Toolbox</name>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<organization>
<name>Microsoft Research Inria Joint Centre</name>
<url>http://msr-inria.inria.fr/</url>
</organization>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/tlaplus/tlaplus/issues</url>
</issueManagement>
<scm>
<connection>scm:git:https://github.com/tlaplus/tlaplus</connection>
<developerConnection>scm:git:https://github.com/tlaplus/tlaplus</developerConnection>
<tag>HEAD</tag>
</scm>
<modules>
<!-- non-OSGi jars -->
<module>tlatools</module>
<!-- OSGi based multi invocation worker (model check > 1 spec in a single runtime -->
<module>org.lamport.tlatools.api</module>
<module>org.lamport.tlatools.impl.distributed</module>
<module>org.lamport.tlatools.consumer.distributed</module>
<!-- bundles -->
<module>org.lamport.tla.toolbox</module>
<module>org.lamport.tla.toolbox.jclouds</module>
<module>org.lamport.tla.toolbox.jnlp</module>
<module>org.lamport.tla.toolbox.doc</module>
<module>org.lamport.tla.toolbox.editor.basic</module>
<module>org.lamport.tla.toolbox.tool.prover</module>
<module>org.lamport.tla.toolbox.tool.tla2tex</module>
<module>org.lamport.tla.toolbox.tool.tlc</module>
<module>org.lamport.tla.toolbox.tool.tlc.ui</module>
<module>org.lamport.tla.toolbox.product.standalone</module>
<!-- Junit tests -->
<module>org.lamport.tla.toolbox.test</module>
<module>org.lamport.tla.toolbox.tool.tlc.test</module>
<module>org.lamport.tla.toolbox.tool.tlc.ui.test</module>
<!-- SWTBot tests -->
<module>org.lamport.tla.toolbox.uitest</module>
<module>org.lamport.tla.toolbox.tool.tla2tex.uitest</module>
<module>org.lamport.tla.toolbox.tool.tlc.ui.uitest</module>
<!-- features -->
<module>org.lamport.tlatools.feature</module>
<module>org.lamport.tla.toolbox.feature.base</module>
<module>org.lamport.tla.toolbox.feature.editor</module>
<module>org.lamport.tla.toolbox.feature.jnlp</module>
<module>org.lamport.tla.toolbox.feature.jclouds</module>
<module>org.lamport.tla.toolbox.feature.help</module>
<module>org.lamport.tla.toolbox.feature.prover</module>
<module>org.lamport.tla.toolbox.feature.tla2tex</module>
<module>org.lamport.tla.toolbox.feature.tlc</module>
<module>org.lamport.tla.toolbox.feature.uitest</module>
<module>org.lamport.tla.toolbox.feature.branding</module>
<module>org.lamport.tla.toolbox.feature.standalone</module>
<!-- p2 repository for updates -->
<module>org.lamport.tla.toolbox.p2repository</module>
<!-- product related -->
<module>org.lamport.tla.toolbox.product.product</module>
</modules>
<!-- tycho requires maven >= 3.0 -->
<prerequisites>
<maven>3.0</maven>
</prerequisites>
<!-- Minimum tycho version build work with -->
<properties>
<!-- http://maven.apache.org/general.html#encoding-warning -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- https://wiki.eclipse.org/Tycho/Release_Notes/1.2 -->
<tycho-version>1.2.0</tycho-version>
<!-- no default here -->
<tycho.test.vm.argline>-Xmx500m -Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n</tycho.test.vm.argline>
<tycho.test.vm.useUiThread>false</tycho.test.vm.useUiThread>
<!-- These properties define a dummy certificate store that is used unless the developer passes overwrites to maven -->
<!-- see http://stackoverflow.com/a/3620575 for how such an overwrite would look like. -->
<keystore.path>${project.basedir}/../keystore</keystore.path>
<keystore.alias>msr</keystore.alias>
<keystore.store.password>secret</keystore.store.password>
<keystore.key.password>secret</keystore.key.password>
<!--
Set to the values below if the signature should include a timestamp. You want this for a release build
because a timestamp makes sure the signature remains valid after the certificate expired.
If you activate RFC3161, make sure the machine running the build has sufficient entropy available. Otherwise
expect to see intermittent hangs when the build attempts to sign a jar. On Linux the haveged and rng-tools
can help to collect entropy.
<tsa.flag>-tsa</tsa.flag>
<tsa.server>http://timestamp.comodoca.com</tsa.server>
-->
<tsa.flag></tsa.flag>
<tsa.server></tsa.server>
<!-- Report into the tlaplus organization at SonarQube. -->
<!-- Organizations support reporting different branches. -->
<sonar.organization>tlaplus</sonar.organization>
</properties>
<build>
<plugins>
<!-- enable tycho build extension -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<!-- Compress Toolbox plugins -->
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-pack200b-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>pack200-pack</id>
<goals>
<goal>pack</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Then, alter p2-metadata to make the .pack.gz
artifact visible from other modules -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>p2-metadata</id>
<goals>
<goal>p2-metadata</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<defaultP2Metadata>false</defaultP2Metadata>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.4</version>
<configuration>
<keystore>${keystore.path}</keystore>
<alias>${keystore.alias}</alias>
<storepass>${keystore.store.password}</storepass>
<keypass>${keystore.key.password}</keypass>
<verbose>false</verbose>
<arguments>
<!-- Embed a current timestamp in the signed content (file). With this timestamp,
the signature of the content remains valid *after* the signing certificate
expired. -->
<argument>${tsa.flag}</argument>
<argument>${tsa.server}</argument>
</arguments>
</configuration>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<!-- recommended: use p2-based target platform resolver -->
<resolver>p2</resolver>
<ignoreTychoRepositories>true</ignoreTychoRepositories>
<!-- Include the pack200 artifacts in the p2 repository. This increases
the size of the p2 repository (jars + pack.gz), but reduces the load on the
server hosting the repository as clients download the compressed pack.gz files. -->
<includePackedArtifacts>true</includePackedArtifacts>
<!-- use existing target platform definition -->
<target>
<artifact>
<groupId>tlatoolbox</groupId>
<artifactId>org.lamport.tla.toolbox.product.product</artifactId>
<version>1.4.0-SNAPSHOT</version>
<classifier>TLAToolbox</classifier>
</artifact>
</target>
<!-- Need to specify mininum Java version. This defines what
java.* packages are available during dependency resolution. The default
is Java 1.4 which e.g. does not come with "java.security.sasl", a
package that is indirectly referenced by the toolbox (indirectly via
org.apache.mina.core).
see http://dev.eclipse.org/mhonarc/lists/cbi-dev/msg00166.html -->
<executionEnvironment>JavaSE-1.8</executionEnvironment>
<!-- configure the p2 target environments for multi-platform build -->
<environments>
<!-- Linux -->
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<!-- Windows -->
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<!-- Mac -->
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
<!-- pass mac specific SWT properties on ...drum roll... mac -->
<profiles>
<profile>
<id>macosx</id>
<activation>
<property>
<name>os.name</name>
<value>Mac OS X</value>
</property>
</activation>
<properties>
<!-- On Mac OS X, /tmp is a symbolic link pointing to /private/tmp. Thus, make sure unit tests -->
<!-- use the /private/tmp to make path comparison work. -->
<!-- See org.lamport.tla.toolbox.spec.SpecTest.testCreateSpecStoreRelativePath() -->
<tycho.test.vm.argline>-Dosgi.ws=cocoa -Djava.io.tmpdir=/private/tmp/ -XstartOnFirstThread</tycho.test.vm.argline>
<tycho.test.vm.useUiThread>false</tycho.test.vm.useUiThread>
</properties>
</profile>
</profiles>
</project>