Mac上的Spring Roo设置
我一直在阅读关于SpringRoo的文章,我非常想尝试它,因为它将减少我的团队的大量手动数据输入工作。但是安装真的让我很痛苦 我使用STS和installe Roo作为插件,我能够启动Roo Shell,但它停止于: “请待命,直到Roo外壳完全加载。” 我也没有看到任何工作区错误日志 接下来,我尝试在没有IDE的情况下在我的终端上启动,但失败了,错误如下: svc notes MacBook Pro:roo测试tkhader$rooMac上的Spring Roo设置,spring,spring-roo,Spring,Spring Roo,我一直在阅读关于SpringRoo的文章,我非常想尝试它,因为它将减少我的团队的大量手动数据输入工作。但是安装真的让我很痛苦 我使用STS和installe Roo作为插件,我能够启动Roo Shell,但它停止于: “请待命,直到Roo外壳完全加载。” 我也没有看到任何工作区错误日志 接下来,我尝试在没有IDE的情况下在我的终端上启动,但失败了,错误如下: svc notes MacBook Pro:roo测试tkhader$roo WARNING: An illegal reflective
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没有在Java9中工作,我不得不降级到Java8,它第一次就工作了
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>
对我来说,有效的改变是将java版本从10/9改为8,也不适用于java9(是否符合OSGi?)。因此,您需要java 8。谢谢,它可以工作。我得到这个“请等待,直到Roo Shell完全加载。”使用macOS 10.12中的jdk build 1.8.0_121-b13。因此,它不仅限于jdk 9,尽管此处所述的具体原因可能是。