<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+<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/maven-v4_0_0.xsd"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/maven-v4_0_0.xsd"
-->
- <parent>
- <artifactId>cdmParent</artifactId>
- <groupId>eu.etaxonomy</groupId>
- <version>0.5.0</version>
- <relativePath>../cdmParent/pom.xml</relativePath>
- </parent>
+ <parent>
+ <groupId>eu.etaxonomy</groupId>
+ <artifactId>cdmlib-parent</artifactId>
+ <version>2.3</version>
+ </parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>eu.etaxonomy</groupId>
- <artifactId>cdmlib-remote</artifactId>
+ <artifactId>cdmlib-remote</artifactId>
<packaging>war</packaging>
- <version>0.1-SNAPSHOT</version>
- <name>EDIT CDM Community Server</name>
- <description>The EDIT CDM Community Server allows remote access to the common data model via webservices in the wider sense</description>
+ <name>CDM Community Server</name>
+ <description>The EDIT CDM Community Server allows remote access to
+ the common data model via webservices in the wider sense</description>
<scm>
- <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/</connection>
- <developerConnection>scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/</developerConnection>
- <url>http://dev.e-taxonomy.eu/trac/browser/trunk/cdmlib/cdmlib-remote/</url>
+ <connection>
+ scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
+ </connection>
+ <developerConnection>
+ scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
+ </developerConnection>
+ <url>
+ http://dev.e-taxonomy.eu/trac/browser/trunk/cdmlib/cdmlib-remote/
+ </url>
</scm>
-
- <properties>
- <cxf.version>2.0.4-incubator</cxf.version>
- <cdm.version>0.5.0-SNAPSHOT</cdm.version>
- </properties>
<dependencies>
<dependency>
<groupId>eu.etaxonomy</groupId>
- <artifactId>cdmlib-model</artifactId>
- <version>1.0-RC1</version>
+ <artifactId>cdmlib-ext</artifactId>
</dependency>
<dependency>
<groupId>eu.etaxonomy</groupId>
<artifactId>cdmlib-persistence</artifactId>
- <version>${cdm.version}</version>
</dependency>
<dependency>
+ <groupId>eu.etaxonomy</groupId>
+ <artifactId>cdmlib-model</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>eu.etaxonomy</groupId>
+ <artifactId>cdmlib-services</artifactId>
+ </dependency>
+ <!--<dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty</artifactId>
+ <version>6.1.16</version>
+ </dependency>
+ --><dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
- <version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
- <artifactId>spring-webmvc</artifactId>
- <version>${spring.version}</version>
+ <artifactId>org.springframework.web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
- <artifactId>spring-web</artifactId>
- <version>${spring.version}</version>
+ <artifactId>org.springframework.web.servlet</artifactId>
</dependency>
-
- <!-- JsonView -->
<dependency>
- <groupId>eu.etaxonomy</groupId>
- <artifactId>spring-json</artifactId>
- <version>0.1</version>
+ <groupId>com.ibm.lsid</groupId>
+ <artifactId>lsid-server</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.ibm.lsid</groupId>
+ <artifactId>lsid-client</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.easymock</groupId>
+ <artifactId>easymock</artifactId>
</dependency>
+ <dependency>
+ <groupId>xmlunit</groupId>
+ <artifactId>xmlunit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>org.springframework.test</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.dozer</groupId>
+ <artifactId>dozer</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>joda-time</groupId>
+ <artifactId>joda-time</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-cglib-repack</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-ehcache</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </dependency>
+ <!-- JsonView -->
+ <dependency>
+ <groupId>net.sf.json-lib</groupId>
+ <artifactId>json-lib</artifactId>
+ <version>2.2.3</version>
+ <classifier>jdk15</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>org.springframework.oxm</artifactId>
+ <version>3.0.0.RC1</version>
+ </dependency>
<!-- XmlView -->
<dependency>
- <groupId>xstream</groupId>
+ <groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
- <version>[1.1,)</version>
</dependency>
<dependency>
<groupId>xpp3</groupId>
<artifactId>xpp3</artifactId>
- <version>1.1.3.3</version>
</dependency>
-
- <!-- TAG libs -->
- <!--
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax</artifactId>
+ </dependency>
+
+ <!-- JSP TAG LIBS -->
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
<type>tld</type>
</dependency>
- -->
- <!--
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-bindings-http</artifactId>
- <version>${cxf.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-transports-http</artifactId>
- <version>${cxf.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <version>${cxf.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-transports-http-jetty</artifactId>
- <version>${cxf.version}</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.xfire</groupId>
- <artifactId>xfire-xmlbeans</artifactId>
- <version>1.2.3</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.xfire</groupId>
- <artifactId>xfire-spring</artifactId>
- <version>1.2.3</version>
- <exclusions>
- <exclusion>
- <groupId>org.springframework</groupId>
- <artifactId>spring</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.caucho</groupId>
- <artifactId>hessian</artifactId>
- <version>3.1.3</version>
+
+ <!-- SQL Profiling -->\r
+ <dependency>\r
+ <groupId>p6spy</groupId>\r
+ <artifactId>p6spy</artifactId>\r
+ <version>1.3</version>\r
</dependency>
- -->
</dependencies>
- <repositories>
- <!--
- <repository>
- <id>apache-snapshots</id>
- <name>Apache SNAPSHOT Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>apache-incubating</id>
- <name>Apache Incubating Repository</name>
- <url>http://people.apache.org/repo/m2-incubating-repository/</url>
- </repository>
- -->
- <!-- for jaxb-impl -->
- <repository>
- <id>java.net</id>
- <url>http://download.java.net/maven/1/</url>
- <layout>legacy</layout>
- </repository>
- </repositories>
-
- <pluginRepositories>
- <pluginRepository>
- <id>apache-plugin-snapshots</id>
- <name>Apache Maven Plugin Snapshots</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </pluginRepository>
- <pluginRepository>
- <id>apache-plugin-incubating</id>
- <name>Apache Plugin Incubating Repository</name>
- <url>http://people.apache.org/repo/m2-incubating-repository/</url>
- </pluginRepository>
- </pluginRepositories>
-
<build>
+ <!-- Configure the webapp -->\r
+ <finalName>cdmserver</finalName>
+ <!--
+ <finalName>cdmserver-cichorieae</finalName>
+ <finalName>cdmserver-palmae</finalName>
+ <finalName>cdmserver-diptera</finalName>
<finalName>cdmserver</finalName>
+ <finalName>cdmserver-elsalvador</finalName>
+ <finalName>cdmserver-erms</finalName>
+-->
<plugins>
<plugin>
- <artifactId>maven-surefire-plugin</artifactId>
+ <groupId>net.sf.alchim</groupId>
+ <artifactId>winstone-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>embed</goal>
+ </goals>
+ <phase>package</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <!--
+ must run after winstone-maven-plugin
+ -->
+ <configuration>
+ <tasks>
+ <property name="project.version" value="${project.version}"/>
+ <property name="project.buildnumber" value="${project.buildnumber}"/>
+ <ant antfile="${project.basedir}/src/main/installer/linux/build-deb.xml" dir="${project.basedir}" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal><!-- must run after winstone-maven-plugin -->
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!--<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.0</version>
<configuration>
- <includes>
- <include>**/*Test.java</include>
- </includes>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <mainClass>eu.etaxonomy.cdm.server.CdmServer
+ </mainClass>
+ </manifest>
+ </archive>
</configuration>
- </plugin>
- <plugin><!--use mvn tomcat:deploy -->
+ <executions>
+ <execution>
+ <id>move-main-class</id>
+ <phase>compile</phase>
+ <configuration>
+ <tasks>
+ Ant tasks
+ <echo>Moving CdmServer.class to ${project.build.directory}/${project.artifactId}</echo>
+ <move todir="${project.build.directory}/${project.artifactId}">
+ <fileset dir="${project.build.directory}/classes/">
+ <include name="**/CdmServer.class" />
+ </fileset>
+ </move>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>war</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack-dependencies</goal>
+ </goals>
+ <configuration>
+ <includeTypes>jar</includeTypes>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+
+ --><plugin><!--use mvn tomcat:deploy -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
- <server>tomcat-local</server>
- <!--
- <server>tomcat-edit</server>
- <url>http://search.biocase.org:8080/manager</url>
- -->
+
+ <!--Uncomment tomcat to deploy to-->
+ <!-- current production -->
+<!-- <update>true</update>-->
+<!-- <server>tomcat-edit</server>-->
+<!-- <url>http://search.biocase.org:8080/manager</url>-->
+
+ <!-- remote testing-->
+ <update>true</update>
+ <server>tomcat-cdm</server>
+ <url>http://160.45.63.201:8080/manager
+ </url>
+
+<!-- <server>tomcat-local</server>-->
</configuration>
</plugin>
+
<plugin>
+ <!--
+ to run use: mvn jetty:run for debugging: export MAVEN_OPTS="-Xdebug
+ -Xnoagent -Djava.compiler=NONE
+ -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n" mvn
+ jetty:run for faster startup offline mode & skip tests: mvn -o
+ -Dmaven.test.skip=true jetty:run-war an eclipse plugin to
+ start/restart/stop jetty6
+ http://dbpowder.sourceforge.net/etc/jettylauncher6/updates/ see
+ also:
+ http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse
+ http://mahertb.blogspot.com/2006/08/debugging-maven-web-application-with.html
+ -->
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
- <dependencies>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-j2ee_1.4_spec</artifactId>
- <version>1.1</version>
- </dependency>
- </dependencies>
<configuration>
+ <!-- Configure the webapp -->
+ <contextPath>/cdmserver-cichorieae/
+ </contextPath>\r
+ <!--\r
+ <contextPath>/cdmserver-palmae/</contextPath>\r
+ <contextPath>/cdmserver-diptera/</contextPath>\r
+ <contextPath>/cdmserver/</contextPath>\r
+ <contextPath>/cdmserver-elsalvador/</contextPath>\r
+ <contextPath>/cdmserver-erms/</contextPath>\r
+-->
+ <!-- configure the container -->
+ <scanIntervalSeconds>0</scanIntervalSeconds>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8080</port>
- <maxIdleTime>3600000</maxIdleTime>
+ <maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
- <scanIntervalSeconds>5</scanIntervalSeconds>
+ <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
+ <filename>target/request.log</filename>
+ <retainDays>30</retainDays>
+ <append>true</append>
+ <extended>false</extended>
+ <logTimeZone>GMT</logTimeZone>
+ </requestLog>
</configuration>
- </plugin>
-
- <!-- use mvn cxf-codegen:java2wsdl OR mvn process-classes -->
- <!--
-
- ONLY FOR SOAP !!!
-
- <plugin>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-codegen-plugin</artifactId>
- <version>${cxf.version}</version>
- <dependencies>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <version>${cxf.version}</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <id>generate-wsdl</id>
- <phase>process-classes</phase>
- <configuration>
- <className>
- eu.etaxonomy.cdm.remote.service.HelloWorld
- </className>
- </configuration>
- <goals>
- <goal>java2wsdl</goal>
- </goals>
- </execution>
- </executions>
</plugin>
- -->
</plugins>
</build>
-
</project>