Hi,

Gabriela Lussu a écrit :
Hi everybody
I was evaluating Nuxeo for an important new project for my firm, but in a week of trials we weren't able to set up a working development environment for Nuxeo EP on Eclipse (on WinXP Pro SP2). I'll describe precisely all steps I followed, but if anybody here was able to set the development environment in Windows, and could explain to me how to do the same, it would be enough!

I started, step by step, with the instructions in file http://svn.nuxeo.org/nuxeo/doc/nuxeo5-dev-quickstart-howto.txt, and everything was fine up to point "6.2 - Deploying". I logged in as Administrator into http://localhost:8080/nuxeo, and it worked.

My next goal was to set up Eclipse as a development environment for Nuxeo, so I followed instructions in chapter 7 - "Installing Eclipse".

I installed Eclipse 3.2 and all required plugins (Subversive, Maven2, AnyEdit, JBossIDE), and then followed chapter "8.6 - Eclipse configuration".

In chapter 9 - "Load / checkout the org.nuxeo.* projects into eclipse", it is written: "Then go back to the Java perspective and import the projects you have previously checked out as eclipse projects:
File > Import > General > Existing Projects Into Workspace"

I set up as projects root the folder nuxeo-ep, where I had checkout http://svn.nuxeo.org/nuxeo/nuxeo-ep/trunk.

Eclipse imported all projects from the trunk, but it showed some errors because of some missing projects.

So I referred to "Checking out all NX projects" from file https://svn.nuxeo.org/nuxeo/tools/eclipse-config/README.txt.

I thus imported file https://svn.nuxeo.org/nuxeo/tools/eclipse-config/NXPlatform-subversive.psf, but I had a feeling I had created a mess.

Then I tried to exchange the order of those two steps (of course, I started all over again from a clean workspace with a checked out nuxeo-ep):
- I imported java.sun.com/jstl/core c:if else
https://svn.nuxeo.org/nuxeo/tools/eclipse-config/NXPlatform-subversive.psf,
- I selected File > Import > General > Existing Projects Into Workspace using as root nuxeo-ep folder.

I have the same environment (Windows...)
The better thing to do is the version :
- svn co http://svn.nuxeo.org/nuxeo/nuxeo-ep/trunk
- Open Eclipse in the Workspace checkouted
- Import existing projects into Workspace

After important things to do :

(Maven and Ant have to be installed in your environment)
- modify build.properties in root directory to specify the jboss dir
(from a cmd in your root project directory)
- mvn -Dmaven.test.skip=true install
(You have to be connected to internet)
- ant clean (don't forget ANT_OPTS=... in your environment)
- ant (if you want to deploy)
(In Eclipse, projects present Maven Dependency with all jars needed)
- Check in Eclipse "Window/Preferences.../Maven2" if the location of the repository is good.
- do a "clean all projects" in Eclipse

Is it good now ?


But there were sif the location of the repository till "... cannot be resolved" errors, which I tried to fix "manually".

At last, I came to a set up with "just" one error left: "The import sun.awt.motif cannot be resolved".

Even if I couldn't fix that one, I tried to follow steps from "10 - Deploying from eclipse", where it says:

"Then drag and drop the ``build.xml`` of the ``org.nuxeo.ecm.webapp`` to the ant view and then trigger the following target named ``deploy-ecm-all``."

I did that, but got this error message:

"Buildfile: C:\nuxeo-ep\org.nuxeo.ecm.webapp\build.xml

BUILD FAILED
C:\nuxeo-ep\org.nuxeo.ecm.webapp\build.xml:6: Could not create task or type of type: urn:maven-artifact-ant:pom.

Ant could not find the task or a class this task relies upon."

I'm afraid that this problem isn't only caused by the missing import of awt. I'd like to know if I followed the right steps (that's why I wrote them all down), in the right order, or if there was something missing.

Thank you very much for reading all this stuff!

Ciao
Gabriela


Benjamin

_______________________________________________
ECM mailing list
[EMAIL PROTECTED]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to