Greetings, xwicaforrica.
On 8/22/07, xwicaforrica@gmail.com <xwicaforrica@gmail.com
> wrote:Greetings!
I'm currently working on my master thesis, I've chosen XWiki as the wiki system that will support my platform.
I used the Windows Installer in http://www.xwiki.org/xwiki/bin/view/Main/Download and easily set up a local xwiki instance, in order to explore it and learn how it works.
But I shall probably have to adapt or create some functionality related to the Audit requirements I have defined (I'll save this for future posts ;) ), so I'd like to set up a development xwiki project using Eclipse.
I followed the instructions in http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse: I checked out the source from the trunks-devs, ran mvn eclipse:eclipse and created a new eclipse workspace, which I included in a new variable M2_REPO.
Make sure that, for every one of the projects you imported (platform-core, platform-web, etc.) you have the M2_REPO variable defined correctly within the build path (right click the project > build path > configure build path ... > libraries tab > add variable; don't mind if it says that "Variable points to a directory; use Extend blah, blah", just check that the path inside the variable points to where your local maven repository is <check maven settings for that> and click the cancel button <the variable will still be there next time you open, even on cancel> -- hope that these indications work in a similar way on windows as on mac)
Finally I created a java project and did an import from the folder with all the code (xwiki-platform-tools, xwiki-platform-core, xwiki-platform-web, xwiki-platform-plugins and the others). The result was 22070 errors and 390 warnings in the 'Problems' tab!
Ran into similar problems, and the first and best advice I could give
you is: make and import projects of only what you need
(xwiki-platform-core might suffice) - this should reduce the number of
errors. Warnings shouldn't bother you right now. I am currently working on a 100 warnings set up, and have had no issues this far.
I think I must have missing something related to the building process.. being my first experience with eclipse, besides the tutorials, surely doesn't help!
Could you guys help me?
The build process has been entirely switched to maven a couple of months back, so running ant as it point out on the Building In Eclipse page that you referenced (which is, btw, outdated) might not work. Use "mvn install" in the directory you want to build (any directory with a
pom.xml file will do), and see if that spits out any errors (which it should not).
Thanks in advance and congratulations for the xwiki platform. I hope I can contribute with some code or plugins :)
Best regards,
Ricardo Pinto.
Ps: By the way, I'm using Windows XP, Eclipse 3.2, JDK 1.5.10
, Tortoise SVN (and will use mySQL after setting up the IDE environment).
Might be a good idea to also list some of the errors from the problems view (there are not 22070 individual errors, just groups of the same error - so list the summary of those groups).
Have fun coding,
Radu