Skip to content

Commit

Permalink
Merge pull request #66 from joshbaskaran/master
Browse files Browse the repository at this point in the history
information for adding library to other projects
  • Loading branch information
kjellp authored Nov 4, 2022
2 parents 2af4984 + eda064a commit 108bc32
Showing 1 changed file with 48 additions and 3 deletions.
51 changes: 48 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,61 @@ To include this library to your Maven project add following to the `pom.xml`:

<repositories>
<repository>
<id>central</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
<id>github</id>
<name>uio-bmi-Crypt4GH</name>
<url>https://maven.pkg.github.com/uio-bmi/crypt4gh</url>
</repository>
</repositories>

...

```

In addition ensure that your settings.xml includes the required github credentials following the [github docs](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry). Here's an example:

```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>
<servers>
<server>
<id>github</id>
<username>my_username</username>
<password>A_read_token_created_according_to_github_doc</password>
</server>
</servers>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>

<repository>
<id>github</id>
<name>uio-bmi-crypt4gh</name>
<url>https://maven.pkg.github.com/uio-bmi/crypt4gh/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>

</repositories>
</profile>
</profiles>


</settings>
```


## Console Installation
To install console app you can use the following script (assuming you are using `bash`):
```
Expand Down

0 comments on commit 108bc32

Please sign in to comment.