Hi list,
I would like to know if someone has a full explanation about how to
setup eclipse to develop on magnolia.
This is my way to do it but I hope that someone could complete it to
make it works.
Developping environment:
OS: Windows XP Pro
Application server: Tomcat 5.0
Java version: jdk1.5.0_08
Maven version: 2.0.5
Eclipse version: Eclispe WTP all in one 3.2
- Checkout the branch 3.0.2 of magnolia (current stable version)
- In this new directory, create a new one called "magnolia-module-dms"
- Check out the branch 1.1 of the module dms (current stable version)
- Go to the main directory and edit the pom.xml file, add the line below
at the end of the file the module dms between the tags <modules></modules>:
<module>magnolia-module-dms</module>
- Then open a command window, and type mvn install:install-file
-DgroupId=javax.jcr -DartifactId=jcr -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/jarfile
- Then type mvn -U eclipse:clean eclipse:eclipse -Dwtpversion=1.5
- Open Eclipse WTP, import the project by right clicking on the project
explorer window. Click on "Import"->"Import..." and choose "Existing
Projects into Workspace".
- Then browse to the directory where magnolia has been checked out,
finally click on Finish.
- Then in eclipse in the "window" menu, choose "Preferences..", browse
to this path Java->Build Path->Classpath Variables, add a new variable
called M2_REPO and point to the directory "repository" in your ".m2"
directory commonly placed in Documents and Settings of your user.
- Add a new server by choosing tomcat 5.0 and jdk1.5.0_08.
- Then edit the configuration of your server.
- Add this argument -Xmx750M to avoid "out of memory" issues
- Start your server.
For those who could complete it, don't hesitate.
Regards,
CAPITAINE Harold
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------