Skip to content

Commit

Permalink
include ora and sde modules
Browse files Browse the repository at this point in the history
Please see README for preflight instructions
  • Loading branch information
jodygarnett committed Jan 27, 2016
1 parent 8e894a1 commit 4bc37b2
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 7 deletions.
5 changes: 0 additions & 5 deletions modules/io/io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
<name>${project.groupId}:${project.artifactId}</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
Expand Down
11 changes: 11 additions & 0 deletions modules/io/ora/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
The jt-ora module requires the oracle JDBC driver in order to compile.

Download the ojdbc5.jar driver from oracle and install local maven repository:

mvn install:install-file -Dfile=ojdbc5.jar \
-DgroupId=com.oracle -DartifactId=ojdbc5 \
-Dversion=11.1.0.7.0 -Dpackaging=jar -DgeneratePom=true

You can then build using the oracle profile:

mvn -Poracle
21 changes: 21 additions & 0 deletions modules/io/ora/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-io</artifactId>
<version>1.15.0</version>
</parent>
<groupId>org.locationtech.jts.io</groupId>
<artifactId>jts-ora</artifactId>
<name>${project.groupId}:${project.artifactId}</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc5</artifactId>
<!-- version from dependencyManagment in root pom -->
<scope>provided</scope>
</dependency>
</dependencies>
</project>
29 changes: 29 additions & 0 deletions modules/io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,35 @@
<name>${project.groupId}:${project.artifactId}</name>
<packaging>pom</packaging>

<profiles>
<profile>
<id>oracle</id>
<activation>
<property><name>all</name></property>
</activation>
<modules>
<module>ora</module>
</modules>
</profile>
<profile>
<id>arcsde</id>
<activation>
<property><name>all</name></property>
</activation>
<modules>
<module>sde</module>
</modules>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>${project.parent.version}</version>
</dependency>
</dependencies>

<modules>
<module>io</module>
</modules>
Expand Down
18 changes: 18 additions & 0 deletions modules/io/sde/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The jt-sde module requires the ESRI ArcSDE jars included with your software be installed in your local maven repository:

mvn install:install-file -Dfile=jsde_sdk.jar \
-DgroupId=com.esri -DartifactId=jsde_sdk \
-Dversion=9.1 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file -Dfile=jpe_sdk.jar \
-DgroupId=com.esri -DartifactId=jpe_sdk \
-Dversion=9.1 -Dpackaging=jar -DgeneratePom=true
You can then build using the arcsde profile:

mvn -Parcsde

The default SDE version is 9.1. if you want to use newer ESRI ArcSDE Java API jars, provided that you installed them through mvn install:install-file in your local repo, run maven with:

mvn -Parcsde -Dsde.version=9.2

37 changes: 37 additions & 0 deletions modules/io/sde/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-io</artifactId>
<version>1.15.0</version>
</parent>
<groupId>org.locationtech.jts.io</groupId>
<artifactId>jts-sde</artifactId>
<name>${project.groupId}:${project.artifactId}</name>
<packaging>jar</packaging>

<properties>
<!--
Default SDE version is 9.1. To use newer version (that has been installed
in your local repository) run maven with:
mvn -Parcsde -Dsde.version={desired version}
-->
<sde.version>9.1</sde.version>
</properties>

<dependencies>
<dependency>
<groupId>com.esri</groupId>
<artifactId>jsde_sdk</artifactId>
<version>${sde.version}</version>
</dependency>
<dependency>
<groupId>com.esri</groupId>
<artifactId>jpe_sdk</artifactId>
<version>${sde.version}</version>
</dependency>
</dependencies>

</project>
23 changes: 21 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,23 @@
Setup for eclipse development:
mvn eclipse:eclipse
To build with jts-ora:
mvn install -Poracle
To build with jts-sde:
mvn install -Parcsde
To build everything:
mvn install -Dall
-->

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit-version>3.7</junit-version>
<jdom-version>1.1.3</jdom-version>
<jump.version>1.2</jump.version>
<json-simple-version>1.1.1</json-simple-version>
<ojdbc5-version>11.1.0.7.0</ojdbc5-version>
<sde-version>9.1</sde-version>
</properties>

Expand Down Expand Up @@ -79,7 +88,17 @@
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement-->


<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc5</artifactId>
<version>11.1.0.7.0</version>
</dependency>
</dependencies>
</dependencyManagement>

<!-- Repositories for Dependencies -->
<repositories>
<repository>
Expand Down

0 comments on commit 4bc37b2

Please sign in to comment.