首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spring无法安装mysql

问Spring无法安装mysql
EN

Stack Overflow用户
提问于 2017-06-25 19:13:25
回答 1查看 307关注 0票数 0

在spring控制台中,我无法安装mysql (mysql和slf4已经在项目pom.xml中),但是spring控制台似乎有自己的列表,无法安装jdbc依赖项。我试图运行以下命令:

代码语言:javascript
复制
database reverse engineer --package ~.domain --schema testdb

已采取的步骤:

代码语言:javascript
复制
project --topLevelPackage com.testdb.spring.roo
jpa setup --provider HIBERNATE --database MYSQL --databaseName testdb
download status
download accept terms of use

#tried this from spring bug reports - didn't work
#tried this as well and didn't work -> http://lalyos.github.io/blog/2012/09/24/spring-roobot-workaround/
osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml
osgi obr deploy --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java

database reverse engineer --package ~.domain --schema testdb

下面是tring运行addon安装id的日志:(试图进行addon安装slf4j-api等也不起作用)

代码语言:javascript
复制
roo> addon search jdbc
9 found, sorted by rank; T = trusted developer; R = Roo 1.3 compatible
ID T R DESCRIPTION -------------------------------------------------------------
01 Y Y 5.1.18.0001 #jdbcdriver driverclass:com.mysql.jdbc.Driver. This bundle
       wraps the standard Maven artifact: mysql-connector-java-5.1.18.
02 Y Y 10.8.2.2_0001 Derby Client #jdbcdriver
       driverclass:org.apache.derby.jdbc.ClientDriver. This bundle wraps the...
03 Y Y 1.2.4.0010 #jdbcdriver driverclass:net.sourceforge.jtds.jdbc.Driver.
       This bundle wraps the standard Maven artifact: jtds-1.2.4.
04 Y Y 9.1.0.901-1_0001 Postgres #jdbcdriver driverclass:org.postgresql.Driver.
       This bundle wraps the standard Maven artifact:...
05 Y Y 9.1.0.901_0001 Postgres #jdbcdriver driverclass:org.postgresql.Driver.
       This bundle wraps the standard Maven artifact:...
06 Y Y 1.3.170.0001 H2 #jdbcdriver driverclass:org.h2.Driver. This bundle wraps
       the standard Maven artifact: h2-1.3.170.
07 Y Y 2.1.6.0020 #jdbcdriver driverclass:org.firebirdsql.jdbc.FBDriver. This
       bundle wraps the standard Maven artifact: firebird-2.1.6.
08 Y Y 10.8.2.2_0001 Derby #jdbcdriver
       driverclass:org.apache.derby.jdbc.EmbeddedDriver. This bundle wraps...
09 Y Y 6.7.0.0010 #jdbcdriver driverclass:com.ibm.as400.access.AS400JDBCDriver.
       This bundle wraps the standard Maven artifact: jtopen-6.7.
--------------------------------------------------------------------------------
[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
roo> addon install id --searchResultId 01
roo> Target resource(s):
-------------------
   Spring Roo - Wrapping - mysql-connector-java (5.1.18.0001)

Required resource(s):
---------------------
   slf4j-nop (1.6.1)
   slf4j-api (1.6.1)

Deploying...
done.

roo> 
roo> database reverse engineer --package ~.domain --schema testdb
Located add-on that may offer this JDBC driver
1 found, sorted by rank; T = trusted developer; R = Roo 1.3 compatible
ID T R DESCRIPTION -------------------------------------------------------------
01 Y Y 5.1.18.0001 #jdbcdriver driverclass:com.mysql.jdbc.Driver. This...
--------------------------------------------------------------------------------
[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
JDBC driver not available for 'com.mysql.jdbc.Driver'
roo> 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-06-25 20:18:36

我用

osgi安装--url文件:\d:\mysql-连接器-java-5.1.18-bin.jar

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44749673

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档