logging to file improved
[cdmlib.git] / cdm-server / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3
4 <!--
5 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
6 http://maven.apache.org/maven-v4_0_0.xsd"
7 -->
8 <parent>
9 <groupId>eu.etaxonomy</groupId>
10 <artifactId>cdmlib-parent</artifactId>
11 <version>2.4</version>
12 </parent>
13
14 <modelVersion>4.0.0</modelVersion>
15 <artifactId>cdm-server</artifactId>
16 <version>2.4</version>
17 <packaging>jar</packaging>
18 <name>CDM Community Standalone Server</name>
19
20 <properties>
21 <jetty-version>7.0.1.v20091125</jetty-version>
22 </properties>
23
24 <dependencies>
25 <dependency>
26 <groupId>eu.etaxonomy</groupId>
27 <artifactId>cdmlib-remote</artifactId>
28 <version>${project.version}</version>
29 <type>war</type>
30 </dependency>
31
32 <!-- JETTY 7 -->
33 <dependency>
34 <groupId>org.eclipse.jetty</groupId>
35 <artifactId>jetty-webapp</artifactId>
36 <version>${jetty-version}</version>
37 </dependency>
38 <dependency>
39 <groupId>org.eclipse.jetty</groupId>
40 <artifactId>jetty-plus</artifactId>
41 <version>${jetty-version}</version>
42 </dependency>
43 <dependency>
44 <groupId>org.eclipse.jetty</groupId>
45 <artifactId>jetty-webapp</artifactId>
46 <version>${jetty-version}</version>
47 </dependency>
48 <dependency>
49 <groupId>org.eclipse.jetty</groupId>
50 <artifactId>jetty-jmx</artifactId>
51 <version>${jetty-version}</version>
52 </dependency>
53 <dependency>
54 <groupId>org.mortbay.jetty</groupId>
55 <artifactId>jsp-2.1-glassfish</artifactId>
56 <version>9.1.1.B60.25.p2</version>
57 </dependency>
58 <dependency>
59 <groupId>javax.transaction</groupId>
60 <artifactId>jta</artifactId>
61 <version>1.1</version>
62 </dependency>
63
64 <!-- Logging -->
65 <dependency>
66 <groupId>org.slf4j</groupId>
67 <artifactId>slf4j-api</artifactId>
68 <version>1.6.1</version>
69 </dependency>
70 <dependency>
71 <groupId>org.slf4j</groupId>
72 <artifactId>slf4j-log4j12</artifactId>
73 <version>1.6.1</version>
74 </dependency>
75
76 <dependency>
77 <groupId>commons-cli</groupId>
78 <artifactId>commons-cli</artifactId>
79 <version>1.2</version>
80 </dependency>
81 <dependency>
82 <groupId>commons-io</groupId>
83 <artifactId>commons-io</artifactId>
84 </dependency>
85 <dependency>
86 <groupId>net.sf.jopt-simple</groupId>
87 <artifactId>jopt-simple</artifactId>
88 <version>3.2</version>
89 </dependency>
90 <dependency>
91 <groupId>c3p0</groupId>
92 <artifactId>c3p0</artifactId>
93 <version>0.9.1</version>
94 </dependency>
95 <!-- DATABASE DRIVER -->
96 <dependency>
97 <groupId>mysql</groupId>
98 <artifactId>mysql-connector-java</artifactId>
99 <version>5.0.5</version>
100 </dependency>
101 </dependencies>
102
103
104 <build>
105 <plugins>
106 <!-- INSTALL -->
107 <plugin>
108 <artifactId>maven-assembly-plugin</artifactId>
109 <configuration>
110 <appendAssemblyId>false</appendAssemblyId>
111 <descriptors>
112 <descriptor>src/main/assembly/assembly.xml</descriptor>
113 </descriptors>
114 <archive>
115 <manifest>
116 <mainClass>eu.etaxonomy.cdm.server.Bootloader</mainClass>
117 </manifest>
118 </archive>
119 </configuration>
120 <executions>
121 <execution>
122 <id>make-assembly</id>
123 <phase>install</phase>
124 <goals>
125 <goal>attached</goal>
126 </goals>
127 </execution>
128 </executions>
129 </plugin>
130 <!-- package the default webapp -->
131 <plugin>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-war-plugin</artifactId>
134 <version>2.1-beta-1</version>
135 <configuration>
136 <warName>default-webapp</warName>
137 <overlays>
138 <overlay>
139 <groupId>eu.etaxonomy</groupId>
140 <artifactId>cdmlib-remote</artifactId>
141 <skip>true</skip><!-- Do Not overlay -->
142 </overlay>
143 </overlays>
144 </configuration>
145 <executions>
146 <execution>
147 <phase>package</phase>
148 <goals>
149 <goal>war</goal>
150 </goals>
151 </execution>
152 </executions>
153 </plugin>
154 <!-- DEPLOY -->
155 <plugin>
156 <artifactId>maven-antrun-plugin</artifactId>
157 <version>1.3</version>
158 <executions>
159 <execution>
160 <phase>install</phase>
161 <!--
162 must run after winstone-maven-plugin
163 -->
164 <configuration>
165 <tasks>
166 <!--
167 ${project.patchversion} is explicitely set in this pom
168
169 ${buildNumber} is set by the buildnumber-maven-plugin
170 Cannot create the build number if you have local modifications,
171 to allow creating a buildnumber anyway you can ommit
172 -->
173 <!-- FIXME
174 <property name="project.fullversionstring" value="${project.version}.${project.patchversion}.r${buildNumber}"/>
175 <property name="project.fullversionstring" value="${project.version}.0.r0000"/>
176 -->
177 <property name="project.fullversionstring" value="${project.version}.0.${maven.build.timestamp}"/>
178 <ant antfile="${project.basedir}/src/main/installer/linux/build-deb.xml" dir="${project.basedir}" />
179
180
181 </tasks>
182 </configuration>
183 <goals>
184 <goal>run</goal>
185 </goals>
186 </execution>
187 </executions>
188 </plugin>
189
190 </plugins>
191 </build>
192 </project>