2 Replies Latest reply on Nov 1, 2012 11:17 AM by Rafael Soares (Tuelho)

    'plugins setup' command error

    Rafael Soares (Tuelho) Novice

      Hi.

       

      I'm trying to create a new plugin for Forge.

       

      After create new project via Forge console I tried to use the 'plugins setup' command, but the following error occurs:

       

      {noformat}

      ***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)

      java.lang.IllegalArgumentException: promptChoice() Cannot ask user to select from a list of nothing. Ensure you have values in your options list.

                at org.jboss.forge.shell.AbstractShellPrompt.promptChoiceTyped(AbstractShellPrompt.java:242)

                at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.promptChoiceTyped(ShellImpl$Proxy$_$$_WeldClientProxy.java)

                at org.jboss.forge.dev.ForgeAPIFacet.install(ForgeAPIFacet.java:50)

                at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:240)

                at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:166)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:601)

       

      {noformat}

       

      I'm using Forge 1.1.2-SNAPSHOT.

       

      Also the doc page [1] suggest to use the 'plugins new-plugin' command, but seems that command does not exists.

       

      [1] http://forge.jboss.org/docs/plugin_development/implement-plugin-interface.html