Hi,

I thought I'd let you know how I'm using m2eclipse, maven and eclipse, since it might save you some time and alternatively, someone else might be able to say whether it's worth going further. I'm under intense pressure to get a project finished so I haven't had time to upgrade from 0.0.12 to 0.9.x, and (correct me if I'm wrong) m2eclipse and WTP integration needs to go a little further before it's worth relying on m2eclipse for webapps - unless you're beta testing.

I haven't set up a project from scratch for a long time, so this is from the point of view of an existing project: to set up a webapp in a servlet container in eclipse, I turn off the m2eclipse dependency management, and set up eclipse jar libraries pointing to jars in the maven repository on my hard drive. This works fine when you mark them as J2EE Module Dependencies in the project properties.

In 0.0.12, parameter substitution in resource files doesn't work - it has been implemented in 0.9.4 but I don't have the time to risk investing in it yet.

The set-up as I've described it here allows me to work on the webapp in container with hot-deploy of changed classes and JSPs and debugging.

The slight downside is needing to keep the eclipse libraries in sync with the pom dependencies.

HTH
Adam

JG Flowers on 20/06/08 19:10, 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?

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.

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"?

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) 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