I'm pretty sure you'll be able to continue doing all of the usual eclipse stuff 
everyone is used to doing.  I also use WTP and have a tomcat server running 
under/in eclipse that I fire up to test my jsps and whatnot.

What bothers me about the m2eclipse plugin is that it's not obvious, to me at 
least, who's doing what and when.  For example, you'll have maven menu items 
for doing the usual maven things; compile, package, test, etc.  But what 
happens when I click on the eclipse build button?  Is that doing a maven build 
or just an eclipse build?  Likewise with a clean?  I have my rituals when using 
the tomcat under eclipse; for example, I try to remember to always stop it 
before I click on the build button; at some time in the past it didn't always 
see the changes.  And I'm not sure if doing a maven build in eclipse (from the 
maven menu) will update the files tomcat uses.

So the reason I think it's better to start with the command line is so that 
you'll have a better understanding of what you're doing and why.

Checking out a maven project into eclipse from svn simply means that the 
project was set up as a maven project before you committed to svn; it has a 
pom.xml, the correct directory structure, etc.  If you want to start a 
mavenized eclipse project from scratch, use the archetype thing.  That's quite 
nice for hitting the ground running.


Steve Cohen wrote:
Thanks, Rusty.

I am thinking about this very carefully, and the option of not using Maven at all is still in play. So is the option of using Maven ONLY to grab third-party dependencies into a local repository. Another option is to use Eclipse's build functionality "headlessly", from the command line, without Maven. This capabilty exists in Eclipse, although it's not well publicized.

A key goal of mine is to keep local developer builds in Eclipse working pretty much as they have. Directories may have to move to accomodate Maven standards, but I still want to be able to compile and run my Mavenized projects as well as pieces thereof inside Eclipse. In other words, the "Java Build Path", natures, etc. in Eclipse will still be operative and the capabilities of running java apps from the command line, and web apps through WTP will still exist. This is the reason for my perhaps misguided intention of working through m2eclipse.

What's keeping me undecided is the lack of an assertion from anyone that when I am done, my Mavenized projects will be able to be used this way. Can someone tell me definitively that that's possible? If not, I may be wasting my time.
Once you have your project working from the command line, then commit it to svn, then in eclipse check it out from svn as a maven project.
Can you tell me what "checking out as a maven project" actually entails? I tried this on a non-maven project, thinking that it might generate all the maven framework for me, a skeleton POM or something, that I would have to complete. This did not work. It sounds like the right path is to command-line-mavenize, check-in, and then check out as a maven project. I guess I need to understand what a "Maven project" in Eclipse is. I suppose I should generate one from scratch and compare to an existing project.

I think eclipse doesn't like or support nested projects. If you use the nested directories layout, when you import it into eclipse I think the m2eclipse does some voodoo behind your back, rearranging things to make eclipse happy. For me it was a bit more transparent having the modules as parallel projects in eclipse.

I already work this way in Eclipse. No nested projects. So this shouldn't be a problem



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to