forked from BatchLabs/escalog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Klarrio/escalog
- Loading branch information
Showing
1 changed file
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>you@klarrio.com</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>...@klarrio.com</username> | ||
<password>...</password> | ||
<id>central</id> | ||
</server> | ||
<server> | ||
<username>...@klarrio.com</username> | ||
<password>...</password> | ||
<id>snapshots</id> | ||
</server> | ||
</servers> | ||
<profiles> | ||
<profile> | ||
<properties> | ||
<artifactoryusername>...@klarrio.com</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> | ||
``` |