Skip to content

TrueLicense is an open source engine for license management on the Java Virtual Machine.

License

Notifications You must be signed in to change notification settings

JWT007/truelicense

 
 

Repository files navigation

Release Notes Maven Central Apache License 2.0 Build Status

TrueLicense

TrueLicense is an open source engine for license management on the Java Virtual Machine. Due to its functional and modular design TrueLicense scales from simple to complex licensing schemas. TrueLicense features various interfaces for managing free trial periods, subscriptions, multiple editions, internationalization, privacy protection and more.

Before version 4, TrueLicense was covered by the GNU Affero General Public License, Version 3. Since version 4, it is covered by the Apache License, Version 2.0.

The old documentation at https://truelicense.net/ is now obsolete and will be updated eventually. In the mean time, please still use it as your reference. For a quick start, here's how you can generate a sample project using the TrueLicense Maven Archetype with the new V4 license key format:

$ mvn org.apache.maven.plugins:maven-archetype-plugin:3.1.0:generate \
    -DarchetypeGroupId=global.namespace.truelicense-maven-archetype \
    -DarchetypeArtifactId=truelicense-maven-archetype \
    -DarchetypeVersion=4.0.2 \
    -DartifactId=basic \
    -Dcompany='Company Inc.' \
    -DgroupId=com.company.product \
    -Dpassword=test1234 \
    -Dsubject='StarGazer 2020' \
    -Dversion=1.0-SNAPSHOT
$ cd basic
$ chmod +x mvnw
$ ./mvnw clean verify

Next, you can generate and install a license key like this:

$ java -jar keygen/target/*-keygen-*-standalone.jar generate license.lic -output -
{"consumerAmount":1,"consumerType":"User","holder":"CN=Unknown","issued":1565085418292,"issuer":"CN=Company Inc.","subject":"StarGazer 2020"}
$ java -jar keymgr/target/*-keymgr-*-guarded.jar wizard

Follow the instructions of the licensing wizard to install, view and uninstall the license key previously saved to the license.lic file.

About

TrueLicense is an open source engine for license management on the Java Virtual Machine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 85.4%
  • Scala 12.5%
  • HTML 2.0%
  • Shell 0.1%