JG Flowers wrote:
I've just started using Maven2 whilst reading Ian Roughleys Struts 2 book by
Apress, and am a novice Eclipse user. I was wondering if someone can tell me, does one still have to setting jars
manually in an Eclipse project, or does  the Maven plugin extract all this
stuff out of the pom.xml?

I say thing because I'd like to debug some of Ian's code, and was trying to
figure out the easiest way to import his code into an Eclipse project and
get stuck in debugging the code.

Is there a tutorial that covers this kind of stuff someone can point me too?


m2eclipse will download all dependencies from maven repositories and automatically setup eclipse project classpath according to pom.xml. This page explains how to import maven projects into m2eclipse workspace

http://docs.codehaus.org/display/M2ECLIPSE/Importing+Maven+projects


A couple of other questions spring too mind whilst I am at it:

1) The Maven console initially complained the JRE being used wasn't a JDK
version, so I've modified the shortcut so it passed the vm in via a path to
JDK version, but was wondering can this also be setup in the eclipse.ini
file.

This page explains why m2eclipse needs full JDK and how to configure it

http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-UnabletolocatetheJavacCompilerError


2) When I pointed Eclipse to  the update site, I had problems installing the
full set of download. It specifically complained about AJDT plugin say
version was incompatible with my install. Maven Integration for AJDT (Optional) (0.9.4.20080603-0114) requires plug-in "org.eclipse.ajdt.core". Will I need this? Only when I look at error details it says: Requested operation cannot be performed because it would invalidate the current configuration. Is this plug-in "behind the times"?

m2eclipse provides optional AJDT integration that will automatically configure AJDT projects based on aspectj-maven-plugin configuration from POM. You do not need this unless you plan to use AJDT and aspectj-maven-plugin.


Maven SCM handler for Subclipse (Optional) (0.9.4.20080603-0114) requires
plug-in "org.tigris.subversion.subclipse.core".
(I don't care so much about this one)

You do not need this unless you plan to use subclipse to access SVN repository.


I believe I took the JEE edition from http://www.eclipse.org/downloads/moreinfo/compare.php here with as many
Java goodies pre-configured as possible.
I've got the Eclipse Europa Install (I think this is the patched Winter
edition) Version: 3.3.2
Build id: M20080221-1800


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to