Spring ROO 2.0和STS Java版本

时间:2018-12-06 03:07:40

标签: spring-roo

Spring Roo 2.0文档显示了两个不同的推荐Java版本。 https://docs.spring.io/spring-roo/docs/current/reference/html/#getting-started-requirements建议使用Java 7,而https://docs.spring.io/spring-roo/docs/current/reference/html/#getting-started-install-roo建议使用Java8。我已经尝试了两个版本,并且在Mac High Siera和Windows 10上都收到Java 8的错误。

This is the error in Mac OSX when using Java 8:

STS 4.02将不会安装ROO(两个夜间版本/发布版本)。当我尝试使用STS 4.02安装ROO时,我得到Cannot complete the install because one or more required items could not be found.   Software being installed: Spring IDE Roo Support 3.9.6.201809180658-RELEASE (org.springframework.ide.eclipse.roo.feature.feature.group 3.9.6.201809180658-RELEASE)   Missing requirement: AspectJ 1.7.3.20130613144500-a (org.aspectj.ajde 1.7.3.20130613144500-a) requires 'osgi.bundle; org.eclipse.core.runtime.compatibility 0.0.0' but it could not be found   Cannot satisfy dependency:     From: AspectJ Compiler 1.7.3.20130613144500-a (org.aspectj.feature.group 1.7.3.20130613144500-a)     To: org.eclipse.equinox.p2.iu; org.aspectj.ajde [1.7.3.20130613144500-a,1.7.3.20130613144500-a]   Cannot satisfy dependency:     From: AspectJ Development Tools 2.2.3.e43x-RELEASE-20130627-0800 (org.eclipse.ajdt.feature.group 2.2.3.e43x-RELEASE-20130627-0800)     To: org.eclipse.equinox.p2.iu; org.aspectj.feature.group [1.7.3.20130613144500-a,1.7.3.20130613144500-a]   Cannot satisfy dependency:     From: Spring IDE Roo Support 3.9.6.201809180658-RELEASE (org.springframework.ide.eclipse.roo.feature.feature.group 3.9.6.201809180658-RELEASE)     To: org.eclipse.equinox.p2.iu; org.eclipse.ajdt.feature.group 2.0.1

STS 3.96和4.02仅在Java 8上运行,如您尝试使用Java 8启动STS所示。

因此,看来ROO至少需要Java 7,而STS至少需要Java 8。

有人遇到过这个吗?有没有办法让ROO 2.0在Windows 10或Mac High Sierra上与STS 4.0协同运行,而两者都在Java 8上运行?

0 个答案:

没有答案