It is good practise to setup your own internal repository, as you might want deploy your company/personal libraries. A repository can be defined in either the pom.xml or in the settings.xml adding the following:
<repositories> <repository> <id>maven2-repository.sapienzaconsulting.com</id> <name>Sapienza Repository for Maven</name> <url>http://maven2.sapienzaconsulting.com/m2</url> <layout>default</layout> </repository> </repositories>
The <layout> tag has 2 possible values:
- default for Maven 2
- legacy for Maven 1
The only requirement is to enable HTTP access on the predefined URL. The URL will have to point to a specific location on your server which is the root of your Maven repository.
Create the Internal Repository
Just create the same layout as on iBiblio or other Maven repositories (read first about naming conventions for artifacts and groups) or deploy artifacts on your repository (see Deploy artifacts with SSH)