Hi,
Bálint Kriván wrote:
Hi!
As the beginning I would like to say Hi! everyone, I'm new to XWiki.
I've read this guide:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents
I've got the main picture about this but how can I compile this component
"mvn install" in the root directory of your component (where the pom.xml
is).
check
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
for more info on building (which maven version to use, how to configure
maven, etc.)
(Should I?) and how can I include it in my XWiki
installation?
just drop the built jar in the WEB-INF/lib/ folder of your XWiki
application
that should be all.
Jerome
So for example: I've make a HelloWorld component and I would like to use it
in a wiki page like this (using groovy):
<%
def greeter = com.xpn.xwiki.web.Utils.getComponent(org.xwiki.component.HelloWorld.ROLE);
println greeter.sayHello();
%>
How can I do that? What are the missing steps I need to do (currently i'm
having a directory with tree like this:
pom.xml
src/main/java/org/xwiki/component/HelloWorld.java
src/main/java/org/xwiki/component/internal/DefaultHelloWorld.java
src/main/resources/META-INF/plexus/components.xml
src/test/java/org/xwiki/component/HelloWorldTest.java
)?
Thanks for reading and your guidance!
--
Regards,
Bálint Kriván
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users