What version of Eclipse are you using? I've verified the following works:
*These instructions were written using Eclipse 3.2.2 on OS X.*
1. To create project files for Eclipse, run *mvn eclipse:eclipse* from
the root directory.
2. Launch Eclipse and go to *File* > *Import* > *Existing Projects
into Workspace* (under the General category). Select the root
directory of your project, followed by the modules to import. Click *
Finish* to complete the process.
3. Eclipse needs to know the path to the local Maven repository.
Therefore, you must set the classpath variable M2_REPO. You should be able
to do this by executing the following command:
mvn -Declipse.workspace=C:\Source eclipse:add-maven-repo
After running this command, you'll need to restart Eclipse for it to take
effect.
If running this command doesn't work, can also define a new classpath
variable inside Eclipse. From the menu bar, select *Window > Preferences*.
Select the *Java > Build Path > Classpath Variables* page and set
*M2_REPO*to equal
*~/.m2/repository* (c:\Document and Settings\yourusername\.m2\repository on
Windows).
If this doesn't work - I suspect you're using an older version of Eclipse.
Matt
On 4/17/07, nmall <[EMAIL PROTECTED]> wrote:
Hi,
I am trying to setup my appfuse project in eclipse. Did the following
mvn eclipse:eclipse in the root directory of my project
Set M2_REPO as required in the classpath in Eclipse
However, when I try to import existing projects into workspace using
File->Import->Existing Projects into workspace-> Selct root directory
even when I give the root directory of hte project, it doesn't let me do
anything more except to the "Back" button.
I have managed to get a dummy maven project setup for debugging as
suggested
in one of the tutorials but it gives me 59 errors "Project testapp is
missing required library" for each library under ~/.m2/repository.
Any help with this is much appreciated.
Thanks!
--
View this message in context:
http://www.nabble.com/Eclipse-Appfuse-project-errors-tf3598842s2369.html#a10051800
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com