-
1. Re: when i install my Plugin into the Forge environment,it gives error
vineet.reynolds Dec 31, 2013 3:09 PM (in response to justin2013)Hey Justin,
Your plugin was installed, but since it had no commands in it, you cannot invoke any functionality in the plugin. That's also the reason why you do not see a message that the "plugin X was activated" or that "command Y is now available".
To add a command to your plugin, refer this section of the guide: http://forge.jboss.org/docs/plugin_development/add-commands-to-plugin.html#content
But then, since you're just beginning to write a new plugin, I'd recommend that you start off with Forge 2 (scheduled to release this month). You can find instructions on developing and consuming various addons in Forge 2, in the README.md files in the Forge 2 repository: forge/core · GitHub
Vineet
-
2. Re: Re: when i install my Plugin into the Forge environment,it gives error
justin2013 Jan 2, 2014 9:55 AM (in response to vineet.reynolds)Hi Vineet,
Thanks for your reply.
The plugin had command but was duplicate of primeface(install-example-facelet)
command.i have modified it to as follows:@Command("install-example-spring")
public void installExampleSpring(final
PipeOut pipeOut) {..
}
When I recreated plugin and made it available to Forge,it
gave below output where it lastly says” The following plugins have been
activated: [springplugin]“:
However,wheni run command “springplugin installExampleSpring”,it
neither creates SpringService java file(which is implementation of this command method) nor it gives any error in console.it just gives the
same prompt again.pfa output of this command mentioned here(forge-plugin*.png) and project.pfa plugin recreation console output also
Could you kindly let me know how to resolve the same.
- Thanks.
-
spring-forge-plugin.zip 19.5 KB
-
forge-plugin-err-spring.png 154.2 KB
-
3. Re: [forge-users] when i install my Plugin into the Forge environment, it gives error
lincolnthree Jan 3, 2014 10:21 AM (in response to justin2013)Hi. It looks like your plugin is missing the
"src/main/resources/META-INF/beans.xml" file that allows Forge to detect
commands in the plugin JAR file.
For example:
https://github.com/forge/plugin-arquillian/tree/master/src/main/resources/META-INF
On Thu, Jan 2, 2014 at 9:55 AM, <forge-users@lists.jboss.org> wrote:
Hi Vineet,
>
Thanks for your reply.
The plugin had command but was duplicate of
primeface(install-example-facelet)
command.i have modified it to as follows:
@Command("install-example-spring")
public void installExampleSpring(final
PipeOut pipeOut) {
..
>
}
>
When I recreated plugin and made it available to Forge,it
gave below output where it lastly says” The following plugins have been
>
“:
>
However,wheni run command “springplugin installExampleSpring”,it
neither creates SpringService java file(which is implementation of this
command method) nor it gives any error in console.it just gives the
same prompt again.pfa output of this command mentioned
here(forge-plugin*.png) and project.
pfa plugin recreation console output also
Could you kindly let me know how to resolve the same.
>
1. Thanks.
>
>
Posted by forums
Original post: https://community.jboss.org/message/851331#851331
_______________________________________________
forge-users mailing list
https://lists.jboss.org/mailman/listinfo/forge-users
--
Lincoln Baxter, III
"Simpler is better."
-
att1.html.zip 1.2 KB
-