Skip to content

Commit

Permalink
Create KLARRIO.md
Browse files Browse the repository at this point in the history
  • Loading branch information
twuyts authored Oct 3, 2022
1 parent 81174c6 commit 2cb192f
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions KLARRIO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# KLARRIO build instructions
## Creating a new release
1. Bump the version in the pom.xml file. The first part is the upstream version, the second part the Klarrio version of that particular upstream.
2. `mvn deploy` (see below)
3. tag & release on github

## Deployment
To deploy the library to Artifactory, you need to create a Maven settings file:

* go to the [Jfrog Artifactory Repository Browser](https://klarrio.jfrog.io/)
* Click on 'Set Me Up'
* Select Maven - Generate Maven Settings
* Fill in your password, and all settings for the repos
* Click 'Generate Settings' - 'Download Snippet' (if this is not available, see below)
* Save the settings.xml file to ~/.m2
* In this file you need to add 2 properties:

```
<profiles>
<profile>
<properties>
<artifactoryusername>[email protected]</artifactoryusername>
<artifactorypassword>APXYZAbcDeftJGWzg7jyaBhJs</artifactorypassword>
</properties>
```

Once this is set up, you can deploy the library using
`mvn deploy`

### When 'Generate Settings' is greyed out
Copy the template below, substitute `...` with your username and password, and save it as `~/.m2/settings.xml`.

```
<?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>
<username>[email protected]</username>
<password>...</password>
<id>central</id>
</server>
<server>
<username>[email protected]</username>
<password>...</password>
<id>snapshots</id>
</server>
</servers>
<profiles>
<profile>
<properties>
<artifactoryusername>[email protected]</artifactoryusername>
<artifactorypassword></artifactorypassword>
</properties>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>jvm-libs</name>
<url>https://klarrio.jfrog.io/klarrio/jvm-libs</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>jvm-libs</name>
<url>https://klarrio.jfrog.io/klarrio/jvm-libs</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>jvm-libs</name>
<url>https://klarrio.jfrog.io/klarrio/jvm-libs</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>jvm-libs</name>
<url>https://klarrio.jfrog.io/klarrio/jvm-libs</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
```

0 comments on commit 2cb192f

Please sign in to comment.