Hi Olivier,

On Jan 26, 2010, at 10:54 AM, Olivier Berger wrote:

> Le dimanche 24 janvier 2010 à 20:50 +0100, Vincent Massol a écrit :
>> 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
>> 
> 
> Ah... would it be possible to update the docs and somehow then get rid
> of the old tutorial that mentions several times Plexus (or at least no
> longer reference it from the dev guides) ?

Yes someone needs to do it. It's a wiki and anyone can participate and edit it. 
If I get the time I'll give it a go.

> Also, I'd suggest to no longer point to Plexus docs from the first
> sentence in http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule
> which are somehow misleading.

I've just improved it a bit. It shouldn't be removed since it explains the 
advantages of using components!

>>> 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.
> 
> What's IDEA ?

an IDE.

> Is there a Howto ? 

What would you like to see in it? As I said there's nothing special to do.

So here's a tutorial for you:
- start your IDE
- start coding using the rules defined in 
http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule

> Think about newbees ;) You're probably very much aware of
> component-oriented development, but there are lots of folks that come
> from the LAMP world you know ;)

There's nothing special to component-oriented development WRT your IDE. It's 
just java code...

>>> 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.
>> 
> 
> Is there some configuration required in the Eclipse project to support
> that ?

No.

>>> 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
>> 
> 
> OK, thanks, I'll have a look at it again and start over my attempts to
> write a HelloWorld component.

Good luck. You'll see it's extremely easy.

Out of curiosity, what kind of component are you trying to build?

Thanks
-Vincent

> 
>> Thanks and enjoy!
>> -Vincent
>> 
>> PS: Feedback on component dev in xwiki is most welcome so that we can 
>> improve stuff even further.
> 
> Thanks.
> 
> Best regards,
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to