Implement custom Policy entry and policy storage ops
[aquarium] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright 2011 GRNET S.A. All rights reserved.
4   ~
5   ~ Redistribution and use in source and binary forms, with or
6   ~ without modification, are permitted provided that the following
7   ~ conditions are met:
8   ~
9   ~   1. Redistributions of source code must retain the above
10   ~      copyright notice, this list of conditions and the following
11   ~      disclaimer.
12   ~
13   ~   2. Redistributions in binary form must reproduce the above
14   ~      copyright notice, this list of conditions and the following
15   ~      disclaimer in the documentation and/or other materials
16   ~      provided with the distribution.
17   ~
18   ~ THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
19   ~ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20   ~ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21   ~ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
22   ~ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23   ~ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24   ~ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
25   ~ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26   ~ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27   ~ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28   ~ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29   ~ POSSIBILITY OF SUCH DAMAGE.
30   ~
31   ~ The views and conclusions contained in the software and
32   ~ documentation are those of the authors and should not be
33   ~ interpreted as representing official policies, either expressed
34   ~ or implied, of GRNET S.A.
35   -->
36
37 <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">
38
39
40   <modelVersion>4.0.0</modelVersion>
41   <groupId>gr.grnet</groupId>
42   <artifactId>aquarium</artifactId>
43   <version>0.2-SNAPSHOT</version>
44
45   <!-- Project details-->
46   <name>Aquarium</name>
47   <description>
48     Accounting services for the Okeanos cloud
49   </description>
50   <url>http://code.grnet.gr/projects/aquarium</url>
51   <inceptionYear>2011</inceptionYear>
52   <organization>
53     <name>GRNet</name>
54     <url>http://www.grnet.gr/</url>
55   </organization>
56
57   <developers>
58     <developer>
59       <id>gousiosg</id>
60       <name>Georgios Gousios</name>
61       <email>gousiosg@grnet.gr</email>
62     </developer>
63     <developer>
64       <id>loverdos</id>
65       <name>Christos KK Loverdos</name>
66       <email>loverdos@grnet.gr</email>
67     </developer>
68   </developers>
69
70   <scm>
71     <url>http://code.grnet.gr/projects/aquarium/repository</url>
72     <connection>scm:git:https://code.grnet.gr/git/aquarium</connection>
73     <developerConnection>scm:git:https://code.grnet.gr/git/aquarium</developerConnection>
74   </scm>
75
76   <issueManagement>
77     <system>redmine</system>
78     <url>http://code.grnet.gr/projects/aquarium/issues</url>
79   </issueManagement>
80
81   <distributionManagement>
82     <repository>
83       <id>aq-release</id>
84       <name>Aquarium releases repo</name>
85       <url>http://aquarium.dev.grnet.gr:8081/nexus/content/repositories/releases</url>
86     </repository>
87     <snapshotRepository>
88       <id>aq-snapshot</id>
89       <name>Aquarium snapshots repo</name>
90       <url>http://aquarium.dev.grnet.gr:8081/nexus/content/repositories/snapshots</url>
91     </snapshotRepository>
92   </distributionManagement>
93
94   <!--Common project settings-->
95   <properties>
96     <scala.version>2.9.1</scala.version>
97     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
98     <project.reporting.outputEncoding>${project.build.sourceEncoding}
99     </project.reporting.outputEncoding>
100   </properties>
101
102   <!-- Lib and plugin repositories -->
103   <repositories>
104     <repository>
105       <id>scala-tools.releases</id>
106       <name>Scala-Tools Dependencies Repository for Releases</name>
107       <url>http://scala-tools.org/repo-releases</url>
108     </repository>
109     
110     <repository>
111       <id>scala-tools.snapshots</id>
112       <name>Scala-Tools Dependencies Repository for Snapshots</name>
113       <url>http://scala-tools.org/repo-snapshots</url>
114     </repository>
115
116     <repository>
117       <id>java.net.maven2</id>
118       <name>java.net Maven2 Repository</name>
119       <url>http://download.java.net/maven/2/</url>
120     </repository>
121     
122     <repository>
123       <name>JBoss</name>
124       <id>jboss</id>
125       <url>http://repository.jboss.org/nexus/content/groups/public/</url>
126     </repository>
127
128     <repository>
129       <name>JBoss Scala-Tools</name>
130       <id>jboss-scala-tools</id>
131       <url>https://repository.jboss.org/nexus/content/repositories/scala-tools-releases</url>
132     </repository>
133
134     <repository>
135       <name>jcrontab</name>
136       <id>jcrontab</id>
137       <url>http://kenai.com/projects/crontab-parser/sources/maven-repo/content/</url>
138     </repository>
139
140     <repository>
141       <name>Typesafe</name>
142       <id>typesafe</id>
143       <url>http://repo.typesafe.com/typesafe/releases/</url>
144     </repository>
145   </repositories>
146
147   <pluginRepositories>
148     <pluginRepository>
149       <id>scala-tools.releases</id>
150       <name>Scala-Tools Plugins Repository for Releases</name>
151       <url>http://scala-tools.org/repo-releases</url>
152     </pluginRepository>
153   </pluginRepositories>
154
155   <!-- Master properties (inherited by modules) -->
156   <dependencies>
157     <dependency>
158       <groupId>org.scala-lang</groupId>
159       <artifactId>scala-library</artifactId>
160       <version>${scala.version}</version>
161     </dependency>
162     <dependency>
163       <groupId>org.slf4j</groupId>
164       <artifactId>slf4j-api</artifactId>
165       <version>1.6.1</version>
166     </dependency>
167     <dependency>
168       <groupId>org.scala-lang</groupId>
169       <artifactId>scala-compiler</artifactId>
170       <version>${scala.version}</version>
171       <scope>test</scope>
172     </dependency>
173     <dependency>
174       <groupId>junit</groupId>
175       <artifactId>junit</artifactId>
176       <version>4.10</version>
177       <scope>test</scope>
178     </dependency>
179     <dependency>
180       <groupId>org.slf4j</groupId>
181       <artifactId>slf4j-log4j12</artifactId>
182       <version>1.6.3</version>
183     </dependency>
184     <dependency>
185       <groupId>net.liftweb</groupId>
186       <artifactId>lift-json_2.9.1</artifactId>
187       <version>2.4</version>
188     </dependency>
189
190     <dependency>
191       <groupId>net.liftweb</groupId>
192       <artifactId>lift-json-ext_2.9.1</artifactId>
193       <version>2.4</version>
194       <exclusions>
195         <exclusion>
196           <artifactId>joda-time</artifactId>
197           <groupId>joda-time</groupId>
198         </exclusion>
199       </exclusions>
200     </dependency>
201
202     <dependency>
203       <groupId>org.yaml</groupId>
204       <artifactId>snakeyaml</artifactId>
205       <version>1.9</version>
206     </dependency>
207
208     <dependency>
209       <groupId>com.kenai.crontab-parser</groupId>
210       <artifactId>crontab-parser</artifactId>
211       <version>1.0.1</version>
212     </dependency>
213
214     <dependency>
215       <groupId>com.rabbitmq</groupId>
216       <artifactId>amqp-client</artifactId>
217       <version>2.5.0</version>
218     </dependency>
219
220     <dependency>
221       <groupId>com.ckkloverdos</groupId>
222       <artifactId>streamresource_2.9.1</artifactId>
223       <version>0.2.0</version>
224     </dependency>
225
226     <dependency>
227       <groupId>com.ckkloverdos</groupId>
228       <artifactId>maybe_2.9.1</artifactId>
229       <version>0.3.0</version>
230     </dependency>
231
232     <dependency>
233       <groupId>com.ckkloverdos</groupId>
234       <artifactId>converter_2.9.1</artifactId>
235       <version>0.3.0</version>
236     </dependency>
237
238     <dependency>
239       <groupId>com.ckkloverdos</groupId>
240       <artifactId>sysprop_2.9.1</artifactId>
241       <version>0.1.0</version>
242     </dependency>
243
244     <dependency>
245       <groupId>com.thoughtworks.xstream</groupId>
246       <artifactId>xstream</artifactId>
247       <version>1.4.1</version>
248     </dependency>
249
250     <dependency>
251       <groupId>org.mongodb</groupId>
252       <artifactId>mongo-java-driver</artifactId>
253       <version>2.7.2</version>
254     </dependency>
255
256     <dependency>
257       <groupId>se.scalablesolutions.akka</groupId>
258       <artifactId>akka-actor</artifactId>
259       <version>1.3</version>
260     </dependency>
261
262     <dependency>
263       <groupId>se.scalablesolutions.akka</groupId>
264       <artifactId>akka-remote</artifactId>
265       <version>1.3</version>
266       <exclusions>
267         <exclusion>
268           <artifactId>sjson_2.9.0</artifactId>
269           <groupId>net.debasishg</groupId>
270         </exclusion>
271         <exclusion>
272           <artifactId>akka-stm</artifactId>
273           <groupId>se.scalablesolutions.akka</groupId>
274         </exclusion>
275       </exclusions>
276     </dependency>
277
278     <dependency>
279       <groupId>se.scalablesolutions.akka</groupId>
280       <artifactId>akka-amqp</artifactId>
281       <version>1.3</version>
282     </dependency>
283
284     <dependency>
285       <groupId>se.scalablesolutions.akka</groupId>
286       <artifactId>akka-slf4j</artifactId>
287       <version>1.3</version>
288     </dependency>
289 <!--
290     <dependency>
291       <groupId>se.scalablesolutions.akka</groupId>
292       <artifactId>akka-testkit</artifactId>
293       <version>1.3</version>
294       <scope>test</scope>
295     </dependency>-->
296
297     <!--<dependency>-->
298       <!--<groupId>javax.ws.rs</groupId>-->
299       <!--<artifactId>jsr311-api</artifactId>-->
300       <!--<version>1.1.1</version>-->
301     <!--</dependency>-->
302
303     <dependency>
304       <groupId>gr.grnet.spray</groupId>
305       <artifactId>spray-can</artifactId>
306       <version>0.9.2</version>
307     </dependency>
308
309     <!--    <dependency>
310       <groupId>com.yammer.metrics</groupId>
311       <artifactId>metrics-core</artifactId>
312       <version>2.0.0-BETA18-SNAPSHOT</version>
313     </dependency>-->
314 <!--
315     <dependency>
316       <groupId>org.apache.lucene</groupId>
317       <artifactId>lucene-core</artifactId>
318       <version>3.5.0</version>
319     </dependency>-->
320
321     <dependency>
322       <groupId>org.apache.solr</groupId>
323       <artifactId>solr-core</artifactId>
324       <version>3.5.0</version>
325       <exclusions>
326
327         <exclusion>
328           <groupId>org.apache.lucene</groupId>
329           <artifactId>lucene-analyzers</artifactId>
330         </exclusion>
331
332         <exclusion>
333           <groupId>org.apache.lucene</groupId>
334           <artifactId>lucene-highlighter</artifactId>
335         </exclusion>
336
337         <exclusion>
338           <groupId>org.apache.lucene</groupId>
339           <artifactId>lucene-memory</artifactId>
340         </exclusion>
341
342         <exclusion>
343           <groupId>org.apache.lucene</groupId>
344           <artifactId>lucene-misc</artifactId>
345         </exclusion>
346
347         <exclusion>
348           <groupId>org.apache.lucene</groupId>
349           <artifactId>lucene-queries</artifactId>
350         </exclusion>
351
352         <exclusion>
353           <groupId>org.apache.lucene</groupId>
354           <artifactId>lucene-spatial</artifactId>
355         </exclusion>
356
357         <exclusion>
358           <groupId>org.apache.lucene</groupId>
359           <artifactId>lucene-spellchecker</artifactId>
360         </exclusion>
361
362         <exclusion>
363           <groupId>org.apache.lucene</groupId>
364           <artifactId>lucene-grouping</artifactId>
365         </exclusion>
366
367         <exclusion>
368           <groupId>org.apache.solr</groupId>
369           <artifactId>solr-commons-csv</artifactId>
370         </exclusion>
371
372         <exclusion>
373           <groupId>org.apache.solr</groupId>
374           <artifactId>solr-noggit</artifactId>
375         </exclusion>
376
377         <exclusion>
378           <groupId>org.apache.solr</groupId>
379           <artifactId>solr-solrj</artifactId>
380         </exclusion>
381
382         <exclusion>
383           <groupId>commons-fileupload</groupId>
384           <artifactId>commons-fileupload</artifactId>
385         </exclusion>
386
387         <exclusion>
388           <groupId>commons-httpclient</groupId>
389           <artifactId>commons-httpclient</artifactId>
390         </exclusion>
391
392         <exclusion>
393           <groupId>org.slf4j</groupId>
394           <artifactId>jcl-over-slf4j</artifactId>
395         </exclusion>
396
397         <exclusion>
398           <groupId>javax.servlet</groupId>
399           <artifactId>servlet-api</artifactId>
400         </exclusion>
401       </exclusions>
402     </dependency>
403
404     <dependency>
405       <groupId>com.github.scopt</groupId>
406       <artifactId>scopt_${scala.version}</artifactId>
407       <version>1.1.2</version>
408     </dependency>
409
410     <dependency>
411       <groupId>joda-time</groupId>
412       <artifactId>joda-time</artifactId>
413       <version>2.0</version>
414     </dependency>
415
416     <dependency>
417       <groupId>org.joda</groupId>
418       <artifactId>joda-convert</artifactId>
419       <version>1.1</version>
420     </dependency>
421   </dependencies>
422
423   <!--Build configuration-->
424   <build>
425     <sourceDirectory>src/main/scala</sourceDirectory>
426     <testSourceDirectory>src/test/scala</testSourceDirectory>
427     <resources>
428       <resource>
429         <directory>${basedir}/src/main/resources</directory>
430       </resource>
431       <resource>
432         <directory>${project.build.directory}/generated-resources</directory>
433         <filtering>true</filtering>
434       </resource>
435     </resources>
436     <testResources>
437       <testResource>
438         <directory>${basedir}/src/test/resources</directory>
439       </testResource>
440       <testResource>
441         <directory>${project.build.directory}/generated-resources</directory>
442         <filtering>true</filtering>
443       </testResource>
444     </testResources>
445     <plugins>
446       <plugin>
447         <groupId>org.scala-tools</groupId>
448         <artifactId>maven-scala-plugin</artifactId>
449         <version>2.15.2</version>
450         <configuration>
451           <charset>${project.build.sourceEncoding}</charset>
452           <jvmArgs>
453             <jvmArg>-Xmx1024m</jvmArg>
454             <jvmArg>
455               -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties
456             </jvmArg>
457           </jvmArgs>
458           <args>
459             <arg>-deprecation</arg>
460           </args>
461         </configuration>
462         <executions>
463           <execution>
464             <goals>
465               <goal>compile</goal>
466               <goal>testCompile</goal>
467             </goals>
468           </execution>
469         </executions>
470       </plugin>
471       <!-- Redmine maven plugin -->
472       <plugin>
473         <groupId>org.nuiton.jredmine</groupId>
474         <artifactId>maven-jredmine-plugin</artifactId>
475         <version>1.2.2</version>
476       </plugin>
477       <!-- Produces configuration files for Intellij Idea -->
478       <plugin>
479         <groupId>org.apache.maven.plugins</groupId>
480         <artifactId>maven-idea-plugin</artifactId>
481         <version>2.2</version>
482         <configuration>
483           <downloadSources>true</downloadSources>
484           <downloadJavadocs>true</downloadJavadocs>
485         </configuration>
486       </plugin>
487       <!-- Make sure tests display failures at the console-->
488       <plugin>
489         <groupId>org.apache.maven.plugins</groupId>
490         <artifactId>maven-surefire-plugin</artifactId>
491         <version>2.9</version>
492         <configuration>
493           <useFile>false</useFile>
494           <reportFormat>plain</reportFormat>
495         </configuration>
496       </plugin>
497       <!-- Bundle up source code on release/snapshot -->
498       <plugin>
499         <groupId>org.apache.maven.plugins</groupId>
500         <artifactId>maven-source-plugin</artifactId>
501         <version>2.1.2</version>
502         <executions>
503           <execution>
504             <id>attach-sources</id>
505             <goals>
506               <goal>jar-no-fork</goal>
507             </goals>
508           </execution>
509         </executions>
510       </plugin>
511       <!-- Release plug-in configuration -->
512       <plugin>
513         <groupId>org.apache.maven.plugins</groupId>
514         <artifactId>maven-release-plugin</artifactId>
515         <version>2.2.1</version>
516         <configuration>
517           <preparationGoals>clean verify</preparationGoals>
518         </configuration>
519       </plugin>
520       <!--Build an executable jar with all dependencies-->
521       <plugin>
522         <artifactId>maven-assembly-plugin</artifactId>
523         <version>2.2.2</version>
524         <configuration>
525           <archive>
526             <manifest>
527               <mainClass>gr.grnet.aquarium.Main</mainClass>
528             </manifest>
529           </archive>
530           <descriptorRefs>
531             <descriptorRef>jar-with-dependencies</descriptorRef>
532           </descriptorRefs>
533         </configuration>
534         <executions>
535           <execution>
536             <id>make-assembly</id>
537             <phase>package</phase>
538             <goals>
539               <goal>single</goal>
540             </goals>
541           </execution>
542         </executions>
543       </plugin>
544
545     </plugins>
546   </build>
547 </project>