marmottawrapper 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/pom.xml ADDED
@@ -0,0 +1,571 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <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">
19
+ <modelVersion>4.0.0</modelVersion>
20
+ <groupId>la.dp</groupId>
21
+ <artifactId>marmotta-webapp</artifactId>
22
+ <packaging>war</packaging>
23
+ <name>marmotta-webapp</name>
24
+ <description>The marmotta-webapp WAR bundle</description>
25
+ <version>3.2.1-0.0.1</version>
26
+ <properties>
27
+ <marmotta.home>${java.io.tmpdir}${file.separator}marmotta-webapp</marmotta.home>
28
+ <marmotta.context>/</marmotta.context>
29
+ <marmotta.port>8080</marmotta.port>
30
+ <marmotta.backend>kiwi</marmotta.backend>
31
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
32
+ <marmotta.version>3.2.1</marmotta.version>
33
+ <sesame.version>2.7.11</sesame.version>
34
+ <junit.version>4.11</junit.version>
35
+ <weld.version>2.1.Final</weld.version>
36
+ <weld.core.version>2.1.2.Final</weld.core.version>
37
+ <rest.assured.version>1.7.1</rest.assured.version>
38
+ <hamcrest.version>1.3</hamcrest.version>
39
+ <tempus.fugit.version>1.1</tempus.fugit.version>
40
+ <jatl.version>0.2.2</jatl.version>
41
+ <servlet.api.version>3.0.1</servlet.api.version>
42
+ <javax.el.version>2.2.4</javax.el.version>
43
+ <h2.version>1.3.174</h2.version>
44
+ <postgresql.version>9.3-1100-jdbc4</postgresql.version>
45
+ <mysql.version>5.1.21</mysql.version>
46
+ <jetty.version>9.0.3.v20130506</jetty.version>
47
+ <resteasy.version>3.0.6.Final</resteasy.version>
48
+ <jackson.version>2.2.3</jackson.version>
49
+ <titan.version>0.4.2</titan.version>
50
+ </properties>
51
+ <build>
52
+ <finalName>marmotta</finalName>
53
+ <pluginManagement>
54
+ <plugins>
55
+ <plugin>
56
+ <groupId>org.apache.maven.plugins</groupId>
57
+ <artifactId>maven-compiler-plugin</artifactId>
58
+ <version>3.0</version>
59
+ <configuration>
60
+ <source>1.7</source>
61
+ <target>1.7</target>
62
+ </configuration>
63
+ </plugin>
64
+ <plugin>
65
+ <groupId>org.apache.maven.plugins</groupId>
66
+ <artifactId>maven-surefire-plugin</artifactId>
67
+ <version>2.12.4</version>
68
+ <configuration>
69
+ <useSystemClassLoader>false</useSystemClassLoader>
70
+ <forkMode>always</forkMode>
71
+ </configuration>
72
+ </plugin>
73
+ <plugin>
74
+ <artifactId>maven-war-plugin</artifactId>
75
+ <version>2.3</version>
76
+ <configuration>
77
+ <archive>
78
+ <manifest>
79
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
80
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
81
+ </manifest>
82
+ </archive>
83
+ <archiveClasses>false</archiveClasses>
84
+ </configuration>
85
+ </plugin>
86
+ <plugin>
87
+ <artifactId>maven-deploy-plugin</artifactId>
88
+ <version>2.7</version>
89
+ <configuration>
90
+ <skip>true</skip>
91
+ </configuration>
92
+ </plugin>
93
+ <plugin>
94
+ <groupId>org.apache.tomcat.maven</groupId>
95
+ <artifactId>tomcat7-maven-plugin</artifactId>
96
+ <version>2.2</version>
97
+ <configuration>
98
+ <contextFile>src/main/webapp/META-INF/context.xml</contextFile>
99
+ <path>${marmotta.context}</path>
100
+ <port>${marmotta.port}</port>
101
+ <systemProperties>
102
+ <marmotta.home>${marmotta.home}</marmotta.home>
103
+ </systemProperties>
104
+ <skipErrorOnShutdown>true</skipErrorOnShutdown>
105
+ <!-- <contextReloadable>true</contextReloadable>-->
106
+ <!-- <backgroundProcessorDelay>10</backgroundProcessorDelay>-->
107
+ </configuration>
108
+ </plugin>
109
+ </plugins>
110
+ </pluginManagement>
111
+ <resources>
112
+ <resource>
113
+ <directory>src/main/resources</directory>
114
+ <filtering>true</filtering>
115
+ </resource>
116
+ </resources>
117
+ <plugins>
118
+ <plugin>
119
+ <groupId>org.apache.maven.plugins</groupId>
120
+ <artifactId>maven-compiler-plugin</artifactId>
121
+ </plugin>
122
+ <plugin>
123
+ <groupId>org.apache.maven.plugins</groupId>
124
+ <artifactId>maven-surefire-plugin</artifactId>
125
+ </plugin>
126
+ <plugin>
127
+ <groupId>org.apache.tomcat.maven</groupId>
128
+ <artifactId>tomcat7-maven-plugin</artifactId>
129
+ <executions>
130
+ <execution>
131
+ <id>tomcat-run</id>
132
+ <phase>pre-integration-test</phase>
133
+ <goals>
134
+ <goal>shutdown</goal>
135
+ <goal>run-war-only</goal>
136
+ </goals>
137
+ <configuration>
138
+ <fork>true</fork>
139
+ </configuration>
140
+ </execution>
141
+ <execution>
142
+ <id>shutdown</id>
143
+ <phase>post-integration-test</phase>
144
+ <goals>
145
+ <goal>shutdown</goal>
146
+ </goals>
147
+ </execution>
148
+ </executions>
149
+ </plugin>
150
+ <plugin>
151
+ <groupId>com.googlecode.maven-download-plugin</groupId>
152
+ <artifactId>maven-download-plugin</artifactId>
153
+ <version>1.1.0</version>
154
+ <executions>
155
+ <execution>
156
+ <id>fetch-indexjsp</id>
157
+ <phase>integration-test</phase>
158
+ <goals>
159
+ <goal>wget</goal>
160
+ </goals>
161
+ <configuration>
162
+ <url>http://localhost:${marmotta.port}${marmotta.context}index.jsp</url>
163
+ <outputFileName>index.html</outputFileName>
164
+ <outputDirectory>${project.build.directory}/it/</outputDirectory>
165
+ <skipCache>true</skipCache>
166
+ </configuration>
167
+ </execution>
168
+ <execution>
169
+ <id>fetch-config</id>
170
+ <phase>integration-test</phase>
171
+ <goals>
172
+ <goal>wget</goal>
173
+ </goals>
174
+ <configuration>
175
+ <url>http://localhost:${marmotta.port}${marmotta.context}config/data/kiwi.version</url>
176
+ <outputFileName>kiwi-version.json</outputFileName>
177
+ <outputDirectory>${project.build.directory}/it/</outputDirectory>
178
+ <skipCache>true</skipCache>
179
+ </configuration>
180
+ </execution>
181
+ </executions>
182
+ </plugin>
183
+ <plugin>
184
+ <artifactId>maven-verifier-plugin</artifactId>
185
+ <version>1.0</version>
186
+ <executions>
187
+ <execution>
188
+ <id>check-files</id>
189
+ <phase>verify</phase>
190
+ <goals>
191
+ <goal>verify</goal>
192
+ </goals>
193
+ <configuration>
194
+ <basedir>${project.build.directory}/it/</basedir>
195
+ <verificationFile>${basedir}/src/test/resources/verification.xml</verificationFile>
196
+ <failOnError>true</failOnError>
197
+ </configuration>
198
+ </execution>
199
+ </executions>
200
+ </plugin>
201
+ <plugin>
202
+ <artifactId>maven-dependency-plugin</artifactId>
203
+ </plugin>
204
+ </plugins>
205
+ </build>
206
+ <profiles>
207
+ <profile>
208
+ <id>runnable-war</id>
209
+ <build>
210
+ <plugins>
211
+ <plugin>
212
+ <groupId>org.apache.tomcat.maven</groupId>
213
+ <artifactId>tomcat7-maven-plugin</artifactId>
214
+ <version>2.1</version>
215
+ <executions>
216
+ <execution>
217
+ <id>tomcat-run</id>
218
+ <goals>
219
+ <goal>exec-war-only</goal>
220
+ </goals>
221
+ <phase>package</phase>
222
+ <configuration>
223
+ <path>${marmotta.context}</path>
224
+ <port>${marmotta.port}</port>
225
+ <systemProperties>
226
+ <marmotta.home>${marmotta.home}</marmotta.home>
227
+ </systemProperties>
228
+ <attachartifactclassifier>exec-war</attachartifactclassifier>
229
+ <attachartifactclassifiertype>jar</attachartifactclassifiertype>
230
+ </configuration>
231
+ </execution>
232
+ </executions>
233
+ </plugin>
234
+ </plugins>
235
+ </build>
236
+ </profile>
237
+ <!-- backend profiles -->
238
+ <profile>
239
+ <id>kiwi</id>
240
+ <activation>
241
+ <activeByDefault>true</activeByDefault>
242
+ <property>
243
+ <name>marmotta.backend</name>
244
+ <value>kiwi</value>
245
+ </property>
246
+ </activation>
247
+ <dependencies>
248
+ <dependency>
249
+ <groupId>org.apache.marmotta</groupId>
250
+ <artifactId>marmotta-backend-kiwi</artifactId>
251
+ <version>${marmotta.version}</version>
252
+ </dependency>
253
+ <dependency>
254
+ <groupId>org.apache.marmotta</groupId>
255
+ <artifactId>marmotta-ldcache-kiwi</artifactId>
256
+ <version>${marmotta.version}</version>
257
+ </dependency>
258
+ <dependency>
259
+ <groupId>org.apache.marmotta</groupId>
260
+ <artifactId>marmotta-reasoner-kiwi</artifactId>
261
+ <version>${marmotta.version}</version>
262
+ </dependency>
263
+ <dependency>
264
+ <groupId>org.apache.marmotta</groupId>
265
+ <artifactId>marmotta-versioning-kiwi</artifactId>
266
+ <version>${marmotta.version}</version>
267
+ </dependency>
268
+ </dependencies>
269
+ </profile>
270
+ <profile>
271
+ <id>titan-berkeleydb</id>
272
+ <activation>
273
+ <property>
274
+ <name>marmotta.backend</name>
275
+ <value>titan-berkeleydb</value>
276
+ </property>
277
+ </activation>
278
+ <dependencies>
279
+ <dependency>
280
+ <groupId>org.apache.marmotta</groupId>
281
+ <artifactId>marmotta-backend-titan</artifactId>
282
+ <version>${marmotta.version}</version>
283
+ </dependency>
284
+ <dependency>
285
+ <groupId>org.apache.marmotta</groupId>
286
+ <artifactId>marmotta-ldcache-file</artifactId>
287
+ <version>${marmotta.version}</version>
288
+ </dependency>
289
+ <dependency>
290
+ <groupId>com.thinkaurelius.titan</groupId>
291
+ <artifactId>titan-berkeleyje</artifactId>
292
+ <version>${titan.version}</version>
293
+ </dependency>
294
+ </dependencies>
295
+ </profile>
296
+ <profile>
297
+ <id>titan-hbase</id>
298
+ <activation>
299
+ <property>
300
+ <name>marmotta.backend</name>
301
+ <value>titan-hbase</value>
302
+ </property>
303
+ </activation>
304
+ <dependencies>
305
+ <dependency>
306
+ <groupId>org.apache.marmotta</groupId>
307
+ <artifactId>marmotta-backend-titan</artifactId>
308
+ <version>${marmotta.version}</version>
309
+ </dependency>
310
+ <dependency>
311
+ <groupId>org.apache.marmotta</groupId>
312
+ <artifactId>marmotta-ldcache-file</artifactId>
313
+ <version>${marmotta.version}</version>
314
+ </dependency>
315
+ <dependency>
316
+ <groupId>com.thinkaurelius.titan</groupId>
317
+ <artifactId>titan-hbase</artifactId>
318
+ <version>${titan.version}</version>
319
+ <exclusions>
320
+ <exclusion>
321
+ <groupId>org.mortbay.jetty</groupId>
322
+ <artifactId>servlet-api</artifactId>
323
+ </exclusion>
324
+ <exclusion>
325
+ <groupId>org.mortbay.jetty</groupId>
326
+ <artifactId>servlet-api-2.5</artifactId>
327
+ </exclusion>
328
+ <exclusion>
329
+ <groupId>org.mortbay.jetty</groupId>
330
+ <artifactId>jsp-2.1</artifactId>
331
+ </exclusion>
332
+ <exclusion>
333
+ <groupId>org.mortbay.jetty</groupId>
334
+ <artifactId>jsp-api-2.1</artifactId>
335
+ </exclusion>
336
+ <exclusion>
337
+ <groupId>log4j</groupId>
338
+ <artifactId>log4j</artifactId>
339
+ </exclusion>
340
+ <exclusion>
341
+ <groupId>org.slf4j</groupId>
342
+ <artifactId>slf4j-log4j12</artifactId>
343
+ </exclusion>
344
+ </exclusions>
345
+ </dependency>
346
+ </dependencies>
347
+ </profile>
348
+ <profile>
349
+ <id>bigdata</id>
350
+ <activation>
351
+ <property>
352
+ <name>marmotta.backend</name>
353
+ <value>bigdata</value>
354
+ </property>
355
+ </activation>
356
+ <dependencies>
357
+ <dependency>
358
+ <groupId>org.apache.marmotta</groupId>
359
+ <artifactId>marmotta-backend-bigdata</artifactId>
360
+ <version>${marmotta.version}</version>
361
+ </dependency>
362
+ <dependency>
363
+ <groupId>org.apache.marmotta</groupId>
364
+ <artifactId>marmotta-ldcache-file</artifactId>
365
+ <version>${marmotta.version}</version>
366
+ </dependency>
367
+ </dependencies>
368
+ </profile>
369
+ <!-- Caching Backends for KiWi -->
370
+ <profile>
371
+ <id>infinispan</id>
372
+ <activation>
373
+ <property>
374
+ <name>marmotta.caching</name>
375
+ <value>infinispan</value>
376
+ </property>
377
+ </activation>
378
+ <dependencies>
379
+ <dependency>
380
+ <groupId>org.apache.marmotta</groupId>
381
+ <artifactId>kiwi-caching-infinispan</artifactId>
382
+ <version>${marmotta.version}</version>
383
+ </dependency>
384
+ </dependencies>
385
+ </profile>
386
+ <profile>
387
+ <id>hazelcast</id>
388
+ <activation>
389
+ <property>
390
+ <name>marmotta.caching</name>
391
+ <value>hazelcast</value>
392
+ </property>
393
+ </activation>
394
+ <dependencies>
395
+ <dependency>
396
+ <groupId>org.apache.marmotta</groupId>
397
+ <artifactId>kiwi-caching-hazelcast</artifactId>
398
+ <version>${marmotta.version}</version>
399
+ </dependency>
400
+ </dependencies>
401
+ </profile>
402
+ <profile>
403
+ <id>ehcache</id>
404
+ <activation>
405
+ <property>
406
+ <name>marmotta.caching</name>
407
+ <value>ehcache</value>
408
+ </property>
409
+ </activation>
410
+ <dependencies>
411
+ <dependency>
412
+ <groupId>org.apache.marmotta</groupId>
413
+ <artifactId>kiwi-caching-ehcache</artifactId>
414
+ <version>${marmotta.version}</version>
415
+ </dependency>
416
+ </dependencies>
417
+ </profile>
418
+ <profile>
419
+ <id>zookeeper</id>
420
+ <dependencies>
421
+ <dependency>
422
+ <groupId>org.apache.marmotta</groupId>
423
+ <artifactId>marmotta-zookeeper</artifactId>
424
+ <version>${marmotta.version}</version>
425
+ </dependency>
426
+ </dependencies>
427
+ </profile>
428
+ <profile>
429
+ <id>cleanall</id>
430
+ <build>
431
+ <plugins>
432
+ <plugin>
433
+ <artifactId>maven-clean-plugin</artifactId>
434
+ <version>2.5</version>
435
+ <configuration>
436
+ <filesets>
437
+ <fileset>
438
+ <directory>${marmotta.home}</directory>
439
+ <followSymlinks>true</followSymlinks>
440
+ </fileset>
441
+ </filesets>
442
+ </configuration>
443
+ </plugin>
444
+ </plugins>
445
+ </build>
446
+ </profile>
447
+ <profile>
448
+ <!-- This profile is used for integration testing
449
+ during the build of the archetype.
450
+ In your target project you can safely remove
451
+ this profile.
452
+ -->
453
+ <id>archetype-it</id>
454
+ <properties>
455
+ <marmotta.port>53889</marmotta.port>
456
+ </properties>
457
+ </profile>
458
+ </profiles>
459
+ <dependencies>
460
+ <!-- Modules, include the ones needed by the application -->
461
+ <dependency>
462
+ <groupId>org.apache.marmotta</groupId>
463
+ <artifactId>marmotta-core</artifactId>
464
+ <version>${marmotta.version}</version>
465
+ </dependency>
466
+ <dependency>
467
+ <groupId>org.apache.marmotta</groupId>
468
+ <artifactId>marmotta-sparql</artifactId>
469
+ <version>${marmotta.version}</version>
470
+ </dependency>
471
+ <dependency>
472
+ <groupId>org.apache.marmotta</groupId>
473
+ <artifactId>marmotta-ldpath</artifactId>
474
+ <version>${marmotta.version}</version>
475
+ </dependency>
476
+ <dependency>
477
+ <groupId>org.apache.marmotta</groupId>
478
+ <artifactId>marmotta-ldp</artifactId>
479
+ <version>${marmotta.version}</version>
480
+ </dependency>
481
+ <dependency>
482
+ <groupId>org.apache.marmotta</groupId>
483
+ <artifactId>marmotta-ldcache-common</artifactId>
484
+ <version>${marmotta.version}</version>
485
+ </dependency>
486
+ <dependency>
487
+ <groupId>org.apache.marmotta</groupId>
488
+ <artifactId>marmotta-versioning-common</artifactId>
489
+ <version>${marmotta.version}</version>
490
+ </dependency>
491
+ <dependency>
492
+ <groupId>org.apache.marmotta</groupId>
493
+ <artifactId>marmotta-user</artifactId>
494
+ <version>${marmotta.version}</version>
495
+ </dependency>
496
+ <dependency>
497
+ <groupId>org.apache.marmotta</groupId>
498
+ <artifactId>marmotta-security</artifactId>
499
+ <version>${marmotta.version}</version>
500
+ </dependency>
501
+ <!-- JavaEE / Servlet / CDI Environment -->
502
+ <dependency>
503
+ <groupId>javax.servlet</groupId>
504
+ <artifactId>javax.servlet-api</artifactId>
505
+ <version>${servlet.api.version}</version>
506
+ <scope>provided</scope>
507
+ </dependency>
508
+ <dependency>
509
+ <groupId>javax.el</groupId>
510
+ <artifactId>javax.el-api</artifactId>
511
+ <version>${javax.el.version}</version>
512
+ <scope>provided</scope>
513
+ </dependency>
514
+ <dependency>
515
+ <groupId>org.jboss.weld.servlet</groupId>
516
+ <artifactId>weld-servlet-core</artifactId>
517
+ <version>${weld.core.version}</version>
518
+ <scope>runtime</scope>
519
+ <exclusions>
520
+ <exclusion>
521
+ <groupId>javax.el</groupId>
522
+ <artifactId>el-api</artifactId>
523
+ </exclusion>
524
+ <exclusion>
525
+ <groupId>org.jboss.spec.javax.el</groupId>
526
+ <artifactId>jboss-el-api_3.0_spec</artifactId>
527
+ </exclusion>
528
+ </exclusions>
529
+ </dependency>
530
+ <dependency>
531
+ <groupId>org.jboss.weld</groupId>
532
+ <artifactId>weld-core</artifactId>
533
+ <version>${weld.core.version}</version>
534
+ <scope>runtime</scope>
535
+ <exclusions>
536
+ <exclusion>
537
+ <groupId>org.javassist</groupId>
538
+ <artifactId>javassist</artifactId>
539
+ </exclusion>
540
+ <exclusion>
541
+ <groupId>org.jboss.spec.javax.el</groupId>
542
+ <artifactId>jboss-el-api_3.0_spec</artifactId>
543
+ </exclusion>
544
+ </exclusions>
545
+ </dependency>
546
+ <dependency>
547
+ <groupId>com.h2database</groupId>
548
+ <artifactId>h2</artifactId>
549
+ <version>${h2.version}</version>
550
+ </dependency>
551
+ <dependency>
552
+ <groupId>org.postgresql</groupId>
553
+ <artifactId>postgresql</artifactId>
554
+ <version>${postgresql.version}</version>
555
+ </dependency>
556
+ <!-- enable for MySQL support; note that the MySQL driver is GPL licensed -->
557
+ <!--
558
+ <dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>${mysql.version}</version></dependency>-->
559
+ <dependency>
560
+ <groupId>com.thetransactioncompany</groupId>
561
+ <artifactId>cors-filter</artifactId>
562
+ <version>1.9</version>
563
+ <exclusions>
564
+ <exclusion>
565
+ <groupId>javax.servlet</groupId>
566
+ <artifactId>servlet-api</artifactId>
567
+ </exclusion>
568
+ </exclusions>
569
+ </dependency>
570
+ </dependencies>
571
+ </project>
@@ -0,0 +1,32 @@
1
+ namespace :marmotta do
2
+
3
+ desc "remove the marmotta jar and recreate it"
4
+ task :clean do
5
+ Marmottawrapper.clean
6
+ end
7
+
8
+ desc "rebuild the marmotta jar"
9
+ task :build do
10
+
11
+ dir = Marmottawrapper.build
12
+ puts "Marmotta jar created at #{dir}"
13
+ end
14
+
15
+ desc "Start Marmotta/Tomcat"
16
+ task :start do
17
+ pid = Marmottawrapper.start
18
+ puts "Tomcat started with PID #{pid}"
19
+ end
20
+
21
+ desc "Stop Marmotta/Tomcat"
22
+ task :stop do
23
+ pid = Marmottawrapper.stop
24
+ puts "Tomcat/Marmotta stopped"
25
+ end
26
+
27
+ desc "Restart Marmotta/Tomcat"
28
+ task :restart do
29
+ Marmottawrapper.stop
30
+ Marmottawrapper.start
31
+ end
32
+ end