A simple Java application that uses Featurevisor Java SDK.
Learn more about Featurevisor: https://featurevisor.com
Clone the repository, and install the dependencies:
Create a new file at ~/.m2/settings.xml
with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<servers>
<server>
<id>github</id>
<username>YOUR_GITHUB_USERNAME</username>
<password>YOUR_GITHUB_TOKEN</password>
</server>
</servers>
</settings>
You can generate a new GitHub token here with read:packages
scope: https://github.com/settings/tokens
This file is meant to not be committed to the repository, as .gitignore
is configured to ignore it.
$ mvn install
$ mvn clean compile
$ mvn exec:java -Dexec.mainClass="com.example.App"
Uses this Featurevisor project to fetch the configuration from: https://github.com/featurevisor/featurevisor-example-cloudflare