Import and link maven jar projects to debug

You now have a complete "virtual" XE you can run from Eclipse and where your can edit web files.

We will now see how to link XWiki jar projects (xwiki-core, plugins...) to this XE instance to be able to edit java using all Eclipse tools.

Import Jar project

  • Start Import wizard
import-1.jpg


  • Select Maven Projects
  • Click buttonnext.jpg
import-2.jpg


  • Select root folder of project you want to import
  • Click buttonfinish.jpg
import-3.jpg

Enable AspectJ (xwiki-core)

Since M2EClipse 0.9.4, you have nothing to do except install the Maven Integration for AJDT. The project is automatically configured.

Link Jar project to the web project

Since M2Eclipse 0.9.4, you need to install Maven Integration for WTP you just have to add it as dependency in the pom.xml file of the project xe-debug

Now each time you modify and save file in your project it will be automatically built and published on the server.

Warning: There seems to be a bug in WTP/JST 2.0.2 that makes (at least) Tomcat failed to correctly republish modified java code in debug mode. To fix this you have to go to Servers project and edit server.xml file. At the end of the file, replace reloadable="true" with reloadable="false".

previous | home | next

Version 39.1 last modified by ThomasMortagne on 29/07/2008 at 15:15

Comments 0

No comments for this document

Attachments 6

Image
link-2.jpg 1.1
PostedBy: ThomasMortagne on 11/04/2008 (49kb )
Image
link-1.jpg 1.1
PostedBy: ThomasMortagne on 11/04/2008 (24kb )
Image
aspectj-1.jpg 1.1
PostedBy: ThomasMortagne on 11/04/2008 (28kb )
Image
import-3.jpg 1.1
PostedBy: ThomasMortagne on 11/04/2008 (22kb )
Image
import-2.jpg 1.1
PostedBy: ThomasMortagne on 11/04/2008 (25kb )
Image
import-1.jpg 1.1
PostedBy: ThomasMortagne on 11/04/2008 (19kb )

Creator: ThomasMortagne on 2008/04/09 15:59
This wiki is licensed under a Creative Commons license
1.5.2.12758