Custom fork that is modified to allow access to private datastructures not available in the default repo.
- Build the Jar:
./gradlew
Jar location:
build/libs/htsjdk-<VERSION>.jar
- Install the Jar to the local maven repo:
Replace VERSION
with the version of the previously built Jar.
mvn install:install-file \
-Dfile=htsjdk-<version>.jar \
-DgroupId=com.github.samtools \
-DartifactId=htsjdk \
-Dversion=VERSION \
-Dpackaging=jar \
-DgeneratePom=true
- Configure maven authentication for github:
Add this to your ~/.m2/settings.xml
file and replace USERNAME
with your github username and TOKEN
with a personal github access token:
<settings>
<servers>
<server>
<id>github-zimmerlab-htsjdk</id>
<username>USERNAME</username>
<password>TOKEN</password>
</server>
</servers>
</settings>
- Add the github package repository to the maven project:
Add this to the pom.xml
file in the projects root directory:
<repositories>
<repository>
<id>github-zimmerlab-htsjdk</id>
<url>https://maven.pkg.github.com/zimmerlab/htsjdk</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
- Add the dependency to the
pom.xml
file in the projects root directory:
Replace VERSION
with the version of the jar you want to use (see releases).
<dependency>
<groupId>com.github.zimmerlab</groupId>
<artifactId>htsjdk</artifactId>
<version>VERSION</version>
</dependency>