You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Mike Kienenberger <mk...@gmail.com> on 2006/01/13 22:53:04 UTC

Eclipse and Maven -- [Was: Re: Maven Build (Ongoing Work Thread)]

Bill, Werner, Matthias, (and anyone else),

Do you have any more information on how you've gotten the mavenized
MyFaces to work with Eclipse 3.1.1?


So far, I've tried the process listed at the following url, but it
seems to be for creating new multiprojects.

http://maven.apache.org/guides/mini/guide-ide-eclipse.html


I've run the following command, but it appears to be a no-op, so I
manually added E:/maven/repository as an eclipse variable for M2_REPO,
and that works.

mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo


I've tried using the m2eclipse plugin, which seemed to help find
dependencies at one time, but now I'm not so sure if it really added
any value.

I've finally manually moved the api, impl, commons, tomahawk, and
sandbox directories directly into my workspace and created a new
project on top of them (which parsed the existing project), then
running "mvn eclipse:clean" and "mvn eclipse:eclipse" on each
directory while the project was closed.

This has gotten me working api, commons, and impl projects.   But it
failed to create .project files for tomahawk and sandbox.

-Mike

On 1/5/06, Bill Dudney <bd...@mac.com> wrote:
> Hi Matthias,
>
> AFAIK there is no way to make a multi-module maven project into a
> single Eclipse project.
>
> I find though once I got over the initial irritation at the multi-
> project approach I did not mind so much. Make sure to use a working
> set so that you don't always have to look at the list of jar files.
>
> Another thing to take a look at is the Maven2 plugin for Eclipse.
> I've been using it for a couple of days and so far so good.

Re: Eclipse and Maven -- [Was: Re: Maven Build (Ongoing Work Thread)]

Posted by Mike Kienenberger <mk...@gmail.com>.
Hmm.   I couldn't get the tomahawk and sandbox stuff to work without
manually setting up the source paths.

And if I'm manually setting up two of the sub-projects, it might make
more sense to just set up everything in one project manually.

I'll be interested in hearing what Bill and Matthias are doing...

Having all of the dependencies automatically detected and assigned was
cool.   I wonder how hard it would be to create a maven plugin to do
this recursively rather than working with multiple projects.

-Mike

On 1/13/06, Werner Punz <we...@gmx.at> wrote:
> Mike Kienenberger schrieb:
> > Bill, Werner, Matthias, (and anyone else),
> >
> > Do you have any more information on how you've gotten the mavenized
> > MyFaces to work with Eclipse 3.1.1?
> >
>
> I have been toying around a little bit,
> well first of all doing an mvn eclipse:eclipse is probably the best way.
> Secondly forget about the Eclipse MVN2 plugin, it simply is too rough
> around the edges currently. Ignore it, although it is listed on the
> Maven2 site, in my opinion you waste too much time with it.
>
> Iafter the mvn eclipse:eclipse I imported all subprojects into eclipse
> via the external eclipse project import facility.
> Project files for eclipse and wtp should be there.
>
> I am using MyEclipse currently so I did a tad of target path adjustment,
> but the rest was basically as it is supposed to be with all project
> interdependencies set cleanly. (Btw. forget about the WTP in 1.0 it
> still is a desaster waiting for a Februar cleanup ;-) )
>
> If you want to test code it is probably the best to go into the examples
> project and link the sourcebase you want to edit into the project
> (Eclipse can do that, at least for source folders)
>
> another option probably is to use the maven archetype stuff to create
> a barebones jsf project and link the sources for quick hacking in there.
>
> If you have the latest svn plugin (subclipse 0.9.103 or something like
> it) installed svn should be no problem with this setup as well because
> at one of those versions checkout into finally was enabled and now does
> not conflict anymore with the mave master/sub project setup.
>
>
> I hope this helps ;-)
>
> As long as the Maven2 plugin is in its current state a combination of
> command line for the maven stuff and then an mvn eclipse:eclipse
> probably is the easiest way to go.
> Have in mind that the setup still is way easier than with the old ant
> configuration where you had to do everything yourself.
>
> Hope this helps Mike....
>
>

Re: Eclipse and Maven -- [Was: Re: Maven Build (Ongoing Work Thread)]

Posted by Werner Punz <we...@gmx.at>.
Mike Kienenberger schrieb:
> Bill, Werner, Matthias, (and anyone else),
> 
> Do you have any more information on how you've gotten the mavenized
> MyFaces to work with Eclipse 3.1.1?
>

I have been toying around a little bit,
well first of all doing an mvn eclipse:eclipse is probably the best way.
Secondly forget about the Eclipse MVN2 plugin, it simply is too rough 
around the edges currently. Ignore it, although it is listed on the 
Maven2 site, in my opinion you waste too much time with it.

Iafter the mvn eclipse:eclipse I imported all subprojects into eclipse 
via the external eclipse project import facility.
Project files for eclipse and wtp should be there.

I am using MyEclipse currently so I did a tad of target path adjustment, 
but the rest was basically as it is supposed to be with all project 
interdependencies set cleanly. (Btw. forget about the WTP in 1.0 it 
still is a desaster waiting for a Februar cleanup ;-) )

If you want to test code it is probably the best to go into the examples 
project and link the sourcebase you want to edit into the project 
(Eclipse can do that, at least for source folders)

another option probably is to use the maven archetype stuff to create
a barebones jsf project and link the sources for quick hacking in there.

If you have the latest svn plugin (subclipse 0.9.103 or something like 
it) installed svn should be no problem with this setup as well because 
at one of those versions checkout into finally was enabled and now does 
not conflict anymore with the mave master/sub project setup.


I hope this helps ;-)

As long as the Maven2 plugin is in its current state a combination of 
command line for the maven stuff and then an mvn eclipse:eclipse 
probably is the easiest way to go.
Have in mind that the setup still is way easier than with the old ant 
configuration where you had to do everything yourself.

Hope this helps Mike....