Создать Java проект на основе Maven архетипа truelicense-maven-archetype

The TrueLicense Maven Archetype is a turn-key solution for designing and implementing a custom licensing schema for your software product. The archetype generates a project with tailor-made modules for vending and consuming license keys. The modules contain code templates which you can easily customize without writing code by configuring a set of properties.

Консольная команда для создания Java-проекта на основе архетипа truelicense-maven-archetype:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DartifactName="My-artifactName"   -DcompanyName="My-companyName"   -DdefaultPassword="My-defaultPassword"   -DdisableLicenseWizard="My-disableLicenseWizard"   -DdynamicClassLoading="My-dynamicClassLoading"   -Deditions="My-editions"   -DfreeTrialPeriod="My-freeTrialPeriod"   -DftpKeyStoreFile="My-ftpKeyStoreFile"   -DftpSecretMarkerClass="My-ftpSecretMarkerClass"   -DhideUninstallAction="My-hideUninstallAction"   -DkeyGenLicenseValidationClass="My-keyGenLicenseValidationClass"   -DkeyGenLicenseValidationFunction="My-keyGenLicenseValidationFunction"   -DkeyMgrClockClass="My-keyMgrClockClass"   -DkeyMgrLicenseValidationClass="My-keyMgrLicenseValidationClass"   -DkeyMgrLicenseValidationFunction="My-keyMgrLicenseValidationFunction"   -DkeyPairAlgorithm="My-keyPairAlgorithm"   -DkeyStoreType="My-keyStoreType"   -DlicenseKeyFormat="My-licenseKeyFormat"   -DlicensingSubject="My-licensingSubject"   -DpbeAlgorithm="My-pbeAlgorithm"   -DpreferencesNodeType="My-preferencesNodeType"   -DprivateKeyStoreFile="My-privateKeyStoreFile"   -DpublicKeyStoreFile="My-publicKeyStoreFile"   -DtrueLicenseDependency="My-trueLicenseDependency"   -DtrueLicenseVersion="My-trueLicenseVersion"   -DverboseCli="My-verboseCli"   -DarchetypeGroupId="net.java.truelicense"   -DarchetypeArtifactId="truelicense-maven-archetype"   -DarchetypeVersion="2.4.1"   -DinteractiveMode=false 

Обязательные параметры для создания java проекта:

artifactName
validationRegex: нет
companyName
validationRegex: нет
defaultPassword
validationRegex: нет
disableLicenseWizard
validationRegex: нет
dynamicClassLoading
validationRegex: нет
editions
validationRegex: нет
freeTrialPeriod
validationRegex: нет
ftpKeyStoreFile
validationRegex: нет
ftpSecretMarkerClass
validationRegex: нет
hideUninstallAction
validationRegex: нет
keyGenLicenseValidationClass
validationRegex: нет
keyGenLicenseValidationFunction
validationRegex: нет
keyMgrClockClass
validationRegex: нет
keyMgrLicenseValidationClass
validationRegex: нет
keyMgrLicenseValidationFunction
validationRegex: нет
keyPairAlgorithm
validationRegex: нет
keyStoreType
validationRegex: нет
licenseKeyFormat
validationRegex: нет
licensingSubject
validationRegex: нет
pbeAlgorithm
validationRegex: нет
preferencesNodeType
validationRegex: нет
privateKeyStoreFile
validationRegex: нет
publicKeyStoreFile
validationRegex: нет
trueLicenseDependency
validationRegex: нет
trueLicenseVersion
validationRegex: нет
verboseCli
validationRegex: нет

Модули в готовом maven проекте

  • ${rootArtifactId}-keygen
  • ${rootArtifactId}-keymgr
  • ${rootArtifactId}-keymgrsvc

Подробная информация об архетипе truelicense-maven-archetype

Группа

Группа

net.java.truelicense
Идентификатор

Идентификатор

truelicense-maven-archetype
Версия

Версия

2.4.1
Тип

Тип

maven-archetype

Как подключить последнюю версию

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=net.java.truelicense -DarchetypeArtifactId=truelicense-maven-archetype -DarchetypeVersion=2.4.1 -DinteractiveMode=false