Skip to content

Instantly share code, notes, and snippets.

@JarvisCraft
Last active July 3, 2018 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JarvisCraft/02ec86606b0b5d16fa48ac52ab7356ac to your computer and use it in GitHub Desktop.
Save JarvisCraft/02ec86606b0b5d16fa48ac52ab7356ac to your computer and use it in GitHub Desktop.
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