[xwiki-devs] How to Automatically Build and Run Xwiki Within Eclipse?
Hi guys, I really love Xwiki. I think it is pretty and cool. I hope I could build a tool base on Xwiki Platform for my master thesis. And I want to contribute to Xwiki Community too. Should I create a new module or component. I could not distinguish those two. I tried follow this tutorial ( http://dev.xwiki.org/xwiki/bin/view/Community/Debugging) more than 10 times for automatically build and run Xwiki in Eclipse. For Import and link maven jar projects to debug secttion, I find how to Link Jar project to the web project is vague( http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse_ImportJarPr...), for "Since M2Eclipse 0.9.4, you need to install Maven Integration for WTP then you just have to add the imported maven jar project in the pom.xml file of the project xe-debug." Could any guru explain a little about how write pom.xml file for the imported maven jar project? Does Eclipse 3.5 JEE Galileo work well with Maven and everything? Thank you everyone, have a nice day! Leon
Hi Leon, I'm not the best person to answer your questions but I'll try to answer some of them until someone else does ;) On Tue, Aug 25, 2009 at 11:22 AM, Leon Wang <[email protected]> wrote:
Hi guys,
I really love Xwiki. I think it is pretty and cool. I hope I could build a tool base on Xwiki Platform for my master thesis. And I want to contribute to Xwiki Community too. Should I create a new module or component. I could not distinguish those two.
A maven module is not an implementation detail, it's a way of organizing related functionalities into a single distributable package. For an example we have a module that collects all the code related to xwiki rendering... A component is an implementation detail. A component allows you to define a high level interface and let you provide different implementations. And clients of your component will consume your component in a declarative fashion like: @Requirement("default") private LeonsComponent lcomp; or LeonsComponent lcomp = componentManager.lookup(LeonsComponent.class, "funky"); As you can see there is no tight coupling between the clients of LeonsComponent and the actual LeonsComponent implementation, we just lookup for an implementation with a "role-hint" For more information you can refer http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents Finally, a single module may contain a lot of components...
I tried follow this tutorial ( http://dev.xwiki.org/xwiki/bin/view/Community/Debugging) more than 10 times for automatically build and run Xwiki in Eclipse.
The mostly used method for XWiki development (IMO) is using eclipse + m2eclipse as a source code editor and a terminal which is used to build different projects. But you can use eclipse + m2eclipse alone for development if you prefer. Debugging with eclipse tutorial might be little outdated but last time i checked it worked pretty well...
For Import and link maven jar projects to debug secttion, I find how to Link Jar project to the web project is vague(
http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse_ImportJarPr... ), for "Since M2Eclipse 0.9.4, you need to install Maven Integration for WTP then you just have to add the imported maven jar project in the pom.xml file of the project xe-debug." Could any guru explain a little about how write pom.xml file for the imported maven jar project?
Does Eclipse 3.5 JEE Galileo work well with Maven and everything? Thomas Mortagne will answer you on this :) - Asiri
On Tue, Aug 25, 2009 at 08:18, Asiri Rathnayake<[email protected]> wrote:
Hi Leon,
I'm not the best person to answer your questions but I'll try to answer some of them until someone else does ;)
On Tue, Aug 25, 2009 at 11:22 AM, Leon Wang <[email protected]> wrote:
Hi guys,
I really love Xwiki. I think it is pretty and cool. I hope I could build a tool base on Xwiki Platform for my master thesis. And I want to contribute to Xwiki Community too. Should I create a new module or component. I could not distinguish those two.
A maven module is not an implementation detail, it's a way of organizing related functionalities into a single distributable package. For an example we have a module that collects all the code related to xwiki rendering...
A component is an implementation detail. A component allows you to define a high level interface and let you provide different implementations. And clients of your component will consume your component in a declarative fashion like:
@Requirement("default") private LeonsComponent lcomp;
or
LeonsComponent lcomp = componentManager.lookup(LeonsComponent.class, "funky");
As you can see there is no tight coupling between the clients of LeonsComponent and the actual LeonsComponent implementation, we just lookup for an implementation with a "role-hint"
For more information you can refer http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents
Finally, a single module may contain a lot of components...
I tried follow this tutorial ( http://dev.xwiki.org/xwiki/bin/view/Community/Debugging) more than 10 times for automatically build and run Xwiki in Eclipse.
http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse should work well except for the new WYSIWYG and the screenshots has been made with Eclipse 3.3 but if you know Eclipse you should not be too lost ;)
The mostly used method for XWiki development (IMO) is using eclipse + m2eclipse as a source code editor and a terminal which is used to build different projects. But you can use eclipse + m2eclipse alone for development if you prefer.
Debugging with eclipse tutorial might be little outdated but last time i checked it worked pretty well...
For Import and link maven jar projects to debug secttion, I find how to Link Jar project to the web project is vague(
http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse_ImportJarPr... ), for "Since M2Eclipse 0.9.4, you need to install Maven Integration for WTP then you just have to add the imported maven jar project in the pom.xml file of the project xe-debug." Could any guru explain a little about how write pom.xml file for the imported maven jar project?
Does Eclipse 3.5 JEE Galileo work well with Maven and everything?
Let's say not worst than in Eclipse 3.4 ;) There is a quite annoying bug around resources management in m2eclipse which make it loose them all the time... So you have to trick a little, i will add something in http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse_Troubleshoo...
Thomas Mortagne will answer you on this :)
- Asiri _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi Asiri, everybody, Asiri Rathnayake wrote:
The mostly used method for XWiki development (IMO) is using eclipse + m2eclipse as a source code editor and a terminal which is used to build different projects. But you can use eclipse + m2eclipse alone for development if you prefer.
Even though this is not a XWiki question, please, could you tell me if have you faced some problem while installaing m2eclipse in Eclipse 3.5 Galileo. Please, see this... http://xen.net/images/m2eclipseInstall.png I am not able to get the Next bottom highlighted even though I check the radio bottom acepting the license agreement. Please, any idea? Thanks! Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi Asiri, everybody,
Asiri Rathnayake wrote:
The mostly used method for XWiki development (IMO) is using eclipse + m2eclipse as a source code editor and a terminal which is used to build different projects. But you can use eclipse + m2eclipse alone for development if you prefer.
Even though this is not a XWiki question, please, could you tell me if have you faced some problem while installaing m2eclipse in Eclipse 3.5 Galileo. Please, see this...
http://xen.net/images/m2eclipseInstall.png
I am not able to get the Next bottom highlighted even though I check the radio bottom acepting the license agreement.
Please, any idea? Thanks!
Ricardo
This is really strange. The Next button should have become active when selecting "I agree". Better ask this on one of the Eclipse channels. Try #eclipse on IRC. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi, Sergiu Dumitriu wrote:
This is really strange. The Next button should have become active when selecting "I agree". Better ask this on one of the Eclipse channels. Try #eclipse on IRC.
Not a precise answer there, but to speak with others always helps! There are at least a couple of scenarios where neither Next nor Finish buttons won't be active. I keep an eye on this issue and report it as a bug to Eclipse bug tracker when I get a reproducible behaviour. As a work around: to do a partial installations seems to work fine. In this case, when installing m2eclipse from http://m2eclipse.sonatype.org/update/, it is possible to install Maven Integration first, then Maven Optional Components and Maven Project Configuration. Note that Subclipse and/or AJDT (AspectJ Development Tools) has to be installed to install (sic) Maven integration for AJDT and/or Maven handler for Subclipse. Thanks! Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Hi [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi,
Sergiu Dumitriu wrote:
This is really strange. The Next button should have become active when selecting "I agree". Better ask this on one of the Eclipse channels. Try #eclipse on IRC.
Not a precise answer there, but to speak with others always helps!
FYI... https://bugs.eclipse.org/bugs/show_bug.cgi?id=277265 https://bugs.eclipse.org/bugs/show_bug.cgi?id=239689 Greetings, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
participants (5)
-
[Ricardo Rodriguez] Your EPEC Network ICT Team -
Asiri Rathnayake -
Leon Wang -
Sergiu Dumitriu -
Thomas Mortagne