Warz
Warz

Reputation: 7766

Share Maven Dependencies with team members using Mercurial

I want to share all the External Jars currently being managed by MAVEN with my other team members. I am using Mercurial as my SCM and i am trying to figure what is the easiest way to commit my entire project (include libs) to a repository so that my team members can clone and get running without severe eclipse configuration?

Upvotes: 0

Views: 234

Answers (1)

Andy Petrella
Andy Petrella

Reputation: 4345

Maven is there in order to help you retrieving libraries. So that, all you have to do is to commit all your files including the pom.xml (.hg should contains everything in target, and other unrelevant files)

Then your project members can pull the sources and run mvn eclipse:eclipse (see eclipse & maven.

And finally import the project in Eclipse.

That was is they need sources...

If they only need the jars, you must put in your infrastructure a company repo that will handle your deployment using mvn deploy. Some information there maven repo::Intro, take special care at the wagon you could use (ftp, ...)

This way, when you're done with your devel and you have pushed your code, you just have to deploy the jar on your repo.

Doing so, your project member'll have to run mvn -U eclipse:eclipse or any goal to update their local repository with your lastest deployed version.

Upvotes: 2

Related Questions