Project

General

Profile

Download (9.86 KB) Statistics
| Branch: | Tag: | Revision:
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
		xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5
		http://maven.apache.org/maven-v4_0_0.xsd"
6
   -->
7
	<parent>
8
		<groupId>eu.etaxonomy</groupId>
9
		<artifactId>cdmlib-parent</artifactId>
10
		<version>2.3</version>
11
	</parent>
12
	
13
  <modelVersion>4.0.0</modelVersion>
14
  <artifactId>cdmlib-remote</artifactId>
15
  <properties>
16
    <!--  
17
      custom property to hold the patch version number     
18
      should'nt this be set in the parent pom? 
19
     -->
20
    <project.patchversion>0</project.patchversion>
21
  </properties> 
22
  <name>CDM Community Server</name>
23
	<description>The EDIT CDM Community Server allows remote access to
24
		the common data model via webservices in the wider sense</description>
25
  <packaging>war</packaging>
26
  <scm>
27
		<connection>
28
			scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
29
		</connection>
30
		<developerConnection>
31
			scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
32
		</developerConnection>
33
		<url>
34
			http://dev.e-taxonomy.eu/trac/browser/trunk/cdmlib/cdmlib-remote/
35
		</url>
36
  </scm>
37

    
38
	<dependencies>
39
		<dependency>
40
			<groupId>eu.etaxonomy</groupId>
41
			<artifactId>cdmlib-ext</artifactId>
42
		</dependency>
43
		<dependency>
44
			<groupId>eu.etaxonomy</groupId>
45
			<artifactId>cdmlib-persistence</artifactId>
46
		</dependency>
47
		<dependency>
48
			<groupId>eu.etaxonomy</groupId>
49
			<artifactId>cdmlib-model</artifactId>
50
		</dependency>
51
		<dependency>
52
			<groupId>eu.etaxonomy</groupId>
53
			<artifactId>cdmlib-services</artifactId>
54
		</dependency>
55
		<dependency>
56
			<groupId>eu.etaxonomy</groupId>
57
			<artifactId>cdmlib-io</artifactId>
58
		</dependency>
59
		<!--<dependency>
60
			<groupId>org.mortbay.jetty</groupId>
61
			<artifactId>jetty</artifactId>
62
			<version>6.1.16</version>
63
		</dependency>
64
		--><dependency>
65
			<groupId>javax.servlet</groupId>
66
			<artifactId>servlet-api</artifactId>
67
			<scope>provided</scope>
68
		</dependency>
69
		<dependency>
70
			<groupId>org.springframework</groupId>
71
			<artifactId>org.springframework.web</artifactId>
72
		</dependency>
73
		<dependency>
74
			<groupId>org.springframework</groupId>
75
			<artifactId>org.springframework.web.servlet</artifactId>
76
		</dependency>
77
		<dependency>
78
			<groupId>com.ibm.lsid</groupId>
79
			<artifactId>lsid-server</artifactId>
80
		</dependency>
81
		<dependency>
82
			<groupId>com.ibm.lsid</groupId>
83
			<artifactId>lsid-client</artifactId>
84
		</dependency>
85
		<dependency>
86
			<groupId>org.easymock</groupId>
87
			<artifactId>easymock</artifactId>
88
		</dependency>
89
		<dependency>
90
      <groupId>xmlunit</groupId>
91
      <artifactId>xmlunit</artifactId>
92
      </dependency>
93
		<dependency>
94
			<groupId>org.springframework</groupId>
95
			<artifactId>org.springframework.test</artifactId>
96
		</dependency>
97
		<dependency>
98
			<groupId>net.sf.dozer</groupId>
99
			<artifactId>dozer</artifactId>
100
		</dependency>
101
		<dependency>
102
			<groupId>joda-time</groupId>
103
			<artifactId>joda-time</artifactId>    
104
		</dependency>
105
		<dependency>
106
      <groupId>org.hibernate</groupId>
107
      <artifactId>hibernate-cglib-repack</artifactId>
108
    </dependency>
109
    <dependency>
110
	  <groupId>org.hibernate</groupId>
111
	  <artifactId>hibernate-core</artifactId>
112
	</dependency>
113
	<dependency>
114
  	  <groupId>org.hibernate</groupId>
115
  	  <artifactId>hibernate-ehcache</artifactId>
116
  	</dependency>
117
    <dependency>
118
      <groupId>commons-io</groupId>
119
      <artifactId>commons-io</artifactId>
120
    </dependency>
121
		<!-- JsonView -->
122
    <dependency>
123
      <groupId>net.sf.json-lib</groupId>
124
      <artifactId>json-lib</artifactId>
125
      <version>2.2.3</version>
126
      <classifier>jdk15</classifier>   
127
    </dependency>
128
	<dependency>
129
	  <groupId>org.springframework</groupId>
130
	  <artifactId>org.springframework.oxm</artifactId>
131
	  <version>3.0.0.RC1</version>
132
	</dependency>
133

    
134
		<!-- XmlView -->
135
		<dependency>
136
			<groupId>com.thoughtworks.xstream</groupId>
137
			<artifactId>xstream</artifactId>
138
		</dependency>
139
		<dependency>
140
			<groupId>xpp3</groupId>
141
			<artifactId>xpp3</artifactId>
142
		</dependency>
143
		<dependency>
144
		  <groupId>stax</groupId>
145
		  <artifactId>stax</artifactId>
146
		</dependency>
147

    
148
		<!-- JSP TAG LIBS -->
149
		<dependency>
150
			<groupId>taglibs</groupId>
151
			<artifactId>standard</artifactId>
152
			<version>1.1.2</version>
153
		</dependency>
154
		<dependency>
155
			<groupId>taglibs</groupId>
156
			<artifactId>x</artifactId>
157
			<version>1.1.2</version>
158
			<type>tld</type>
159
		</dependency>
160

    
161
		<!--  SQL Profiling  -->
162
		<dependency>
163
		    <groupId>p6spy</groupId>
164
		    <artifactId>p6spy</artifactId>
165
		    <version>1.3</version>
166
		</dependency>
167

    
168
	</dependencies>
169
	<build>
170
	<!-- Configure the webapp -->
171
 	<finalName>cdmserver</finalName> 
172
		<plugins>
173
			<plugin>
174
			    <groupId>net.sf.alchim</groupId>
175
			    <artifactId>winstone-maven-plugin</artifactId>
176
			    <executions>
177
			        <execution>
178
			            <goals>
179
			                <goal>embed</goal>
180
			            </goals>
181
			            <phase>deploy</phase>
182
			        </execution>
183
			    </executions>
184
			</plugin>
185
			<plugin>
186
					<artifactId>maven-antrun-plugin</artifactId>
187
					<version>1.3</version>
188
						<executions>
189
							<execution>
190
								<phase>deploy</phase>
191
								<!--
192
									must run after winstone-maven-plugin
193
								-->
194
								<configuration>
195
									<tasks>
196
									  <!--
197
									   ${project.patchversion} is explicitely set in this pom
198
									    
199
									   ${buildNumber} is set by the buildnumber-maven-plugin  
200
                     Cannot create the build number if you have local modifications, 
201
                     to allow creating a buildnumber anyway you can ommit 									  
202
									  -->
203
									  <property name="project.fullversionstring" value="${project.version}.${project.patchversion}.r${buildNumber}"/>
204
										<ant antfile="${project.basedir}/src/main/installer/linux/build-deb.xml" dir="${project.basedir}" />
205
									</tasks>
206
								</configuration>
207
								<goals>
208
									<goal>run</goal><!-- must run after winstone-maven-plugin -->
209
								</goals>
210
							</execution>
211
						</executions>
212
        </plugin>
213
				
214
			<!--<plugin>
215
				<groupId>org.apache.maven.plugins</groupId>
216
				<artifactId>maven-war-plugin</artifactId>
217
				<version>2.0</version>
218
				<configuration>
219
					<archive>
220
						<manifest>
221
							<addClasspath>true</addClasspath>
222
							<mainClass>eu.etaxonomy.cdm.server.CdmServer
223
							</mainClass>
224
						</manifest>
225
					</archive>
226
				</configuration>
227
				<executions>
228
					<execution>
229
						<id>move-main-class</id>
230
						<phase>compile</phase>
231
						<configuration>
232
							<tasks>
233
								  Ant tasks 
234
								<echo>Moving CdmServer.class to ${project.build.directory}/${project.artifactId}</echo>
235
								<move todir="${project.build.directory}/${project.artifactId}">
236
									<fileset dir="${project.build.directory}/classes/">
237
										<include name="**/CdmServer.class" />
238
									</fileset>
239
								</move>
240
							</tasks>
241
						</configuration>
242
						<goals>
243
							<goal>war</goal>
244
						</goals>
245
					</execution>
246
				</executions>
247
			</plugin>
248
			<plugin>
249
                <artifactId>maven-dependency-plugin</artifactId>
250
                <executions>
251
                    <execution>
252
                        <phase>generate-resources</phase>
253
                        <goals>
254
                            <goal>unpack-dependencies</goal>
255
                        </goals>
256
                        <configuration>
257
                            <includeTypes>jar</includeTypes>
258
							<outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
259
                        </configuration>
260
                    </execution>
261
                </executions>
262
            </plugin>
263
			
264

    
265
			--><plugin><!--use mvn tomcat:deploy -->
266
				<groupId>org.codehaus.mojo</groupId>
267
				<artifactId>tomcat-maven-plugin</artifactId>
268
				<configuration>
269
					 					  
270
				<!--Uncomment tomcat to deploy to-->
271
					<!-- current production -->
272
<!--					<update>true</update>-->
273
<!--					<server>tomcat-edit</server>-->
274
<!--					<url>http://search.biocase.org:8080/manager</url>-->
275
					
276
					<!-- remote testing-->
277
					<update>true</update>
278
					<server>tomcat-cdm</server>
279
					<url>http://160.45.63.201:8080/manager
280
					</url>
281
					
282
<!--				<server>tomcat-local</server>-->
283
				</configuration>
284
			</plugin>
285

    
286
			<plugin>
287
				<!--
288
					to run use: mvn jetty:run for debugging: export MAVEN_OPTS="-Xdebug
289
					-Xnoagent -Djava.compiler=NONE
290
					-Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n" mvn
291
					jetty:run for faster startup offline mode & skip tests: mvn -o
292
					-Dmaven.test.skip=true jetty:run-war an eclipse plugin to
293
					start/restart/stop jetty6
294
					http://dbpowder.sourceforge.net/etc/jettylauncher6/updates/ see
295
					also:
296
					http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse
297
					http://mahertb.blogspot.com/2006/08/debugging-maven-web-application-with.html
298
			  -->
299
				<groupId>org.mortbay.jetty</groupId>
300
				<artifactId>maven-jetty-plugin</artifactId>
301
				<configuration>
302
					<!-- Configure the webapp -->
303
					<contextPath>/cdmserver-cichorieae/
304
					</contextPath>
305
					<!--
306
						<contextPath>/cdmserver-palmae/</contextPath>
307
						<contextPath>/cdmserver-diptera/</contextPath>
308
						<contextPath>/cdmserver/</contextPath>
309
						<contextPath>/cdmserver-elsalvador/</contextPath>
310
					<contextPath>/cdmserver-erms/</contextPath>
311
-->
312
					<!-- configure the container -->
313
					<scanIntervalSeconds>0</scanIntervalSeconds>
314
					<connectors>
315
						<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
316
							<port>8080</port>
317
							<maxIdleTime>60000</maxIdleTime>
318
						</connector>
319
					</connectors>
320
					<requestLog implementation="org.mortbay.jetty.NCSARequestLog">
321
						<filename>target/request.log</filename>
322
						<retainDays>30</retainDays>
323
						<append>true</append>
324
						<extended>false</extended>
325
						<logTimeZone>GMT</logTimeZone>
326
					</requestLog>
327
				</configuration>
328
			</plugin>
329
		</plugins>
330
	</build>
331
</project>
332

    
(3-3/3)