Remove code to be re-written
[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.0.2-SNAPSHOT</version>
44   <packaging>pom</packaging>
45
46   <!-- Project details-->
47   <name>Aquarium</name>
48   <description>
49     Account handling, sharing and charging services for the Okeanos cloud
50   </description>
51   <url>http://code.grnet.gr/projects/aquarium</url>
52   <inceptionYear>2011</inceptionYear>
53   <organization>
54     <name>GRNet</name>
55     <url>http://www.grnet.gr/</url>
56   </organization>
57
58   <developers>
59     <developer>
60       <id>gousiosg</id>
61       <name>Georgios Gousios</name>
62       <email>gousiosg@grnet.gr</email>
63     </developer>
64     <developer>
65       <id>loverdos</id>
66       <name>Christos KK Loverdos</name>
67       <email>loverdos@grnet.gr</email>
68     </developer>
69   </developers>
70
71   <scm>
72     <url>http://code.grnet.gr/projects/aquarium/repository</url>
73     <connection>scm:git:https://code.grnet.gr/git/aquarium</connection>
74     <developerConnection>scm:git:https://code.grnet.gr/git/aquarium</developerConnection>
75   </scm>
76
77   <issueManagement>
78     <system>redmine</system>
79     <url>http://code.grnet.gr/projects/aquarium/issues</url>
80   </issueManagement>
81
82   <distributionManagement>
83     <repository>
84       <id>aq-release</id>
85       <name>Aquarium releases repo</name>
86       <url>http://aquarium.dev.grnet.gr:8081/nexus/content/repositories/releases</url>
87     </repository>
88     <snapshotRepository>
89       <id>aq-snapshot</id>
90       <name>Aquarium snapshots repo</name>
91       <url>http://aquarium.dev.grnet.gr:8081/nexus/content/repositories/snapshots</url>
92     </snapshotRepository>
93   </distributionManagement>
94
95   <!--Common project settings-->
96   <properties>
97     <scala.version>2.9.1</scala.version>
98     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
99     <project.reporting.outputEncoding>${project.build.sourceEncoding}
100     </project.reporting.outputEncoding>
101   </properties>
102
103   <!-- Lib and plugin repositories -->
104   <repositories>
105     <repository>
106       <id>scala-tools.releases</id>
107       <name>Scala-Tools Dependencies Repository for Releases</name>
108       <url>http://scala-tools.org/repo-releases</url>
109     </repository>
110     <repository>
111       <id>java.net.maven2</id>
112       <name>java.net Maven2 Repository</name>
113       <url>http://download.java.net/maven/2/</url>
114     </repository>
115     <repository>
116       <id>EclipseLink Repo</id>
117       <url>http://www.eclipse.org/downloads/download.php?r=1&amp;nf=1&amp;file=/rt/eclipselink/maven.repo</url>
118     </repository>
119     <repository>
120       <name>JBoss</name>
121       <id>jboss</id>
122       <url>http://repository.jboss.org/nexus/content/groups/public/</url>
123     </repository>
124   </repositories>
125
126   <pluginRepositories>
127     <pluginRepository>
128       <id>scala-tools.releases</id>
129       <name>Scala-Tools Plugins Repository for Releases</name>
130       <url>http://scala-tools.org/repo-releases</url>
131     </pluginRepository>
132   </pluginRepositories>
133
134   <!-- Master properties (inherited by modules) -->
135   <dependencies>
136     <dependency>
137       <groupId>org.scala-lang</groupId>
138       <artifactId>scala-library</artifactId>
139       <version>${scala.version}</version>
140     </dependency>
141     <dependency>
142       <groupId>org.slf4j</groupId>
143       <artifactId>slf4j-api</artifactId>
144       <version>1.6.1</version>
145     </dependency>
146     <dependency>
147       <groupId>org.scala-lang</groupId>
148       <artifactId>scala-compiler</artifactId>
149       <version>${scala.version}</version>
150       <scope>test</scope>
151     </dependency>
152     <dependency>
153       <groupId>junit</groupId>
154       <artifactId>junit</artifactId>
155       <version>4.10</version>
156       <scope>test</scope>
157     </dependency>
158     <dependency>
159       <groupId>com.h2database</groupId>
160       <artifactId>h2</artifactId>
161       <version>1.3.160</version>
162     </dependency>
163     <dependency>
164       <groupId>mysql</groupId>
165       <artifactId>mysql-connector-java</artifactId>
166       <version>5.1.17</version>
167     </dependency>
168     <dependency>
169       <groupId>org.scala-libs</groupId>
170       <artifactId>scalajpa_2.9.1</artifactId>
171       <version>1.4</version>
172     </dependency>
173     <dependency>
174       <groupId>org.eclipse.persistence</groupId>
175       <artifactId>eclipselink</artifactId>
176       <version>2.2.0</version>
177     </dependency>
178     <!--<dependency>
179       <groupId>org.hibernate</groupId>
180       <artifactId>hibernate-entitymanager</artifactId>
181       <version>3.6.7.Final</version>
182     </dependency>-->
183     <!--<dependency>
184       <groupId>org.apache.openjpa</groupId>
185       <artifactId>openjpa-all</artifactId>
186       <version>2.1.1</version>
187     </dependency>-->
188     <dependency>
189       <groupId>org.slf4j</groupId>
190       <artifactId>slf4j-log4j12</artifactId>
191       <version>1.6.3</version>
192     </dependency>
193   </dependencies>
194
195   <!--Configuration shared with subprojects-->
196   <build>
197     <sourceDirectory>src/main/scala</sourceDirectory>
198     <testSourceDirectory>src/test/scala</testSourceDirectory>
199     <resources>
200       <resource>
201         <directory>${basedir}/src/main/resources</directory>
202       </resource>
203       <resource>
204         <directory>${project.build.directory}/generated-resources</directory>
205         <filtering>true</filtering>
206       </resource>
207     </resources>
208     <testResources>
209       <testResource>
210         <directory>${basedir}/src/test/resources</directory>
211       </testResource>
212       <testResource>
213         <directory>${project.build.directory}/generated-resources</directory>
214         <filtering>true</filtering>
215       </testResource>
216     </testResources>
217     <plugins>
218       <plugin>
219         <groupId>org.scala-tools</groupId>
220         <artifactId>maven-scala-plugin</artifactId>
221         <version>2.15.2</version>
222         <configuration>
223           <charset>${project.build.sourceEncoding}</charset>
224           <jvmArgs>
225             <jvmArg>-Xmx1024m</jvmArg>
226             <jvmArg>
227               -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties
228             </jvmArg>
229           </jvmArgs>
230           <args>
231             <arg>-deprecation</arg>
232           </args>
233         </configuration>
234         <executions>
235           <execution>
236             <goals>
237               <goal>compile</goal>
238               <goal>testCompile</goal>
239             </goals>
240           </execution>
241         </executions>
242       </plugin>
243       <plugin>
244         <groupId>org.apache.maven.plugins</groupId>
245         <artifactId>maven-resources-plugin</artifactId>
246         <version>2.5</version>
247         <executions>
248           <execution>
249             <id>default-copy-resources</id>
250             <phase>process-resources</phase>
251             <goals>
252               <goal>copy-resources</goal>
253             </goals>
254             <configuration>
255               <overwrite>true</overwrite>
256               <outputDirectory>${project.build.directory}</outputDirectory>
257               <resources>
258                 <resource>
259                   <directory>${project.basedir}/src</directory>
260                   <includes>
261                     <include>packageLinkDefs.properties</include>
262                   </includes>
263                   <filtering>true</filtering>
264                 </resource>
265               </resources>
266             </configuration>
267           </execution>
268         </executions>
269       </plugin>
270       <!-- Redmine maven plugin -->
271       <plugin>
272         <groupId>org.nuiton.jredmine</groupId>
273         <artifactId>maven-jredmine-plugin</artifactId>
274         <version>1.2.2</version>
275       </plugin>
276       <!-- Produces configuration files for Intellij Idea -->
277       <plugin>
278         <groupId>org.apache.maven.plugins</groupId>
279         <artifactId>maven-idea-plugin</artifactId>
280         <version>2.2</version>
281         <configuration>
282           <downloadSources>true</downloadSources>
283           <downloadJavadocs>true</downloadJavadocs>
284         </configuration>
285       </plugin>
286       <!-- Make sure tests display failures at the console-->
287       <plugin>
288         <groupId>org.apache.maven.plugins</groupId>
289         <artifactId>maven-surefire-plugin</artifactId>
290         <version>2.9</version>
291         <configuration>
292           <useFile>false</useFile>
293           <reportFormat>plain</reportFormat>
294         </configuration>
295       </plugin>
296       <!-- Shared resources -->
297       <plugin>
298         <groupId>org.apache.maven.plugins</groupId>
299         <artifactId>maven-dependency-plugin</artifactId>
300         <executions>
301           <execution>
302             <id>unpack-shared-resources</id>
303             <goals>
304               <goal>unpack-dependencies</goal>
305             </goals>
306             <phase>generate-resources</phase>
307             <configuration>
308               <outputDirectory>${project.build.directory}/generated-resources
309               </outputDirectory>
310               <includeArtifactIds>shared</includeArtifactIds>
311               <includeGroupIds>gr.grnet.aquarium</includeGroupIds>
312               <excludeTransitive>true</excludeTransitive>
313             </configuration>
314           </execution>
315         </executions>
316       </plugin>
317       <!-- Bundle up source code on release/snapshot -->
318       <plugin>
319         <groupId>org.apache.maven.plugins</groupId>
320         <artifactId>maven-source-plugin</artifactId>
321         <version>2.1.2</version>
322         <executions>
323           <execution>
324             <id>attach-sources</id>
325             <goals>
326               <goal>jar-no-fork</goal>
327             </goals>
328           </execution>
329         </executions>
330       </plugin>
331       <!-- Release plug-in configuration -->
332       <plugin>
333         <groupId>org.apache.maven.plugins</groupId>
334         <artifactId>maven-release-plugin</artifactId>
335         <version>2.2.1</version>
336         <configuration>
337           <preparationGoals>clean verify</preparationGoals>
338         </configuration>
339       </plugin>
340     </plugins>
341   </build>
342   <!--Sub projects-->
343   <modules>
344     <module>model</module>
345     <module>logic</module>
346     <module>shared</module>
347   </modules>
348 </project>