[Geoserver-devel] Geoserver 1.7.2/Geotools 2.5.3 Eclipse Project

Hi All,

I'm trying (did it already) to mount a geoserver 1.7.2 project at eclipse.

In the web module, i ran test class and the jetty is running successfully.
The issue is, i use Oracle database, so, in this geoserver (running from
eclipse), the datastore doesn't have "Oracle" option. In a normal situation,
i have to copy ojdbc and gt-oralce-plugin jar files into lib folder. There
is any way i could have the oracle datastore in the geoserver running at
jetty.

As i want to have the oracle source in my project, how can i add some
geotools modules to my geoserver project? If it is possible to run in real
time at jetty?

At last, i would like to know which modules do i need to add (from geotools)
to my geoserver project so i could change the oracle plugin.

Many thanks.

D.Nunes
--
View this message in context: http://www.nabble.com/Geoserver-1.7.2-Geotools-2.5.3-Eclipse-Project-tp21788388p21788388.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

For oracle, there is a maven profile you can use to load the oracle specific modules:

mvn -P oracle-old eclipse:eclipse

However this will only link the binary from the maven repository (although you will be able to browse the sources).

If you want to link to the source code directly so that changes you make can be realized without running mvn install, you will have to manually import the geotools oracle module into your eclipse workspace, and manually edit the classpath of the web module to include it.

For this second option to work properly you will have to ensure that you run mvn eclipse:eclipse from the oracle module itself, and not from the root of the geotools source tree.

I myself prefer the profile approach, and maintain separate eclipse workspaces for geotools and geoserver. Linking the sources of both projects results in a huge eclipse workpsace and is somewhat tedious.

-Justin

D.Nunes wrote:

Hi All,

I'm trying (did it already) to mount a geoserver 1.7.2 project at eclipse.

In the web module, i ran test class and the jetty is running successfully.
The issue is, i use Oracle database, so, in this geoserver (running from
eclipse), the datastore doesn't have "Oracle" option. In a normal situation,
i have to copy ojdbc and gt-oralce-plugin jar files into lib folder. There
is any way i could have the oracle datastore in the geoserver running at
jetty.

As i want to have the oracle source in my project, how can i add some
geotools modules to my geoserver project? If it is possible to run in real
time at jetty?

At last, i would like to know which modules do i need to add (from geotools)
to my geoserver project so i could change the oracle plugin.

Many thanks.

D.Nunes

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

D.Nunes wrote:

Hi All,

I'm trying (did it already) to mount a geoserver 1.7.2 project at eclipse.

In the web module, i ran test class and the jetty is running successfully.
The issue is, i use Oracle database, so, in this geoserver (running from
eclipse), the datastore doesn't have "Oracle" option. In a normal situation,
i have to copy ojdbc and gt-oralce-plugin jar files into lib folder. There
is any way i could have the oracle datastore in the geoserver running at
jetty.

As i want to have the oracle source in my project, how can i add some
geotools modules to my geoserver project? If it is possible to run in real
time at jetty?

Never managed to have GeoServer modules depend live on the GeoTools
ones, there are some test dependencies propagating from the
GeoTools modules that make it impossible to startup GeoServer
(unfortunately eclipse does not have a concept of a test vs compile
dependency and propages them all without discrimination).

What I usually do is to create a configuration that uses the oracle
jars:

mvn eclipse:eclipse -Poracle

then reload the geoserver projects in eclipse and eventually fix
the missing oracle driver jar.

That allows me to debug, but not to develop the oracle stuff live
against geoserver. What I do is to debug until I find the problem
I'm looking for, then I switch to geotools, write a test case,
fix the issue, build, and double check it's fixed in geoserver
as well.

Cheers
Andrea