spring - Mac 上的 Spring Roo 设置
问题描述
我一直在阅读有关 Spring Roo 的文章,并且非常想尝试一下,因为它会为我的团队减少大量手动数据输入类型的工作。但是安装真的让我很生气。
我使用 STS 并将 Roo 作为插件安装,我能够启动 Roo Shell,但它停止在:
“请待命,直到袋鼠壳装满为止。 ”
而且我也没有看到任何工作区错误日志。
接下来,我尝试在没有 IDE 的情况下在终端上启动,但失败并出现以下错误:
svc-notes-MacBook-Pro:roo-test tkhader$ roo
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.felix.framework.util.SecureAction (file:/Users/tkhader/Documents/Junk/RooAutogen/spring-roo-2.0.0.RELEASE/bin/org.apache.felix.framework-5.4.0.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.util.SecureAction
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
ERROR: Bundle com.github.antlrjavaparser.antlr-java-parser [1] Error starting file:/Users/tkhader/Documents/Junk/RooAutogen/spring-roo-2.0.0.RELEASE/bundle/antlr-java-parser-1.0.15.jar (org.osgi.framework.BundleException: Unable to resolve com.github.antlrjavaparser.antlr-java-parser [1](R 1.0): missing requirement [com.github.antlrjavaparser.antlr-java-parser [1](R 1.0)] osgi.wiring.package; (osgi.wiring.package=org.antlr.v4.runtime.atn) [caused by: Unable to resolve org.springframework.roo.wrapping.antlr4-runtime [81](R 81.0): missing requirement [org.springframework.roo.wrapping.antlr4-runtime [81](R 81.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation.processing)] Unresolved requirements: [[com.github.antlrjavaparser.antlr-java-parser [1](R 1.0)] osgi.wiring.package; (osgi.wiring.package=org.antlr.v4.runtime.atn)])
org.osgi.framework.BundleException: Unable to resolve com.github.antlrjavaparser.antlr-java-parser [1](R 1.0): missing requirement [com.github.antlrjavaparser.antlr-java-parser [1](R 1.0)] osgi.wiring.package; (osgi.wiring.package=org.antlr.v4.runtime.atn) [caused by: Unable to resolve org.springframework.roo.wrapping.antlr4-runtime [81](R 81.0): missing requirement [org.springframework.roo.wrapping.antlr4-runtime [81](R 81.0)] osgi.wiring.package; (osgi.wiring.package=javax.annotation.processing)] Unresolved requirements: [[com.github.antlrjavaparser.antlr-java-parser [1](R 1.0)] osgi.wiring.package; (osgi.wiring.package=org.antlr.v4.runtime.atn)]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.base/java.lang.Thread.run(Thread.java:844)
解决方案
Roo 在 java 9 中不工作,我不得不降级到 java 8,它第一次工作。
svc-notes-MacBook-Pro:java6 tkhader$ jenv versions
system
1.6
1.6.0.65
* 1.8 (set by /usr/local/Caskroom/java6/.java-version)
1.8.0.162
9.0
9.0.4
oracle64-1.6.0.65
oracle64-1.8.0.162
oracle64-9.0.4
svc-notes-MacBook-Pro:java6 tkhader$ jenv exec roo
_
___ _ __ _ __(_)_ __ __ _ _ __ ___ ___
/ __| '_ \| '__| | '_ \ / _` | | '__/ _ \ / _ \
\__ \ |_) | | | | | | | (_| | | | | (_) | (_) |
|___/ .__/|_| |_|_| |_|\__, | |_| \___/ \___/
|_| |___/ 2.0.0.RELEASE
Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
roo>
推荐阅读
- vue.js - Bootstrap-vue:如何使用内置的表格过滤组件过滤第二组数据?
- r - 从R中列表中的所有嵌入列表中删除一个元素
- io - Perl6:以不同用户身份运行命令
- php - 如何包含数据库中的多列或多行
- oauth - NestJS 和 PassportJS 没有刷新令牌
- html - 如何显示从元素内的元素到Angular中的最后一个元素的所有对象?
- linux - 删除 docker 特定的图像
- mongodb - Mongodb v4 文档验证失败
- javascript - 在本机反应中修复未处理的承诺拒绝
- vue.js - 如何在 v-select 组件 vuetify 上设置过滤条件?