changeset 1233:6ef05e62e3b3

Cleanup GeoTools dependencies, add missing library for tests.
author Tom Gottfried <tom@intevation.de>
date Tue, 13 Dec 2016 16:42:41 +0100
parents 93918aca306e
children 28a39466e4eb
files pom.xml src/test/java/de/intevation/lada/BaseTest.java
diffstat 2 files changed, 14 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/pom.xml	Tue Dec 13 16:21:12 2016 +0100
+++ b/pom.xml	Tue Dec 13 16:42:41 2016 +0100
@@ -133,16 +133,19 @@
             <artifactId>gt-referencing</artifactId>
             <version>14.5</version>
         </dependency>
-
         <dependency>
             <groupId>org.geotools</groupId>
             <artifactId>gt-epsg-hsql</artifactId>
             <version>14.5</version>
         </dependency>
-
         <dependency>
             <groupId>org.geotools</groupId>
-            <artifactId>gt-main</artifactId>
+            <artifactId>gt-api</artifactId>
+            <version>14.5</version>
+        </dependency>
+        <dependency>
+            <groupId>org.geotools</groupId>
+            <artifactId>gt-opengis</artifactId>
             <version>14.5</version>
         </dependency>
 
--- a/src/test/java/de/intevation/lada/BaseTest.java	Tue Dec 13 16:21:12 2016 +0100
+++ b/src/test/java/de/intevation/lada/BaseTest.java	Tue Dec 13 16:42:41 2016 +0100
@@ -46,21 +46,21 @@
     public static WebArchive createDeployment() throws Exception {
         File[] files = Maven.resolver().loadPomFromFile("pom.xml")
             .importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
-        File antlr = null;
-        for (File f : files) {
-            logger.debug(f.getName());
-            if (f.getName().contains("antlr4")) {
-                antlr = f;
-            }
-        }
+
         WebArchive archive = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME)
             .addPackages(true, Package.getPackage("de.intevation.lada"))
             .addAsResource("log4j.properties", "log4j.properties")
             .addAsResource("shibboleth.properties", "shibboleth.properties")
             .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
-            .addAsLibrary(antlr)
             .addAsResource("META-INF/test-persistence.xml",
                 "META-INF/persistence.xml");
+        for (File f : files) {
+            if (f.getName().contains("antlr4")
+                || f.getName().contains("gt-opengis")
+            ) {
+                archive.addAsLibrary(f);
+            }
+        }
         return archive;
     }
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)