From 812c28ca8afef77e949555c34f560d53ad5edd85 Mon Sep 17 00:00:00 2001
From: ?? ? <ulysseskao@ximple.com.tw>
Date: Thu, 13 Mar 2008 15:10:28 +0800
Subject: [PATCH] EOFM-14

---
 ximple-dgnio/pom.xml |  188 ++++++++++++++++++++++++++++++++++++----------
 1 files changed, 145 insertions(+), 43 deletions(-)

diff --git a/ximple-dgnio/pom.xml b/ximple-dgnio/pom.xml
index ea49dba..090876c 100644
--- a/ximple-dgnio/pom.xml
+++ b/ximple-dgnio/pom.xml
@@ -12,6 +12,8 @@
     <test.maxHeapSize>512M</test.maxHeapSize>
     <src.output>${basedir}/target</src.output>
     <java5>1.5</java5>
+    <xdgnio.version>0.0.1</xdgnio.version>
+    <gt.version>2.4.1</gt.version>
   </properties>
 
   <!-- Profiles set on the command-line overwrite default properties. -->
@@ -45,7 +47,7 @@
   <groupId>com.ximple</groupId>
   <artifactId>ximple-dgnio</artifactId>
   <packaging>jar</packaging>
-  <version>1.0.0-SNAPSHOT</version>
+  <version>0.0.1</version>
   <name>ximple-dgnio-1.0.x</name>
 
   <scm>
@@ -86,6 +88,13 @@
 
   <developers>
     <developer>
+      <name>Kuo-Feng Kao</name>
+      <id>ulysseskao</id>
+      <email>ulysseskao@ximple.com.tw</email>
+      <organization>Ximple</organization>
+      <roles>
+        <role>Java Developer</role>
+      </roles>
     </developer>
   </developers>
 
@@ -100,6 +109,18 @@
   <!-- =========================================================== -->
   <dependencyManagement>
     <dependencies>
+      <!-- GeoAPI and its dependencies -->
+      <dependency>
+        <groupId>org.opengis</groupId>
+        <artifactId>geoapi-nogenerics</artifactId>
+        <version>2.1.0</version>
+      </dependency>
+      <dependency>
+        <groupId>javax.units</groupId>
+        <artifactId>jsr108</artifactId>
+        <version>0.01</version>
+      </dependency>
+
       <dependency>
         <groupId>com.vividsolutions</groupId>
         <artifactId>jts</artifactId>
@@ -125,14 +146,70 @@
       <dependency>
         <groupId>log4j</groupId>
         <artifactId>log4j</artifactId>
-        <version>1.2.15</version>  <!-- Same as the dependency in commons-logging -->
+        <version>1.2.15</version>
+        <!-- Same as the dependency in commons-logging -->
       </dependency>
       <dependency>
         <groupId>org.apache.poi</groupId>
         <artifactId>poi-contrib</artifactId>
         <version>3.0.1-FINAL</version>
       </dependency>
-      
+
+      <!-- geotools -->
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-api</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-main</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-sample-data</artifactId>
+        <version>${gt.version}</version>
+        <scope>test</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-data</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+
+      <!-- because main and sample-data depend on referencing we need a tie breaker -->
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-referencing</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>jdom</groupId>
+        <artifactId>jdom</artifactId>
+        <version>1.0</version>
+      </dependency>
+
+      <dependency>
+        <groupId>velocity</groupId>
+        <artifactId>velocity</artifactId>
+        <version>1.4</version>
+      </dependency>
+
+      <!-- We need this to make the referencing module useful -->
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-epsg-hsql</artifactId>
+        <version>${gt.version}</version>
+        <scope>test</scope>
+      </dependency>
+
       <!-- ORACLE -->
       <!-- Download and install into your own repo -->
       <dependency>
@@ -145,13 +222,11 @@
       <dependency>
         <groupId>org.testng</groupId>
         <artifactId>testng</artifactId>
-        <!--
-        <classifier>jdk15</classifier>
+        <!-- <classifier>jdk15</classifier> -->
         <version>5.7</version>
-        -->
-        <version>5.5</version>
         <scope>test</scope>
       </dependency>
+
     </dependencies>
   </dependencyManagement>
 
@@ -160,25 +235,70 @@
   <!-- =========================================================== -->
   <dependencies>
     <dependency>
+      <artifactId>geoapi-nogenerics</artifactId>
+      <groupId>org.opengis</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>jsr108</artifactId>
+      <groupId>javax.units</groupId>
+    </dependency>
+
+    <dependency>
       <groupId>com.vividsolutions</groupId>
       <artifactId>jts</artifactId>
     </dependency>
 
-    <dependency>
-      <groupId>commons-collections</groupId>
-      <artifactId>commons-collections</artifactId>
-    </dependency>
-
     <!-- Apache -->
     <dependency>
-      <groupId>commons-collections</groupId>
       <artifactId>commons-collections</artifactId>
+      <groupId>commons-collections</groupId>
     </dependency>
 
     <dependency>
-      <groupId>log4j</groupId>
       <artifactId>log4j</artifactId>
-      <!-- Same as the dependency in commons-logging -->
+      <groupId>log4j</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>gt2-api</artifactId>
+      <groupId>org.geotools</groupId>
+    </dependency>
+    <dependency>
+      <artifactId>gt2-main</artifactId>
+      <groupId>org.geotools</groupId>
+    </dependency>
+    <dependency>
+      <artifactId>gt2-sample-data</artifactId>
+      <groupId>org.geotools</groupId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <artifactId>gt2-data</artifactId>
+      <groupId>org.geotools</groupId>
+    </dependency>
+
+    <!-- because main and sample-data depend on referencing we need a tie breaker -->
+    <dependency>
+      <artifactId>gt2-referencing</artifactId>
+      <groupId>org.geotools</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>jdom</artifactId>
+      <groupId>jdom</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>velocity</artifactId>
+      <groupId>velocity</groupId>
+    </dependency>
+
+    <!-- We need this to make the referencing module useful -->
+    <dependency>
+      <artifactId>gt2-epsg-hsql</artifactId>
+      <groupId>org.geotools</groupId>
+      <scope>test</scope>
     </dependency>
 
     <!-- ORACLE -->
@@ -188,12 +308,12 @@
     </dependency>
 
     <dependency>
-      <groupId>org.testng</groupId>
       <artifactId>testng</artifactId>
+      <groupId>org.testng</groupId>
       <scope>test</scope>
     </dependency>
   </dependencies>
-  
+
   <!-- =========================================================== -->
   <!--     Build Configuration                                     -->
   <!-- =========================================================== -->
@@ -280,16 +400,7 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
-          <version>2.2</version>
-          <!-- Current version is 2.3, but it cause the following exception:
-
-                    Running org.geotools.gce.imagepyramid.ImagePyramidReaderTest
-                    Error: Could not find mediaLib accelerator wrapper classes. Continuing in pure Java mode.
-                    Occurs in: com.sun.media.jai.mlib.MediaLibAccessor
-                    java.lang.NoClassDefFoundError: com/sun/medialib/mlib/Image
-                        at com.sun.media.jai.mlib.MediaLibAccessor.setUseMlib(MediaLibAccessor.java:245)
-                        at com.sun.media.jai.mlib.MlibAffineRIF.create(MlibAffineRIF.java:71)
-                    -->
+          <version>2.4.2</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -323,7 +434,6 @@
           <artifactId>jalopy-maven-plugin</artifactId>
           <version>1.0-SNAPSHOT</version>
         </plugin>
-        <!--
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-source-plugin</artifactId>
@@ -332,7 +442,6 @@
             <attach>false</attach>
           </configuration>
         </plugin>
-        -->
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-eclipse-plugin</artifactId>
@@ -356,6 +465,7 @@
       <!--       (activated only on request, jalopy:format)        -->
       <!--     See developer's guide for automated activation      -->
       <!-- ======================================================= -->
+      <!--
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>jalopy-maven-plugin</artifactId>
@@ -371,7 +481,7 @@
           </dependency>
         </dependencies>
       </plugin>
-
+      -->
 
       <!-- ======================================================= -->
       <!--     Compilation.                                        -->
@@ -395,6 +505,7 @@
       <!-- ======================================================= -->
       <!--     Tests.                                              -->
       <!-- ======================================================= -->
+      <!--
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
@@ -409,28 +520,21 @@
           <argLine>-Xmx${test.maxHeapSize} -Dorg.geotools.test.extensive=${extensive.tests}
             -Dorg.geotools.test.interactive=${interactive.tests} -Djava.awt.headless=${java.awt.headless}
           </argLine>
-          <!-- Ignores test failure only if we are generating a       -->
-          <!-- report for publication on the web site. See the        -->
-          <!-- profiles section at the begining of this pom.xml file. -->
           <testFailureIgnore>
             ${allow.test.failure.ignore}
           </testFailureIgnore>
 
-          <!-- The two following options have the opposite value of what we would
-               like. They are that way because they don't seem to work as expected
-               with Surefire 2.3. TODO: Try again when Surefire 2.4 will be available. -->
-
-          <!-- Option to print summary of test suites or just print the test cases that has errors. -->
           <printSummary>true</printSummary>
-          <!-- Redirect the unit test standard output to a file. -->
+
           <redirectTestOutputToFile>false</redirectTestOutputToFile>
         </configuration>
       </plugin>
-
+      -->
 
       <!-- ======================================================= -->
       <!--     Code coverage                                       -->
       <!-- ======================================================= -->
+      <!--
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-clover-plugin</artifactId>
@@ -446,8 +550,6 @@
             <phase>pre-site</phase>
             <goals>
               <goal>instrument</goal>
-              <!-- aggregation is disabled due to the bug:     -->
-              <!-- http://jira.codehaus.org/browse/MCLOVER-34  -->
             </goals>
           </execution>
         </executions>
@@ -459,7 +561,7 @@
           </dependency>
         </dependencies>
       </plugin>
-
+      -->
 
       <!-- ======================================================= -->
       <!--     JAR packaging.                                      -->

--
Gitblit v0.0.0-SNAPSHOT