On Sun, 30 Oct 2005, Franck de Bruijn wrote: Frank's correct. The maven plugin for eclipse has support to add dependencies from within eclipse. However it's not ready for prime time yet.
I usually just leave eclipse running and m2 install; m2 eclipse:eclipse and refresh the projects in eclipse; works like a charm. You can also add an 'external command' in eclipse, and enable 'refresh workspace' on finish. That way you only have to press one button in eclipse to update all your project with the new pom contents. You still have to edit the pom though :). -- Kenney > I'm definitely neither the Maven nor the Eclipse expert, but let me give it > a go: > > If I understand correctly you are looking for a seamless integration between > Eclipse and Maven. I read somewhere that Jason van Zyl is working on an > Eclipse plugin (something like MevenIDE); I have no idea if what you are > describing here is in the scope of that plugin. > > Also you might try to refresh the projects after having run the > eclipse:eclipse command. If that doesn't work, try deleting your projects in > Eclipse (make sure that you indicate to 'NOT delete your contents') and > Import them again. But, in this case, maybe restarting Eclipse is an easier > way out! > > On the other hand, I don't think that dependencies of a project are changed > regularly. Normally you set those up in the beginning of a project and maybe > in the future you adapt them for newer versions of the libraries. In this > light, I consider the need for restarting Eclipse not that big an issue. > > Cheers, > Franck > > > > -----Original Message----- > From: Siegfried Heintze [mailto:[EMAIL PROTECTED] > Sent: zondag 30 oktober 2005 7:59 > To: 'Maven Users List' > Subject: Restarting Eclipse 3.1.1 to add dependencies to m2? > > I'm using maven 2 and eclipse 3.1.1. > > Here is what I am doing and it works but it is tedious: > (1) I go to the repository browser and find the artifacts I want. > (2) I manually add the groupIds and artifactIds to the pom.xml > (3) I exit eclipse > (4) I run "mvn package" > (5) I run "mvn eclipse:eclipse" > (6) I start up eclipse again and observe the new artifacts in package > explorer. > > Is there an easier way? It seems to me that I should be able to drag and > drop from the repository browser to the pom.xml and the package explorer > should automatically download the new artifacts. Do I really have to restart > eclipse all the time? > > Thanks, > Siegfried > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
