Search code examples
javamysqlspring-roo

Spring Roo MySQL JDBC Driver


I'm trying to install MySQL JDBC driver in Spring Roo. Here is the log:

roo> addon search --requiresDescription "#jdbcdriver,driverclass:com.mysql.jdbc.Driver"
0 found, sorted by rank; T = trusted developer; R = Roo 1.2 compatible
ID T R DESCRIPTION -------------------------------------------------------------
--------------------------------------------------------------------------------
[HINT] use 'addon info id --searchResultId ..' to see details about a search result
[HINT] use 'addon install id --searchResultId ..' to install a specific search result, or
[HINT] use 'addon install bundle --bundleSymbolicName TAB' to install a specific add-on version

What I should do?


Solution

  • If you are just trying to add the driver, you could add it directly in the pom.xml, e.g.

    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>5.1.21</version>
    </dependency>