Create Java project with Maven archetype aem-project-archetype

AEM multi-module archetype.

Create a Java Project by archetype aem-project-archetype with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DappId="My-appId"   -DgroupId="My-groupId"   -DartifactId="My-artifactId"   -Dversion="My-version"   -DappTitle="My-appTitle"   -Dlanguage="My-language"   -Dcountry="My-country"   -DsingleCountry="My-singleCountry"   -DaemVersion="My-aemVersion"   -DsdkVersion="My-sdkVersion"   -DincludeExamples="My-includeExamples"   -DincludeErrorHandler="My-includeErrorHandler"   -DfrontendModule="My-frontendModule"   -DincludeDispatcherConfig="My-includeDispatcherConfig"   -DincludeCommerce="My-includeCommerce"   -DcommerceEndpoint="My-commerceEndpoint"   -DincludeForms="My-includeForms"   -DincludeFormsenrollment="My-includeFormsenrollment"   -DincludeFormscommunications="My-includeFormscommunications"   -DincludeFormsheadless="My-includeFormsheadless"   -DsdkFormsVersion="My-sdkFormsVersion"   -Ddatalayer="My-datalayer"   -Damp="My-amp"   -DenableDynamicMedia="My-enableDynamicMedia"   -DenableSSR="My-enableSSR"   -DprecompiledScripts="My-precompiledScripts"   -DarchetypeGroupId="com.adobe.aem"   -DarchetypeArtifactId="aem-project-archetype"   -DarchetypeVersion="37"   -DinteractiveMode=false 

Required parameters for generate java project:

appId
validationRegex: ^[a-zA-Z0-9\-]+$
groupId
validationRegex: ^[a-zA-Z0-9\.\-_]+$
artifactId
validationRegex: ^[a-zA-Z0-9\.\-_]+$
version
validationRegex: ^[a-zA-Z0-9\.\-]+$
appTitle
validationRegex: none
language
validationRegex: [a-z]{2,3}
country
validationRegex: [a-z]{2,3}
singleCountry
validationRegex: ^(y|n)$
aemVersion
validationRegex: ^(6\.4\.8\.4|6\.5\.7|cloud)$
sdkVersion
validationRegex: ^(\d{4}\.\d{2}\.\d{4}\.\d{8}T\d{6}Z-\d{6}|latest)$
includeExamples
validationRegex: ^(y|n)$
includeErrorHandler
validationRegex: ^(y|n)$
frontendModule
validationRegex: ^(none|general|angular|react)$
includeDispatcherConfig
validationRegex: ^(y|n)$
includeCommerce
validationRegex: ^(y|n)$
commerceEndpoint
validationRegex: ^(?:https:\/\/)[\w.-]+(?:\.[\w\.-]+)+[\w:]+\/graphql$
includeForms
validationRegex: ^(y|n)$
includeFormsenrollment
validationRegex: ^(y|n)$
includeFormscommunications
validationRegex: ^(y|n)$
includeFormsheadless
validationRegex: ^(y|n)$
sdkFormsVersion
validationRegex: ^(\d{4}\.\d{2}\.\d{2}\.\d{2}|latest)$
datalayer
validationRegex: ^(y|n)$
amp
validationRegex: ^(y|n)$
enableDynamicMedia
validationRegex: ^(y|n)$
enableSSR
validationRegex: ^(y|n)$
precompiledScripts
validationRegex: ^(y|n)$

Generated Project modules

  • ${rootArtifactId}.all
  • ${rootArtifactId}.core
  • ${rootArtifactId}.dispatcher.ams
  • ${rootArtifactId}.dispatcher.cloud
  • ${rootArtifactId}.ui.frontend.general
  • ${rootArtifactId}.ui.frontend.angular
  • ${rootArtifactId}.ui.frontend.react
  • ${rootArtifactId}.ui.frontend.react.forms.af
  • ${rootArtifactId}.ui.apps
  • ${rootArtifactId}.ui.config
  • ${rootArtifactId}.ui.content
  • ${rootArtifactId}.it.tests
  • ${rootArtifactId}.ui.tests
  • ${rootArtifactId}.ui.apps.structure

Details about maven archetype aem-project-archetype

License

License

GroupId

GroupId

com.adobe.aem
ArtifactId

ArtifactId

aem-project-archetype
Version

Version

37
Type

Type

maven-archetype
Description

Description

AEM Multi-Module Archetype
AEM multi-module archetype.
Project URL

Project URL

https://github.com/adobe/aem-project-archetype/
Source Code Management

Source Code Management

https://github.com/adobe/aem-project-archetype/tree/master/

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=37 -DinteractiveMode=false

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.