correct version number for debian package
[cdmlib.git] / cdmlib-remote / pom.xml
index c0df3bdea81148567f96153e2651412c6d7007ab..f0cd711112a18185b3aba6686d1bca305b775f16 100644 (file)
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project xmlns="http://maven.apache.org/POM/4.0.0" 
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+<?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">
   <!-- 
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
-   -->\r
-  <parent>\r
-    <artifactId>cdmParent</artifactId>\r
-    <groupId>eu.etaxonomy</groupId>\r
-    <version>0.4</version>\r
-    <relativePath>../cdmParent/pom.xml</relativePath>\r
-  </parent>\r
-  <modelVersion>4.0.0</modelVersion>\r
-  <artifactId>cdmLibrary</artifactId>\r
+               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+               http://maven.apache.org/maven-v4_0_0.xsd"
+   -->
+       <parent>
+               <groupId>eu.etaxonomy</groupId>
+               <artifactId>cdmlib-parent</artifactId>
+               <version>2.3</version>
+       </parent>
+       
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>cdmlib-remote</artifactId>
   <packaging>war</packaging>
-  <name>EDIT CDM Community Server</name>\r
-  <version>0.1.0</version>\r
-  <description>The EDIT CDM Community Server allows remote access to the common data model via webservices in the wider sense</description>\r
-  <scm>\r
-    <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/</connection>\r
-       <developerConnection>scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/</developerConnection>\r
-       <url>http://dev.e-taxonomy.eu/trac/browser/trunk/cdmlib/cdmlib-remote/</url>\r
+  <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>
   </scm>
-       
-       \r
-       <repositories>
-               <repository>
-                       <id>apache.incubating.releases</id>
-                       <name>
-                               Apache Incubating Release Distribution Repository
-                       </name>
-                       <url>
-                               http://people.apache.org/repo/m2-incubating-repository
-                       </url>
-               </repository>
-       </repositories>
-       <pluginRepositories>
-               <pluginRepository>
-                       <id>apache-incubating</id>
-                       <name>Apache Incubating Repository</name>
-                       <url>
-                               http://people.apache.org/repo/m2-incubating-repository/
-                       </url>
-               </pluginRepository>
-       </pluginRepositories>
-       
-       <properties>
-               <spring.version>2.5</spring.version>
-               <cxf.version>2.0.2-incubator</cxf.version>
-       </properties>
+
        <dependencies>
-               <!-- 
-                       Spring is directly included to override the version 2.0.4 cxf 
-                       brings in its own dependencies.  This is not strictly necessary but
-                       just being shown to let you know how this is done.
-               -->
                <dependency>
-                       <groupId>org.springframework</groupId>
-                       <artifactId>spring-core</artifactId>
-                       <version>${spring.version}</version>
+                       <groupId>eu.etaxonomy</groupId>
+                       <artifactId>cdmlib-ext</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.springframework</groupId>
-                       <artifactId>spring-test</artifactId>
-                       <version>${spring.version}</version>
+                       <groupId>eu.etaxonomy</groupId>
+                       <artifactId>cdmlib-persistence</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.springframework</groupId>
-                       <artifactId>spring-beans</artifactId>
-                       <version>${spring.version}</version>
+                       <groupId>eu.etaxonomy</groupId>
+                       <artifactId>cdmlib-model</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.springframework</groupId>
-                       <artifactId>spring-context</artifactId>
-                       <version>${spring.version}</version>
+                       <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>
+                       <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
-                       <artifactId>spring-web</artifactId>
-                       <version>${spring.version}</version>
+                       <artifactId>org.springframework.web</artifactId>
                </dependency>
                <dependency>
-                       <groupId>log4j</groupId>
-                       <artifactId>log4j</artifactId>
-                       <version>1.2.14</version>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>org.springframework.web.servlet</artifactId>
                </dependency>
-               
-               <!-- Depending on your requirements you may need more or less modules from cxf -->
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-core</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>com.ibm.lsid</groupId>
+                       <artifactId>lsid-server</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-frontend-simple</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>com.ibm.lsid</groupId>
+                       <artifactId>lsid-client</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-frontend-jaxws</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>org.easymock</groupId>
+                       <artifactId>easymock</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-databinding-aegis</artifactId>
-                       <version>${cxf.version}</version>
-               </dependency>
+      <groupId>xmlunit</groupId>
+      <artifactId>xmlunit</artifactId>
+      </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-transports-local</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>org.springframework.test</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-transports-http</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>net.sf.dozer</groupId>
+                       <artifactId>dozer</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-transports-http-jetty</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>joda-time</groupId>
+                       <artifactId>joda-time</artifactId>    
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-transports-jms</artifactId>
-                       <version>${cxf.version}</version>
-               </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>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-management</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>com.thoughtworks.xstream</groupId>
+                       <artifactId>xstream</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-common-utilities</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>xpp3</groupId>
+                       <artifactId>xpp3</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.mortbay.jetty</groupId>
-                       <artifactId>jetty</artifactId>
-                       <version>6.1.5</version>
+                 <groupId>stax</groupId>
+                 <artifactId>stax</artifactId>
                </dependency>
-<!-- comes from CXF
-                       <dependency>
-                       <groupId>junit</groupId>
-                       <artifactId>junit</artifactId>
-                       <version>3.8.2</version>
-                       <scope>test</scope>
+
+               <!-- JSP TAG LIBS -->
+               <dependency>
+                       <groupId>taglibs</groupId>
+                       <artifactId>standard</artifactId>
+                       <version>1.1.2</version>
                </dependency>
--->
                <dependency>
-                       <groupId>eu.etaxonomy</groupId>
-                       <artifactId>cdmlib-model</artifactId>
-                       <version>0.4.5</version>
+                       <groupId>taglibs</groupId>
+                       <artifactId>x</artifactId>
+                       <version>1.1.2</version>
+                       <type>tld</type>
+               </dependency>
+
+               <!--  SQL Profiling  -->\r
+               <dependency>\r
+                   <groupId>p6spy</groupId>\r
+                   <artifactId>p6spy</artifactId>\r
+                   <version>1.3</version>\r
                </dependency>
-               
        </dependencies>
 
-       
        <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-compiler-plugin</artifactId>
-                               <configuration>
-                                       <source>1.5</source>
-                                       <target>1.5</target>
-                               </configuration>
+                           <groupId>net.sf.alchim</groupId>
+                           <artifactId>winstone-maven-plugin</artifactId>
+                           <executions>
+                               <execution>
+                                   <goals>
+                                       <goal>embed</goal>
+                                   </goals>
+                                   <phase>package</phase>
+                               </execution>
+                           </executions>
                        </plugin>
                        <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>
+                                       <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>
+                                       <archive>
+                                               <manifest>
+                                                       <addClasspath>true</addClasspath>
+                                                       <mainClass>eu.etaxonomy.cdm.server.CdmServer
+                                                       </mainClass>
+                                               </manifest>
+                                       </archive>
+                               </configuration>
                                <executions>
                                        <execution>
-                                               <id>generate-wsdl</id>
-                                               <phase>process-classes</phase>
+                                               <id>move-main-class</id>
+                                               <phase>compile</phase>
                                                <configuration>
-                                                       <className>
-                                                               eu.etaxonomy.cdm.remote.service.HelloWorld
-                                               </className>
+                                                       <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>java2wsdl</goal>
+                                                       <goal>war</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
-               \r
-      <plugin>\r
-        <artifactId>maven-surefire-plugin</artifactId>\r
-        <configuration>\r
-          <includes>\r
-            <include>**/*Test.java</include>\r
-          </includes>\r
-               <systemProperties>
-                       <property>
-                               <name>hibernate.connection.driver_class</name>
-                               <value>${hibernate.connection.driver_class}</value>
-                       </property>
-                       <property>
-                               <name>hibernate.connection.url</name>
-                               <value>${hibernate.connection.url}</value>
-                       </property>
-                       <property>
-                               <name>hibernate.connection.username</name>
-                               <value>${hibernate.connection.username}</value>
-                       </property>
-                       <property>
-                               <name>hibernate.connection.password</name>
-                               <value>${hibernate.connection.password}</value>
-                       </property>
-               </systemProperties>
-        </configuration>\r
-      </plugin>\r
-    </plugins>\r
-  </build>
-\r
-       
-</project>\r
-\r
+                       <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>
+                                                                                 
+                               <!--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>
+                               <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>60000</maxIdleTime>
+                                               </connector>
+                                       </connectors>
+                                       <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>
+               </plugins>
+       </build>
+</project>
+