Skip to content

SNAPSHOT releases

Wouter Zorgdrager edited this page Nov 23, 2020 · 2 revisions

Every release on this repository will now trigger a snapshot release to GitHub packages. The version of each module will be set to the tag given for the release.

To use these releases as a dependency first authenticate to GitHub packages by adding the following to ~/.m2/settings.xml.

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <activeProfiles>
    <activeProfile>github</activeProfile>
  </activeProfiles>

  <profiles>
    <profile>
      <id>github</id>
      <repositories>
        <repository>
          <id>central</id>
          <url>https://repo1.maven.org/maven2</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
        <repository>
          <id>github</id>
          <name>GitHub fasten-project Apache Maven Packages</name>
          <url>https://maven.pkg.github.com/fasten-project/fasten</url>
        </repository>
      </repositories>
    </profile>
  </profiles>

  <servers>
    <server>
      <id>github</id>
      <username>USERNAME</username>
      <password>TOKEN</password>
    </server>
  </servers>
</settings>

A GitHub token can be generated in your profile.

Then each dependency can be added in your pom file. For example:

<dependency>
  <groupId>eu.fasten</groupId>
  <artifactId>core</artifactId>
  <version>0.0.1-SNAPSHOT</version>
</dependency>

See the latest releases here.