Hi Olivier,
On Jan 23, 2010, at 7:55 PM, Olivier Berger wrote:
Hi.
If I get it right, nowadays, development of Java plugins/add-ons for
XWiki is done through Plexus components.
Nope :)
They are done through XWiki components. See
http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule
Is there a way ATM to setup easily a HelloWorld
component development
project in Eclipse, in order to be able to learn and test such component
development ?
Sure it's very easy. You don't need to do anything. I do XWiki component dev in
Eclipse and IDEA.
It seems that the maven archetype is quite outdated, and I couldn't find
examples on what needs to be configured in such a Java+Maven project to
make it work.
Annotations support for instance doesn't seem trivial to activate for me
(Java and Eclipse beginner).
Annotations is supported by default in eclipse since it's a java 5 feature.
Also, as the Plexus archetype on codehaus is in no
better shape (can't
even be installed with maven), it doesn't help a lot.
You shouldn't use that since we're not using Plexus (we were using it several
months ago though but it was always under the hood and not exposed in any API).
Please don't hesitate to post more specific questions if you need help. Right now the
best doc is:
http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule
Thanks and enjoy!
-Vincent
PS: Feedback on component dev in xwiki is most welcome so that we can improve stuff even
further.