I use a similar setting, except that I use Dropbox for my repository (only two developers). Just follow these steps: m2eclipse (update site: http://m2eclipse.sonatype.org/sites/m2e ) and MercurialEclipse (update site: http://cbes.javaforge.com/update ), you can do everything in eclipse.
Create a maven project:
File → Create → Other → Maven Project
In Project explorer, right-click the new maven project
Team → Share Project ... → Mercurial → (leave the folder as is) Finish
Then create the .hgignore file in the project root:
In Project explorer, right-click the new maven project
New -> File -> File Name: .hgignore and Finish
.hgignore:
syntax: regexp target
Then you can make your first commit, but be careful: hg does not store empty folders in the repository, therefore, to preserve the maven folder structure without source code, you need to put the (empty) file in each empty folder, for a simple maven project without any Or sources it will be in folders:
- MyProject / SRC / Basic / Java
- MyProject / SRC / main / resources
- MyProject / SRC / Test / Java
- MyProject / SRC / test / resources
For example, I put a file with the name. Empty into it with the contents "this is a placeholder file, delete if there are other files in this folder"
If some of these folders are missing, your colleagues will see errors in eclipse if they import your project.
First commit:
In Project explorer, right-click the new maven project
Command → Commit ... → Select all and enter a commit message → Done
Now you can clone it into a bitbucket (I have no experience with a bitbucket).
Tell your colleagues to install two eclipse plugins and then they can get the repo through
File -> Create -> Other -> Check Maven project from SCM -> enter your repo url -> Done
And then you are good to go.