In order to use QuestCraft repository you should add the following to your project's pom.xml into <repositories>
tag in <settings>
:
<repository>
<id>questcraft-repo</id>
<url>http://dev.questmg.ru:8081/artifactory/public/</url>
</repository>
It will add our public repository to the list of repositories through which Maven is looking for your dependencies. That's it for now if you are not going to depend on any of our private APIs.
If you are a member of our team and have been granted access to one or more of our private projects you may have access to some of our private repos. In order to do it you'll also have to configure your Maven settings to authorize access to those. Again, add required repo to your <repositories>
tag in <settings>
tag inside pom.xml
:
<repository>
<id>REPO_ID</id>
<url>http://dev.questmg.ru:8081/artifactory/REPO/</url>
</repository>
Here REPO
varies on what you have access to so replace it with the value needed. Another important thing is REPO_ID
which you will need for the following step. Go to your local maven repository (.m2
, location depends on your file system) and open settings.xml
file there, if it does not exist then create one. In your settings
:servers
tag add another entry with the following content:
<server>
<id>REPO_ID</id>
<username>USERNAME</username>
<password>PASSWORD</password>
</server>
where REPO_ID
duplicates the one you specified before and USERNAME
and PASSWORD
stand for your credentials.