Skip to content

Instantly share code, notes, and snippets.

@JarvisCraft
Last active Jul 3, 2018
Embed
What would you like to do?
QuestCraft dev-repositories

QuestCraft repo

Public repo

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.

Private repo

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.

More info is available at http://dev.questmg.ru:8081/
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<id>REPO-NAME</id>
<username>USERNAME</username>
<password>PASSWORD</password>
</server>
</servers>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment