[Geoserver-devel] Build oracle jdbc-ng plugin with online tests

I thought

mvn clean install -Doracle.jdbc

should do the job.

But it does not, I tried on trunk and 2.6.x

Any ideas ?

This was probably targeted at the geotools list i assume?

Anyways, the oracle (and other jdbc tests) are not set up with the gt online test framework. I did whip up a patch some time ago but it still needs a bit of work:

http://jira.codehaus.org/browse/GEOT-1981

Anyways, so to run the tests you will have to manually edit the ds.properties, db.properties, and factory.properties to point at an oracle install. Once the connection can be made the tests should execute.

I can't remember off the top of my head but i think you may also need to update the pom.xml so that the jdbc driver is loaded after manully installing it in your local maven repo.

-Justin

Christian Müller wrote:

I thought

mvn clean install -Doracle.jdbc

should do the job.

But it does not, I tried on trunk and 2.6.x

Any ideas ?

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

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

Justin Deoliveira ha scritto:

This was probably targeted at the geotools list i assume?

Anyways, the oracle (and other jdbc tests) are not set up with the gt online test framework. I did whip up a patch some time ago but it still needs a bit of work:

http://jira.codehaus.org/browse/GEOT-1981

Anyways, so to run the tests you will have to manually edit the ds.properties, db.properties, and factory.properties to point at an oracle install. Once the connection can be made the tests should execute.

I can't remember off the top of my head but i think you may also need to update the pom.xml so that the jdbc driver is loaded after manully installing it in your local maven repo.

Yeah, one has to install the driver in a specific location (instructions
are inside the pom.xml file of the oracle module) and then use the
-Doracle flag to enable its usage

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

I see the problem. I looked at the developers guide

http://docs.codehaus.org/display/GEOT/4+Oracle+Optional+Dependency

There is an example using the property -Doracle.jdbc

mvn eclipse:eclipse -Doracle.jdbc

But looking into the pom, it must be -Doracle

@Andrea, can you fix this in the wiki after you have seen the problem.

Andrea Aime writes:

Justin Deoliveira ha scritto:

This was probably targeted at the geotools list i assume?

Anyways, the oracle (and other jdbc tests) are not set up with the gt online test framework. I did whip up a patch some time ago but it still needs a bit of work:

http://jira.codehaus.org/browse/GEOT-1981

Anyways, so to run the tests you will have to manually edit the ds.properties, db.properties, and factory.properties to point at an oracle install. Once the connection can be made the tests should execute.

I can't remember off the top of my head but i think you may also need to update the pom.xml so that the jdbc driver is loaded after manully installing it in your local maven repo.

Yeah, one has to install the driver in a specific location (instructions
are inside the pom.xml file of the oracle module) and then use the
-Doracle flag to enable its usage

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Christian Müller ha scritto:

I see the problem. I looked at the developers guide
http://docs.codehaus.org/display/GEOT/4+Oracle+Optional+Dependency
There is an example using the property -Doracle.jdbc
mvn eclipse:eclipse -Doracle.jdbc

But looking into the pom, it must be -Doracle
@Andrea, can you fix this in the wiki after you have seen the problem.

Done (hopefully):
http://docs.codehaus.org/display/GEOT/4+Oracle+Optional+Dependency

If there is still any problem with that page just go and fix it directly.

Ah, one thing about the Oracle tests: there is a single test failing
in the module, which is actually a problem in the way the test against
views with primary keys is written, that I've never came around to
fix for good.

Just so you know, if you have just a single failure in your setup,
it's not your fault. I have to try to find the time to solve it, but
atm I'm really full of work for other stuff and the doctor already
ordered me a full stop recently because I was too stressed out....

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.