(1)下载STS
(2)安装Roo
![](http://static.oschina.net/uploads/img/201508/11090931_TI9D.png)
打开DashBoard
![](http://static.oschina.net/uploads/img/201508/11090931_DTh9.png)
勾选Roo,选择Install
注意:首次安装重启,可能会出现无效,这个卸载重装下,就ok了
(3)新建Roo工程
![](http://static.oschina.net/uploads/img/201508/11090931_Ar8S.png)
![](http://static.oschina.net/uploads/img/201508/11090931_pikb.png)
出现Roo Shell窗口
![](http://static.oschina.net/uploads/img/201508/11090931_2bDX.png)
![](http://static.oschina.net/uploads/img/201508/11090931_5Rq6.png)
![](http://static.oschina.net/uploads/img/201508/11090931_0CnA.png)
(4)
jpa setup --provider HIBERNATE --database ORACLE
因为我们使用 Hibernate 作为我们的提供者,使用ORACLE数据库
这个时候pom.xml文件会报错,
因为ojdbc.jar不再maven中,具体解决方案如下:
执行如下命令,将
ojdbc6 增加到本地仓库中
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=ojdbc6.jar
修改pom.xml文件
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.1.0</version>
</dependency>