Spring Roo osgi start命令的UnknownHostException

时间:2013-01-11 16:29:51

标签: spring-roo

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

java.net.UnknownHostException:target 捆绑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.

0 个答案:

没有答案