Despite a bunch of Wiki pages and threads on the mailing list, I cannot setup Magnolia in Eclipse/WTP. Any help gladly appreciated! Here's what I do:

Setup:
- Mac OS X
- Java 1.5
- Tomcat 5.5
- Eclipse 3.2 with WTP 1.5

I failed building trunk and 3.0.2 (despite manual integration of 3.0.1 dms module). So I thought, that I should _first_ get thinks (WTP) working with 3.0.1 w/o any hacks. Here's what I did:

1. Delete maven repo folder
        % rm -r ~/.m2
        
2. In Eclipse checkout magnolia tag 3.0.1
        - Window > Open Perspective > SVN Repository Exploring
- If repository does not exist: Add repository "http:// svn.magnolia.info/svn/magnolia
        - Open repository
        - Open tags
        - Ctrl-click (right-click) on magnolia-3.0.1 and select checkout
        - Choose "Check out as a project in workspace" and hit "Finish"
        - Close eclipse

3. Install JCR
        % cd magnolia-3.0.1
% mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr - Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file

4. Build the project on the command line
        % mvn clean install
        
5. Try to convert it to an eclipse web project
        % mvn eclipse:clean -Dwtpversion=1.5
        % mvn eclipse:eclipse -Dwtpversion=1.5 -DdownloadSources=true

6. Back to Eclipse again
        - Start it up
        - Update the project
- Ad a classpath variable "M2_REPO" pointing to your .m2 folder (Windows > Preference > Java > Build Path > Classpath Variable)
        => Project is still not a WTP project!!!
It's the "magnolia" subproject that should turn into a WTP project, right?

Then I created a dynamic web project using the wizzard and tried to figure out the differences. Unfortunately I did not find the problem. Could anyone tell me what I'm doing wrong?

Thanks a bunch!

-Will

P.S.: It builds fine with maven on the command line. I end up with a working "magnolia-3.0.1.war" under magnolia/target. I must assume however that the mvn eclipse:eclipse command does not do its job.

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to