Configure JAR Source

If you want to use a JAR package to add Zentitle Licensing Client to your application you will have to add our GitLab Package Registry as a JAR source in your IDE.

Credentials to our package registry can be created in the Zentitle2 interface (Administration -> API Credentials -> Package Registry)

Add new JAR source

Please remember to provide your token in the settings.xml following configuration file.

Add or modify the Maven's settings.xml file:

<settings>
  <servers>
    <server>
      <id>gitlab-maven</id>
      <configuration>
        <httpHeaders>
          <property>
            <name>Deploy-Token</name>
            <value>REPLACE_WITH_PACKAGE_REGISTRY_PASSWORD</value>
          </property>
        </httpHeaders>
      </configuration>
    </server>
  </servers>
</settings>

Add to the Maven's pom.xml file:

<repositories>
    <repository>
        <id>gitlab-maven</id>
        <url>https://gitlab.com/api/v4/projects/67406777/packages/maven</url>
    </repository>
</repositories>

More information

Last updated

Was this helpful?