Facing difficulties in creating AEM project structure using maven and eclipse no worries here is the easy way to create the basic AEM structure using ACS Commons, includes default config options.
Steps to create the project structure :
Once this is done you can now see the sample AEM project structure.
Steps to create the project structure :
- Naviagate to link https://bintray.com/pledbrook/lazybones-templates/lazybones#files download the zip file for windows operating system.
- Extract the zip file and set the environment path variable to \lazybones-0.8.1\bin
- open the command then type lazybones command, you will be able to see some of the commands used in lazybones.
- once you have installed lazybones for creating the AEM project structure type the command lazybones create aem-multimodule-project <directory name>.
- CMD will prompt some of the question as below.
Description
|
Default
|
Parameter Name
|
Maven Group ID
|
com.myco
|
groupId
|
Maven Artifact ID
|
example-project
|
artifactId
|
Maven Version
|
0.0.1-SNAPSHOT
|
Version
|
Project Name
|
My AEM Project
|
projectName
|
Target AEM Version
|
6.0
|
aemVersion
|
Bundle Artifact ID
|
example-project-bundle
|
bundleArtifactId
|
Content Package Artifact ID
|
example-project-content
|
contentArtifactId
|
Folder to create under
/apps |
My-aem-project
|
appsFolderName
|
Folder to use under
/content |
My-aem-project
|
contentFolderName
|
Create a site design?
|
Yes
|
createDesign
|
Design folder name
|
my-aem-project
|
designFolderName
|
Create a main client library?
|
Yes
|
createMainClientLib
|
Create a dependencies client library
|
Yes
|
createDependenciesClientLib
|
Enable code quality checks?
|
Yes
|
enableCodeQuality
|
Set root mapping to
/welcome (Classic UI)? |
yes in 5.6.1, no in 6.0
|
reconfigureRootMapping
|
Set Default Authoring UI to Classic? (6.0 only)
|
Yes
|
enableClassicAuthoringAsDefault
|
Include ACS AEM Commons?
|
Yes
|
includeAcsAemCommons
|
Include ACS AEM Commons as a sub-package?
|
Yes
|
includeAcsAemCommonsSubPackage
|
Enable ACS AEM Commons Error Handler?
|
Yes
|
enableErrorHandler
|
Default Error Page Path
|
/content/my-aem-project/errors/404
|
defaultErrorPath
|
Define Error Page Folder for /content/my-aem-project ?
|
No
|
defineErrorPageFolder
|
Error Page Folder for /content/my-aem-project
|
Errors
|
errorFolder
|
Enable ACS AEM Commons Pages Reference Provider?
|
yes
|
enablePagesReferenceProvider
|
Enable ACS AEM Commons Design Reference Provider?
|
Yes
|
enableDesignReferenceProvider
|
Enable ACS AEM Commons Design Html Library Manager?
|
Yes
|
enableDhlm
|
Enable ACS AEM Commons Versioned Client Libraries?
|
Yes
|
enableVersionedClientLibs
|
Create Environment-Specific Config Folders?
|
Yes
|
createRunModeConfigFolders
|
Environment Names
|
localdev,dev,qa,stage,prod
|
envNames
|
Create Author and Publish Config Folders per Environment?
|
Yes
|
createAuthorAndPublishPerEnv
|
Using Sling Models?
|
Yes
|
usingSlingModels
|
Sling Models Package
|
''
|
slingModelsPackage
|
Purge DAM Workflows?
|
Yes
|
purgeDamWorkflows
|
DAM Workflow Retention Period (days)
|
7
|
purgeDamWorkflowRetention
|
very helpful Please keep posting such useful information
ReplyDeleteThanks for the valuable info
ReplyDeletethanks for sharing. this is really helpful. anyone can setup a AEM project in less than 10 mins.
ReplyDelete