Re: Maven using eclipse
With the latest version of the eclipse maven plugin, you can import a pom directly into eclipse without the command line step. If you then just close the eclipse project your not using, the dependencies will automatically change from the eclipse project to the last published version in your repository. Hope that helps. John On 22 May 2012 10:57, josipj jos...@hotmail.com wrote: Hi, I was wondering if there is a feature in maven which helps with the following. Suppose I have 20 projects in eclipse. The projects I'm not using I delete from eclipse. But every now and then I need to import them and it's dependencies. Does maven have a feature in which you can say with mvn eclipse:eclipse I'm working in this project create the dependencies for me automatically. When I'm importing the project I want to work on and only import those projects which are needed. Josip -- View this message in context: http://maven.40175.n5.nabble.com/Maven-using-eclipse-tp5709408.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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
Re: Maven using eclipse
Another option is a multiproject layout. Guess you have the following layout in svn/git: -- project a - dependency a -- dependency a-2 - dependency b -- project b depdendency c If you checkout project a you receive the dependencies and can right click on it and import existing maven modules. This will create all the projects for dependency a, a-2 and b. On Tue, May 22, 2012 at 12:39 PM, John Patrick nhoj.patr...@gmail.comwrote: With the latest version of the eclipse maven plugin, you can import a pom directly into eclipse without the command line step. If you then just close the eclipse project your not using, the dependencies will automatically change from the eclipse project to the last published version in your repository. Hope that helps. John On 22 May 2012 10:57, josipj jos...@hotmail.com wrote: Hi, I was wondering if there is a feature in maven which helps with the following. Suppose I have 20 projects in eclipse. The projects I'm not using I delete from eclipse. But every now and then I need to import them and it's dependencies. Does maven have a feature in which you can say with mvn eclipse:eclipse I'm working in this project create the dependencies for me automatically. When I'm importing the project I want to work on and only import those projects which are needed. Josip -- View this message in context: http://maven.40175.n5.nabble.com/Maven-using-eclipse-tp5709408.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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
Re: Maven using eclipse
Why? It is always a good question to start with. What Maven Repo are you using? There is usually no need to have a project open in Eclipse to use the project's output (jar) in another project. Eclipse and Maven will automatically get the imported dependencies from any artifact that you declare as a dependency (including your own) in the POM. We have 60+ Eclipse projects in our SCM but a developer would normally only checkout the ones that he/she is working on. The other dependencies would be loaded from our Nexus repo as Maven does the builds. Ron On 22/05/2012 5:57 AM, josipj wrote: Hi, I was wondering if there is a feature in maven which helps with the following. Suppose I have 20 projects in eclipse. The projects I'm not using I delete from eclipse. But every now and then I need to import them and it's dependencies. Does maven have a feature in which you can say with mvn eclipse:eclipse I'm working in this project create the dependencies for me automatically. When I'm importing the project I want to work on and only import those projects which are needed. Josip -- View this message in context: http://maven.40175.n5.nabble.com/Maven-using-eclipse-tp5709408.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org