Log4j for logging and simple config file
[aquarium] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
6
7   <modelVersion>4.0.0</modelVersion>
8   <groupId>gr.grnet</groupId>
9   <artifactId>aquarium</artifactId>
10   <version>0.0.1-SNAPSHOT</version>
11   <packaging>pom</packaging>
12
13   <!-- Project details-->
14   <name>Aquarium</name>
15   <description>
16     Account handling, sharing and charging services for the Okeanos cloud
17   </description>
18   <url>http://code.grnet.gr/projects/aquarium</url>
19   <inceptionYear>2011</inceptionYear>
20   <organization>
21     <name>GRNet</name>
22     <url>http://www.grnet.gr/</url>
23   </organization>
24
25   <developers>
26     <developer>
27       <id>gousiosg</id>
28       <name>Georgios Gousios</name>
29       <email>gousiosg@grnet.gr</email>
30     </developer>
31   </developers>
32
33   <scm>
34     <url>http://code.grnet.gr/projects/aquarium/repository</url>
35     <connection>scm:git:https://code.grnet.gr/git/aquarium</connection>
36   </scm>
37
38   <issueManagement>
39     <system>redmine</system>
40     <url>http://code.grnet.gr/projects/aquarium/issuses</url>
41   </issueManagement>
42
43   <!--Common project settings-->
44   <properties>
45     <scala.version>2.9.1</scala.version>
46     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47     <project.reporting.outputEncoding>${project.build.sourceEncoding}
48     </project.reporting.outputEncoding>
49   </properties>
50
51   <!-- Lib and plugin repositories -->
52   <repositories>
53     <repository>
54       <id>scala-tools.releases</id>
55       <name>Scala-Tools Dependencies Repository for Releases</name>
56       <url>http://scala-tools.org/repo-releases</url>
57     </repository>
58     <repository>
59       <id>java.net.maven2</id>
60       <name>java.net Maven2 Repository</name>
61       <url>http://download.java.net/maven/2/</url>
62     </repository>
63     <repository>
64       <id>EclipseLink Repo</id>
65       <url>http://www.eclipse.org/downloads/download.php?r=1&amp;nf=1&amp;file=/rt/eclipselink/maven.repo</url>
66     </repository>
67     <repository>
68       <name>JBoss</name>
69       <id>jboss</id>
70       <url>http://repository.jboss.org/nexus/content/groups/public/</url>
71     </repository>
72   </repositories>
73
74   <pluginRepositories>
75     <pluginRepository>
76       <id>scala-tools.releases</id>
77       <name>Scala-Tools Plugins Repository for Releases</name>
78       <url>http://scala-tools.org/repo-releases</url>
79     </pluginRepository>
80   </pluginRepositories>
81
82   <!-- Master properties (inherited by modules) -->
83   <dependencies>
84     <dependency>
85       <groupId>org.scala-lang</groupId>
86       <artifactId>scala-library</artifactId>
87       <version>${scala.version}</version>
88     </dependency>
89     <dependency>
90       <groupId>org.slf4j</groupId>
91       <artifactId>slf4j-api</artifactId>
92       <version>1.6.1</version>
93     </dependency>
94     <dependency>
95       <groupId>org.scala-lang</groupId>
96       <artifactId>scala-compiler</artifactId>
97       <version>${scala.version}</version>
98       <scope>test</scope>
99     </dependency>
100     <dependency>
101       <groupId>junit</groupId>
102       <artifactId>junit</artifactId>
103       <version>4.7</version>
104       <scope>test</scope>
105     </dependency>
106     <dependency>
107       <groupId>com.h2database</groupId>
108       <artifactId>h2</artifactId>
109       <version>1.3.160</version>
110     </dependency>
111     <dependency>
112       <groupId>mysql</groupId>
113       <artifactId>mysql-connector-java</artifactId>
114       <version>5.1.17</version>
115     </dependency>
116     <dependency>
117       <groupId>org.scala-libs</groupId>
118       <artifactId>scalajpa_2.9.1</artifactId>
119       <version>1.4</version>
120     </dependency>
121     <dependency>
122       <groupId>org.eclipse.persistence</groupId>
123       <artifactId>eclipselink</artifactId>
124       <version>2.2.0</version>
125     </dependency>
126     <!--<dependency>
127       <groupId>org.hibernate</groupId>
128       <artifactId>hibernate-entitymanager</artifactId>
129       <version>3.6.7.Final</version>
130     </dependency>-->
131     <!--<dependency>
132       <groupId>org.apache.openjpa</groupId>
133       <artifactId>openjpa-all</artifactId>
134       <version>2.1.1</version>
135     </dependency>-->
136     <dependency>
137       <groupId>org.slf4j</groupId>
138       <artifactId>slf4j-log4j12</artifactId>
139       <version>1.6.3</version>
140     </dependency>
141   </dependencies>
142
143   <!--Configuration shared with subprojects-->
144   <build>
145     <sourceDirectory>src/main/scala</sourceDirectory>
146     <testSourceDirectory>src/test/scala</testSourceDirectory>
147     <resources>
148       <resource>
149         <directory>${basedir}/src/main/resources</directory>
150       </resource>
151       <resource>
152         <directory>${project.build.directory}/generated-resources</directory>
153         <filtering>true</filtering>
154       </resource>
155     </resources>
156     <testResources>
157       <testResource>
158         <directory>${basedir}/src/test/resources</directory>
159       </testResource>
160       <testResource>
161         <directory>${project.build.directory}/generated-resources</directory>
162         <filtering>true</filtering>
163       </testResource>
164     </testResources>
165     <plugins>
166       <plugin>
167         <groupId>org.scala-tools</groupId>
168         <artifactId>maven-scala-plugin</artifactId>
169         <version>2.15.2</version>
170         <configuration>
171           <charset>${project.build.sourceEncoding}</charset>
172           <jvmArgs>
173             <jvmArg>-Xmx1024m</jvmArg>
174             <jvmArg>
175               -DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties
176             </jvmArg>
177           </jvmArgs>
178           <args>
179             <arg>-deprecation</arg>
180           </args>
181         </configuration>
182         <executions>
183           <execution>
184             <goals>
185               <goal>compile</goal>
186               <goal>testCompile</goal>
187             </goals>
188           </execution>
189         </executions>
190       </plugin>
191       <plugin>
192         <groupId>org.apache.maven.plugins</groupId>
193         <artifactId>maven-resources-plugin</artifactId>
194         <version>2.5</version>
195         <executions>
196           <execution>
197             <id>default-copy-resources</id>
198             <phase>process-resources</phase>
199             <goals>
200               <goal>copy-resources</goal>
201             </goals>
202             <configuration>
203               <overwrite>true</overwrite>
204               <outputDirectory>${project.build.directory}</outputDirectory>
205               <resources>
206                 <resource>
207                   <directory>${project.basedir}/src</directory>
208                   <includes>
209                     <include>packageLinkDefs.properties</include>
210                   </includes>
211                   <filtering>true</filtering>
212                 </resource>
213               </resources>
214             </configuration>
215           </execution>
216         </executions>
217       </plugin>
218       <plugin>
219         <groupId>org.apache.maven.plugins</groupId>
220         <artifactId>maven-release-plugin</artifactId>
221         <version>2.2.1</version>
222         <configuration>
223           <scmCommentPrefix/>
224         </configuration>
225       </plugin>
226       <!-- Redmine maven plugin -->
227       <plugin>
228         <groupId>org.nuiton.jredmine</groupId>
229         <artifactId>maven-jredmine-plugin</artifactId>
230         <version>1.2.2</version>
231       </plugin>
232       <!-- Produces configuration files for Intellij Idea -->
233       <plugin>
234         <groupId>org.apache.maven.plugins</groupId>
235         <artifactId>maven-idea-plugin</artifactId>
236         <version>2.2</version>
237         <configuration>
238           <downloadSources>true</downloadSources>
239           <downloadJavadocs>true</downloadJavadocs>
240         </configuration>
241       </plugin>
242       <!-- Make sure tests display failures at the console-->
243       <plugin>
244         <groupId>org.apache.maven.plugins</groupId>
245         <artifactId>maven-surefire-plugin</artifactId>
246         <version>2.9</version>
247         <configuration>
248           <useFile>false</useFile>
249           <reportFormat>plain</reportFormat>
250         </configuration>
251       </plugin>
252       <!-- Shared resources -->
253       <plugin>
254         <groupId>org.apache.maven.plugins</groupId>
255         <artifactId>maven-dependency-plugin</artifactId>
256         <executions>
257           <execution>
258             <id>unpack-shared-resources</id>
259             <goals>
260               <goal>unpack-dependencies</goal>
261             </goals>
262             <phase>generate-resources</phase>
263             <configuration>
264               <outputDirectory>${project.build.directory}/generated-resources
265               </outputDirectory>
266               <includeArtifactIds>shared</includeArtifactIds>
267               <includeGroupIds>gr.grnet.aquarium</includeGroupIds>
268               <excludeTransitive>true</excludeTransitive>
269             </configuration>
270           </execution>
271         </executions>
272       </plugin>
273     </plugins>
274   </build>
275   <!--Sub projects-->
276   <modules>
277     <module>model</module>
278     <module>logic</module>
279     <module>shared</module>
280   </modules>
281 </project>