Maven and Eclipse are tricky to get together well.

I use m2, and from time to time I've lost hours of otherwise productive time
trying to figure out why things were not working. I could name a lot of
issues, like dependency problems and removed compiled classes that weren't
being rebuilt.

Sometimes a simple right click + Disable Maven + Enable Maven would suffice,
sometimes it won't.

Not to mention the _REALLY_ annoying issue that m2 only build the correct
eclipse project if the project compiles successfully. That means that if
your 300+ class project has a single little tiny problem, you don't get an
eclipse project with the correct source directory.

This is by far something that would make me switch to q4e if it doesn't have
the problem.

Speak up there people! Let's see if we can get Eclipse + Maven more
productive with some input.
Who knows, maybe the a m2 hears my cry and helps us out =o)

Yours,
Rodrigo Madera


On 9/14/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
>
> I haven't had the time/inclination to try out q4e yet.  I didn't like m2
> when I tried it a few weeks ago, though.  I'd be interested to see what
> people think of q4e so far...
>
>
> On 9/14/07, Rodrigo Madera <[EMAIL PROTECTED]> wrote:
> >
> > Since you brought that up, let me take advantage of this oportunity to
> ask
> > users:
> >
> > I have always used m2. How would that compare to q4e?
> >
> > Thanks,
> > Rodrigo
> >
> > On 9/14/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
> > >
> > > That's interesting - why separate locations?  To avoid having to
> refresh
> > > in
> > > Eclipse when a maven build is run?
> > >
> > > On 9/13/07, Jim Sellers <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I've had the most success with using maven and eclipse by:
> > > > 1) having both systems build to a separate locations
> > > > 2) using command line to run maven and when I need to sync up
> metadata
> > > > using
> > > > eclipse:eclipse then hitting refresh in eclipse.
> > > > 3) for any eclipse specific data (.classpath, .mymetadata, etc),
> > having
> > > > those are part of the .cvsignore (not checked into source control)
> > > >
> > > > Not against anyone who has worked on the m2e or q4e plug-ins, but
> when
> > I
> > > > tried any plug-ins that were available close to a year ago (?) I had
> > > > troubles.  I still have not found a reason to move away from the
> > command
> > > > line.
> > > >
> > > > Jim
> > > >
> > > >
> > > > On 9/13/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I'm recently involved in an SAP NWDS (NetWeaver Dev Studio)
> project
> > at
> > > > > work. NWDS is really just Eclipse 2.1 with some SAP-specific stuff
> > > > > added.
> > > > >
> > > > > Among the things they took away in this customized Eclipse is the
> > > > > ability to add plugins etc the usual way through the menu system.
> > > > >
> > > > > I'm wondering if anyone else is "stuck" using NWDS and if there's
> > any
> > > > > chance to use m2e or q4e etc with this tool?
> > > > >
> > > > > Wayne
> > > > >
> > > > > On 9/13/07, Alexander Sack <[EMAIL PROTECTED]> wrote:
> > > > > > Is there any reason why you don't use a Maven/Eclipse plugin
> such
> > as
> > > > > > m2eclipse and now q4e?  They integrate fully into Eclipse's
> build
> > > and
> > > > do
> > > > > > autodependency management.  Also have you setup a CLASSPATH
> > > Container
> > > > > > variable within Eclipse in order to use your local M2
> repository?
> > > > > >
> > > > > > See here:
> > > > > >
> > > > > >
> http://maven.apache.org/plugins/maven-eclipse-plugin/reactor.html
> > > > > >
> > > > > > And for plugins:
> > > > > >
> > > > > > http://m2eclipse.codehaus.org/
> > > > > > http://code.google.com/p/q4e/
> > > > > >
> > > > > > -aps
> > > > > >
> > > > > > On 9/13/07, zm <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Can anyone help me with the best way to setup a Maven/Eclipse
> > > > > environment?
> > > > > > > I
> > > > > > > know there is a goal to produce an eclipse project with the
> pom,
> > > but
> > > > > I'm
> > > > > > > trying to understand how to create one at hand, customise and
> > > > include
> > > > > it's
> > > > > > > dependencies.
> > > > > > >
> > > > > > > I have created 2 projects, "appTest" and "appCommon". The main
> > > > project
> > > > > is
> > > > > > > "appTest" that depends on "appCommon".
> > > > > > >
> > > > > > > The source directories are the default Maven (src/main/java)
> and
> > > > that
> > > > > > > directory is configured as "source" in eclipse, so it can
> > compile
> > > > the
> > > > > > > code.
> > > > > > >
> > > > > > > Then I've configured a specific directory "build" (same level
> as
> > > the
> > > > > "src"
> > > > > > > above), that eclipse will use to put the compiled classes
> (this
> > > > folder
> > > > > > > will
> > > > > > > be ignored for SVN/CVS integration).
> > > > > > >
> > > > > > > Everything looks great, and works nicelly. Or so it seems ...
> > > > > > >
> > > > > > > No let's say I put a dependency on version Log4J 1.0. I make
> > some
> > > > code
> > > > > > > accessing it, then eclipse will just mark it as invalid, since
> > the
> > > > > Log4J
> > > > > > > is
> > > > > > > not in it's classpath. Maven, on the other end, downloads it
> > from
> > > > > central
> > > > > > > repository and compiles successfully.
> > > > > > >
> > > > > > > Now what would be the best way to put it to compile in
> eclipse?
> > > > > > >
> > > > > > > The way I see it, I can include it in the project's classpath,
> > and
> > > > > point
> > > > > > > it
> > > > > > > to the local repository jar that maven just downloaded.
> > > > > > >
> > > > > > > Would this be the best option?
> > > > > > > --
> > > > > > > View this message in context:
> > > > > > >
> > > > >
> > > >
> > >
> >
> http://www.nabble.com/Eclipse-and-Maven-%22best-practice%22-tf4436040s177.html#a12655883
> > > > > > > Sent from the Maven - Users mailing list archive at Nabble.com
> .
> > > > > > >
> > > > > > >
> > > > > > >
> > > >
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > "What lies behind us and what lies in front of us is of little
> > > concern
> > > > > to
> > > > > > what lies within us." -Ralph Waldo Emerson
> > > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> > If Jack Bauer had been a Spartan, the movie would have been called "1".
> >
>



-- 
If Jack Bauer had been a Spartan, the movie would have been called "1".

Reply via email to