Spring Roo 2.0.0.RC1 不知道自己的版本号



当我启动roo.sh时,该命令记录了很多关于库版本和Roo版本的错误:

$ /opt/apps/ggg/spring-roo-2.0.0.RC1/bin/roo.sh
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: com.github.antlrjavaparser.antlr-java-parser:1.0.15
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.commons.codec:1.8.0
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.commons.io:2.4.0
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.commons.lang3:3.1.0
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.fusesource.jansi:1.6.0
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.jsoup:1.9.1
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.aries.subsystem.api:2.0.8
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.aries.subsystem.core:2.0.8
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.aries.util:1.1.1

更多"自动部署"警告,最后...

            _                               
 ___ _ __  _ __(_)_ __   __ _   _ __ ___   ___  
/ __| '_ | '__| | '_  / _` | | '__/ _  / _  
__  |_) | |  | | | | | (_| | | | | (_) | (_) |
|___/ .__/|_|  |_|_| |_|__, | |_|  ___/ ___/ 
    |_|                 |___/    UNKNOWN VERSION
Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
roo> 

如果我创建一个项目,则创建的pom.xml文件中Spring Roo的版本UNKNOWN VERSION

  <properties>
    <roo.version>UNKNOWN VERSION</roo.version>

然后,如果我修复2.0.0 RC1版本的文件设置,当我再次启动 Roo 控制台时,它会显示:

...
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.springframework.roo.wrapping.snakeyaml:1.15.1
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: slf4j.api:1.7.12
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: slf4j.jdk14:1.7.12
                _                               
 ___ _ __  _ __(_)_ __   __ _   _ __ ___   ___  
/ __| '_ | '__| | '_  / _` | | '__/ _  / _  
__  |_) | |  | | | | | (_| | | | | (_) | (_) |
|___/ .__/|_|  |_|_| |_|__, | |_|  ___/ ___/ 
    |_|                 |___/    UNKNOWN VERSION
Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
WARNING: You are using Spring Roo UNKNOWN VERSION, but project was generated using Spring Roo 2.0.0 RC1.
If you continue with the execution your project might suffer some changes.
Do you want to continue opening Spring Roo Shell?(YES/No)

如何解决版本此问题?是否有可以设置版本号的文件?

我看到您正在以下文件夹中执行roo.sh脚本:

/opt/apps/ggg

您是否具有该文件夹的管理员权限?您可以尝试在文件夹中执行roo.sh脚本~/apps/ggg吗?

让我知道这是否对您有帮助。

问候

我发现了问题:Spring Roo使用包含的文件夹的名称来了解自己的版本。将文件夹重命名后/opt/apps/ggg/roo /opt/apps/ggg/spring-roo-2.0.0.RC1按预期工作。

我知道从 http://projects.spring.io/spring-roo/下载的分发文件中的原始名称是spring-roo-2.0.0.RC1的(我在将zip解压缩到/opt/apps/ggg时重命名了它(,但我从未想过Spring使用文件夹名称来知道版本,说实话,我从未见过这样的行为,但是重命名文件夹名称可以解决问题。

感谢您的帮助。

最新更新