无法安装switchyard facet jboss forge

时间:2013-04-04 08:50:02

标签: jboss-forge

我刚刚开始处理JBoss Forge和Switchyard,我无法用switchyard facet创建一个简单的伪造项目。

  • 使用jboss-forge-1.2.2.FINAL(我也试过1.1.3)。
  • 我在代理服务器后面,所以我在〜/ .forge / config.xml文件中配置了代理
  • 我的.m2 / settings.xml文件也设置了代理配置。

伪造配置文件:

<configuration>
  <proxy>
    <host>proxyhost</host>
    <port>proxyport</port>
    <!-- The entries below are necessary only if your proxy needs authentication -->
    <username>username</username>
    <password>password</password>
  </proxy>
</configuration>

然后,当我输入我的新项目(具有详细输出)时

[myproject] myproject$ project install-facet switchyard.bean
***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)
org.jboss.forge.project.facets.FacetNotFoundException: The requested Facet named [switchyard.bean] could not be found.
    at org.jboss.forge.project.services.FacetFactory.getFacetByName(FacetFactory.java:124)
    at org.jboss.forge.shell.plugins.builtin.project.ProjectPlugin.installFacet(ProjectPlugin.java:107)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.forge.shell.command.Execution.perform(Execution.java:134)
    at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)
    at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)
    at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:789)
    at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:812)
    at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:602)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
    at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
    at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
    at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
    at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
    at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
    at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
    at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
    at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
    at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
    at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
    at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
    at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
    at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:172)
    at java.lang.Thread.run(Unknown Source)

有关正在发生的事情的任何想法?我错过了什么吗?

提前致谢,

1 个答案:

答案 0 :(得分:1)

SwitchYard Forge工具已经与旧版Forge(1.0.2)捆绑了很长一段时间。作为即将发布的1.0版本的一部分,Forge版本已升级到1.2.2。对于任一版本,您都需要使用SwitchYard安装程序将插件安装到现有的Forget安装中。如果你真的想和Forge一起使用SY,我会等待SY 1.0.0.Final或者拉出1.0.0的每晚构建。

另外,您可能希望在等待在1.0版本中尝试Forge时尝试基于Eclipse的工具。如果您想了解那里有哪些内容,请查看SwitchYard Video系列中的第6集: https://community.jboss.org/wiki/SwitchYardVideoSeries