Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 20468 invoked from network); 31 Jan 2007 06:36:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 06:36:08 -0000 Received: (qmail 69465 invoked by uid 500); 31 Jan 2007 06:36:14 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 69416 invoked by uid 500); 31 Jan 2007 06:36:14 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 69400 invoked by uid 99); 31 Jan 2007 06:36:14 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.67] (HELO cocoon.zones.apache.org) (140.211.11.67) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jan 2007 22:36:13 -0800 Message-ID: <22330755.1170225347551.JavaMail.daisy@cocoon.zones.apache.org> Date: Wed, 31 Jan 2007 06:35:47 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: How to mount the Cocoon 2.2 projects in Eclipse Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1214.html Document ID: 1214 Branch: main Language: default Name: How to mount the Cocoon 2.2 projects in Eclipse (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 1/20/07 1:35:38 PM Updated by: Reinhard P=C3=B6tz A new version has been created, state: publish Parts =3D=3D=3D=3D=3D Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 1506 bytes (previous version: 1569 bytes) Content diff: =20 ---

After checking out Cocoon 2.2, see the Quickst= art --- page, you can mount the projects in Eclipse.

+++

After following the Working with Cocoon 2.2 fr= om +++ trunk page you can mount the projects in Eclipse.

=20

From the directory where you installed Cocoon trunk, we refer to it = as --- /trunk, run mvn eclipse:clean first to remove any left over eclipse fil= es. Then --- run mvn eclipse:eclipse.

+++ /trunk, run

=20 ---

Next go to eclipse, and make sure you haven't got trunk mounted as a= project +++

mvn eclipse:clean=20
+++ 
+++=20 +++

first to remove any left over eclipse files. Then run

+++=20 +++
mvn eclipse:eclipse
+++=20 +++

This creates classpath and .project files for each= module. +++

+++=20 +++

Next start Eclipse and make sure you haven't got trunk mounted as a = project already. Also remove .classpath and .project files po= ssibly --- remaining in /trunk from a previous project mount. Do File-Import->E= xisting --- projects into workspace, then point to your /trunk directory and it sho= uld --- detect the newly created blocks as projects.

+++ remaining in /trunk from a previous project mount. Do +++ File-Import->Existing projects into workspace, then point t= o your +++ /trunk directory and it should detect the newly created blocks= as +++ projects.

=20

Note that you need to declare the M2_REPO classpath v= ariable in --- your workspace, it should point to your local m2 repository.

+++ your workspace, it should point to your local m2 repository. The Maven = eclipse +++ plugin offers a goal for this purpose: mvn eclipse:add-maven-repo +++ -Dworkspace=3D[path-to-your-local-maven-repo]

=20 ---

You can also get Eclipse to download the sources of the dependent li= braries --- and attach them to the jars in Eclipse :

+++

You can also get Eclipse to download the sources of dependent librar= ies and +++ attach them to the jars in Eclipse :

=20 ---
$ mvn -Declipse.downloadSources=3Dtrue eclipse:eclipse
+++
$ mvn -DdownloadSources=3Dtrue eclipse:eclipse
=20 ---

For further information about the maven eclipse plugin visit --- http://maven.apache.org/plugins/maven-eclipse-plugin/.

+++

For further information about the Maven Eclipse plugin visit +++ http:= //maven.apache.org/plugins/maven-eclipse-plugin/. +++

=20 ---

Note below should be evaluated and either removed if= untrue or --- incorporated in the text above.

---=20 ---

Normally it would have been sufficient to just run mvn --- eclipse:clean eclipse:eclipse but a bug in the plugin prevents it = from --- generating correct eclipse project references during a reactor build if= the --- projects are not installed during the same run.

---=20