Once you have the quickstart aem jar file, in your file system create two new folders one for author and one for publisher. Copy paste the same jar file in both folders and rename the jar file as follows
For Author: AEM64-author-p4508.jar
For Publish: AEM64-publish-p4509.jar
1. Go to your jar location and open terminal from there or you can just open new cmd/terminal for mac users and go to the directory where you have saved your jar file
2. Then execute this command to extract the jar file “java -Xmx4096m -jar AEM64-author-p4508.jar -p 4508” for author
3. java -Xmx4096m -jar AEM64-publish-p4509.jar -p 4509 for publish
1. Double click on the jar file you will see a window which shows your port number and the status of the jar extract.
NOTE: When you are installing aem for the first time, do it by using cmd so you can see what it is extracting and also can track the issues (if any while downloading).
Once the installation is done it will open up a new tab on your default browser and you would need to provide the key for the jar.
· As the installation is complete at this time, let’s just go back to your author folder and you will see a crxquickstart folder
· Under which you will see different folder each having its own use (Try to get familiarized with this because we might come here many times)
o By Double clicking(extracting) the jar file every time
o Running the command.
o Running the Start.bat file located under crxfolder/bin/start.bat (I would just copy the start.bat file into new batch file and save it on desktop for easy access)
1. Install AEM Developer tools plugin from eclipse marketplace (In your Real work location you might have to ask for access to marketplace if you are not permitted).
2. Open Eclipse > Help > Eclipse Marketplace > Search for AEM Developer tools for eclipse > Install.
3. Restart eclipse.
4. Now go to file > new > project >Select AEM multimodule project > Choose if you would like to store the project into different location other than Default location.
5. Select the appropriate archetype as per the version of your AEM. For more information on which archetype to choose read https://github.com/adobe/aem-project-archetype/releases.
6. Configure your archetype by entering your project name, artifact-id, group-id and so on. This information is used to build your JAR file and these details can be seen in the POM.xml file.
7. Click on Next, you will see three options there
· Deploy on existing server (if you have already set up your AEM Server).
· Do not deploy on server.
· Create a new server.
o You can create a new AEM server talking to your AEM Author instance(port number, Eg: 4502).
o Login credentials
8. For now, just select do not deploy on server and click on Finish. This would take some time(max 10 mins, depends on your hardware configuration).
9. At this point you have successfully created your project. Project folder structure looks like this.
1. Make a new folder wherever you like to save the AEM project
2. Open CMD from here or go to CMD and change the working directory to cd <your folder name>.
3. Execute the following command
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=13 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/
4. Here I am using archetype-13 for aem 6.4 version(current version of archetype available is 21).
1. Once the project is created, you should be able to see the folder structure like this.
·
o There is a term called “checkout” which simply means copying the existing maven project to your local machine.
o There are few ways you could do it.
o From CLI
1. Copy the link of your repository and in your local, choose a location where you would like to clone the project.
2. Go to that folder/location and open CLI from that location and enter command “git clone <copied link of your repository> “
o GIT BASH
1. Open Git-bash, execute “cd /<your drive>/<foldername>”. Eg : “cd /d/abc”
2. Execute “git clone <copied link of your repository>”