I've been having issues trying to get Roo to recognize the ojdbc14.jar (version 10.2.0.5.0) installed in my local Maven repository. I have followed the steps in the documentation for configuring Roo to use the Oracle JDBC jar file, but I am still getting the 'addon search --requiresDescription "#jdbcdriver,driverclass:oracle.jdbc.driver.Oracle Driver" found no matches' message when executing the call:
database reverse engineer --schema my_schema_name
That would seem to indicate that Roo cannot find the jar file. However, Maven does appear to be configured properly, and the SpringSource Tool Suite app does find the ojdbc library in it's classpath through Maven. It just seems to be Roo that is not able to find the jar.
From what I have been reading, I am thinking this may have something to do with the addon create wrapper functionality in Roo, but that may be a red herring, I just can't tell.
TECHNICAL DETAILS:
All Roo/Maven/STS code comes from the new springsource-tool-suite-2.5.2 download off the Spring website.
I have performed the following steps to get the ojdbc jar installed in my local repository:
- run the command mvn install:install-file -Dfile=C:/Users/jason.ross/Downloads/ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.5.0 -Dpackaging=jar -DgeneratePom=true
- Updated the ojdbc tag created by Roo (when executing persistence setup --provider HIBERNATE --database ORACLE) in the project pom.xml to:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.5.0</version>
</dependency>
- Edited the database.properties file to the following:
database.password=***
database.url=jdbc:oracle:thin:@localhost:1524:dev
database.username=schema_owner
database.driverClassName=oracle.jdbc.driver.Oracle Driver
NOTE: I have also tried, with the same result: database.driverClassName=oracle.jdbc.OracleDriver


Reply With Quote
