bumping eu.etaxonomy.taxeditor.test to version 4.0.0-SNAPSHOT
[taxeditor.git] / eu.etaxonomy.taxeditor.test / pom.xml
index 2fdee3be14e73bed09e76914a8c237047b16dcce..3f54ecaed432546c3a718a0cae192e8e23c680c1 100644 (file)
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project>\r
-\r
-       <parent>\r
-               <groupId>eu.etaxonomy</groupId>\r
-               <artifactId>taxeditor-parent</artifactId>\r
-               <version>3.4.0-SNAPSHOT</version>\r
-       </parent>\r
-       <modelVersion>4.0.0</modelVersion>\r
-       <artifactId>eu.etaxonomy.taxeditor.test</artifactId>\r
-       <packaging>eclipse-test-plugin</packaging>\r
-       <name>UI Test Bundle</name>\r
-       <description>Holds all UI tests for the Taxonomic Editor</description>\r
-       <!-- <repositories> -->\r
-       <!-- <repository> -->\r
-       <!-- <id>ganymede</id> -->\r
-       <!-- <layout>p2</layout> -->\r
-       <!-- <url>http://download.eclipse.org/releases/galileo</url> -->\r
-       <!-- </repository> -->\r
-       <!-- <repository> -->\r
-       <!-- <id>swtbot</id> -->\r
-       <!-- <layout>p2</layout> -->\r
-       <!-- <url>http://download.eclipse.org/technology/swtbot/galileo/dev-build/update-site</url> -->\r
-       <!-- </repository> -->\r
-       <!-- </repositories> -->\r
-\r
-       <build>\r
-               <plugins>\r
-                       <plugin>\r
-                               <groupId>org.eclipse.tycho</groupId>\r
-                               <artifactId>tycho-maven-plugin</artifactId>\r
-                               <version>${tycho.version}</version>\r
-                               <extensions>true</extensions>\r
-                       </plugin>\r
-                       <plugin>\r
-                               <groupId>org.eclipse.tycho</groupId>\r
-                               <artifactId>target-platform-configuration</artifactId>\r
-                               <version>${tycho.version}</version>\r
-                               <configuration>\r
-                                       <resolver>p2</resolver>\r
-                               </configuration>\r
-                       </plugin>\r
-                       <plugin>\r
-                               <groupId>org.eclipse.tycho</groupId>\r
-                               <artifactId>tycho-surefire-plugin</artifactId>\r
-                               <version>${tycho.version}</version>\r
-                               <configuration>\r
-                                       <useUIHarness>true</useUIHarness>\r
-                                       <useUIThread>false</useUIThread>\r
-                                       <includes>\r
-                                               <include>**/*Test.java</include>\r
-                                       </includes>\r
-                                       <product>eu.etaxonomy.taxeditor.application.eu_etaxonomy_taxeditor_product</product>\r
-                       <application>eu.etaxonomy.taxeditor.application.application</application>\r
-                                       <!-- <dependency>
-                                               <type>p2-installable-unit</type>
-                                               <artifactId>eu.etaxonomy.taxeditor.product</artifactId>
-                                               <version>0.0.0</version>
-                                       </dependency> -->\r
-                               </configuration>\r
-                       </plugin>\r
-                       <!-- <plugin>
-                       <groupId>org.eclipse.tycho</groupId>
-                       <artifactId>maven-osgi-test-plugin</artifactId>
-                       <version>${tycho.version}</version>
-                       <configuration>
-                       <useUIHarness>true</useUIHarness>
-                       <useUIThread>false</useUIThread>
-                       <product>eu.etaxonomy.taxeditor.application.eu_etaxonomy_taxeditor_product</product>
-                       <application>org.eclipse.ui.ide.workbench</application>
-                       <dependencies>
-                       <dependency>
-                       <type>p2-installable-unit</type>
-                       <artifactId>eu.etaxonomy.taxeditor.application.eu_etaxonomy_taxeditor_product</artifactId>
-                       <version>0.0.0</version>
-                       </dependency>
-                       </dependencies>
-                       </configuration>
-                       </plugin> -->\r
-               </plugins>\r
-       </build>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+
+  <parent>
+    <groupId>eu.etaxonomy</groupId>
+    <artifactId>taxeditor-parent</artifactId>
+    <version>4.0.0-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>eu.etaxonomy.taxeditor.test</artifactId>
+  <packaging>eclipse-test-plugin</packaging>
+  <name>UI Test Bundle</name>
+  <description>Holds all Tests for the Taxonomic Editor</description>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.eclipse.tycho</groupId>
+        <artifactId>target-platform-configuration</artifactId>
+        <version>${tycho.version}</version>
+        <configuration>
+          <filters>
+            <!-- Work around for https://bugs.eclipse.org/bugs/show_bug.cgi?id=348045 -->
+            <!-- taken from https://wiki.eclipse.org/index.php?title=Tycho/Target_Platform#Filtering -->
+            <filter>
+              <type>p2-installable-unit</type>
+              <id>org.eclipse.equinox.servletbridge.extensionbundle</id>
+              <removeAll />
+            </filter>
+          </filters>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.eclipse.tycho</groupId>
+        <artifactId>tycho-surefire-plugin</artifactId>
+        <version>${tycho.version}</version>
+        <configuration>
+          <!-- currently we run only the non-ui unit tests so we don't the 
+            harness -->
+          <!-- <useUIHarness>true</useUIHarness> -->
+          <dependencies>
+            <!-- This will pull the feature and its dependent plugins into 
+              the classpath for the tests. Note that this requires ALL taxeditor projects 
+              to be installed. -->
+            <dependency>
+              <type>eclipse-feature</type>
+              <artifactId>eu.etaxonomy.taxeditor.feature</artifactId>
+              <!-- This is the minimum required version -->
+              <version>1.0.0</version>
+            </dependency>
+          </dependencies>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.eclipse.jetty</groupId>
+        <artifactId>jetty-maven-plugin</artifactId>
+        <version>9.1.3.v20140225</version><!-- do not update, since later versions are no longer compatible to java 7  -->
+        <dependencies>
+            <dependency>
+            <groupId>com.mchange</groupId>
+            <artifactId>c3p0</artifactId>
+            <!-- 
+              IMPORTANT!!!
+              this must exactly match the version as set in 
+              cdmlib-parent pom.xml otherwise the connection 
+              through jndi will not work
+            -->
+            <version>0.9.5.2</version>
+          </dependency>
+          <!-- DATABASE DRIVER -->
+          <dependency>
+            <groupId>com.h2database</groupId>
+            <artifactId>h2</artifactId>
+            <version>1.4.190</version>
+          </dependency>
+          <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>5.1.38</version>
+          </dependency>
+          <dependency>
+              <groupId>commons-dbcp</groupId>
+              <artifactId>commons-dbcp</artifactId>
+              <version>1.4</version>
+          </dependency>
+          <dependency>
+            <!-- needed to make eu.etaxonomy.cdm.database.LocalH2 available -->
+            <groupId>eu.etaxonomy</groupId>
+            <artifactId>cdmlib-persistence</artifactId>
+            <version>${project.version}</version>
+          </dependency>
+          <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.17</version>
+          </dependency>
+        </dependencies>
+        <configuration>
+          <jvmArgs>-Xmx512m -XX:MaxPermSize=512m</jvmArgs>
+          <systemProperties>
+            <force>true</force>
+            <systemProperty>
+              <!-- 
+                The lucene index should be placed into the target folder,
+                so user.home needs to be set to this folder.
+                user.home needs to be overridden since it already 
+                exists, thus the force option is turned on above 
+              -->
+              <name>user.home</name>
+              <value>${basedir}/target/</value>
+            </systemProperty> 
+            <systemProperty>
+              <name>spring.profiles.active</name>
+              <value>remoting</value>
+            </systemProperty>
+            <systemProperty>
+              <name>cdm.beanDefinitionFile</name>
+              <value>${basedir}/src/test/resources/datasources.xml</value>
+            </systemProperty>
+            <systemProperty>
+              <name>cdm.datasource</name>
+              <value>cdmTest</value>
+            </systemProperty>
+          </systemProperties>
+          <stopPort>9191</stopPort>
+          <stopKey>jetty-cdm-server</stopKey>
+          <stopWait>10</stopWait>
+          <httpConnector>
+            <port>9090</port>
+          </httpConnector>
+         <!-- 
+           ${project.parent.basedir} can not be used due to the bug
+           https://issues.apache.org/jira/browse/MNG-5522 
+           as long as this is unfixed we replace it by 
+           ${basedir}/../
+         -->
+          <war>${basedir}/../eu.etaxonomy.taxeditor.cdmlib/src/main/resources/etc/jetty/cdmlib-remote-webapp.war</war>
+          <daemon>true</daemon>
+        </configuration>
+        <executions>
+          <execution>
+            <id>start-jetty</id>
+            <phase>pre-integration-test</phase>
+            <goals>
+              <goal>deploy-war</goal>
+            </goals>
+            <configuration>
+              <scanIntervalSeconds>0</scanIntervalSeconds>
+            </configuration>
+          </execution>
+          <execution>
+            <id>stop-jetty</id>
+            <phase>post-integration-test</phase>
+            <goals>
+              <goal>stop</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>
\ No newline at end of file