0

我正在使用 Spring Roo 插件 dev-t 迈出第一步。生成和构建“简单插件”成功完成。但在最后一步我收到了奇怪的错误信息。

java.net.UnknownHostException:目标捆绑 ID 文件://target/org.home.roo.addon.hello-0.1.0.BUILD-SNAPSHOT.jar 无效。

目标目录和 jar 确实存在。我什至无法理解这个错误的性质。你能告诉我我做错了什么或错过了什么吗?

C:\sts_workspaceRooAddOn\spring-roo-addon-hello> roo addon create simple --topLevelPackage org.home.roo.addon.hello
    ____  ____  ____
   / __ \/ __ \/ __ \
  / /_/ / / / / / / /
 / _, _/ /_/ / /_/ /
/_/ |_|\____/\____/    1.2.2.RELEASE [rev 7d75659]


Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
Created ROOT\pom.xml
Created ROOT\readme.txt
Created ROOT\legal
Created ROOT\legal\LICENSE.TXT
Created SRC_MAIN_JAVA\org\home\roo\addon\hello
Created SRC_MAIN_JAVA\org\home\roo\addon\hello\HelloCommands.java
Created SRC_MAIN_JAVA\org\home\roo\addon\hello\HelloOperations.java
Created SRC_MAIN_JAVA\org\home\roo\addon\hello\HelloOperationsImpl.java
Created SRC_MAIN_JAVA\org\home\roo\addon\hello\HelloPropertyName.java
Created ROOT\src\main\assembly
Created ROOT\src\main\assembly\assembly.xml
Created SRC_MAIN_RESOURCES\org\home\roo\addon\hello
Created SRC_MAIN_RESOURCES\org\home\roo\addon\hello\info.tagx
Created SRC_MAIN_RESOURCES\org\home\roo\addon\hello\show.tagx

C:\sts_workspaceRooAddOn\spring-roo-addon-hello>mvn clean install
...
...
[INFO] Installing org/home/roo/addon/hello/org.home.roo.addon.hello/0.1.0.BUILD-SNAPSHOT/org.home.roo.addon.hello-0.1
.0.BUILD-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.268s

C:\sts_workspaceRooAddOn\spring-roo-addon-hello>roo osgi start --url file://target/org.home.roo.addon.hello-0.1.0.BUILD
-SNAPSHOT.jar
    ____  ____  ____
   / __ \/ __ \/ __ \
  / /_/ / / / / / / /
 / _, _/ /_/ / /_/ /
/_/ |_|\____/\____/    1.2.2.RELEASE [rev 7d75659]


Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
0 upgrades available (plus 35 upgrades not visible due to your version stability setting of RELEASE)
java.net.UnknownHostException: target
Bundle ID file://target/org.home.roo.addon.hello-0.1.0.BUILD-SNAPSHOT.jar is invalid.
4

0 回答 0