If targeting 6.4.8+, use aemVersion="6.4.8".Ī full list of available properties for configuring a project can be found here. If targeting AEM 6.5.5+ replace aemVersion="cloud" with aemVersion="6.5.5". D archetypeArtifactId=aem-project-archetype \ Paste the following into the command line to generate the project in batch mode: mvn -B archetype:generate \ For example a directory named code beneath the user’s home directory: $ cd ~/code This can be any directory in which you want to maintain your project’s source code. Navigate to a directory in which you want to generate the AEM project. Please revisit the steps to install and configure Apache Maven in a local development environment. If you do not see the adobe-public it is an indication that the Adobe repo is not properly referenced in your ~/.m2/settings.xml file.
Verify that the adobe-public profile is active by running the following command: $ mvn help:effective-settings Java version: 11.0.4, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-11.0.4.jdk/Contents/Home
Verify that Maven is installed: $ mvn -version The next series of steps will take place using a UNIX based command line terminal, but should be similar if using a Windows terminal. It is always a best practice to use the latest version of the archetype to generate a new project. This tutorial uses version 26 of the archetype. The underlying project generated by the Cloud Manager UI results in the same structure as using the archetype directly. Cloud Manager also provides a UI wizard to initiate the creation of an AEM application project. This tutorial will leverage the Maven AEM Project Archetype 26. There are a couple options for creating a Maven Multi-module project for AEM. The AEM Project archetype allows us to generate a new project with a custom namespace and include a project structure that follows best practices, greatly accelerating our project. What is a Maven archetype? - A Maven archetype is a template or pattern for generating new projects. All Adobe Experience Manager implementations use Maven projects to build, manage and deploy custom code on top of AEM.
What is a Maven project? - Apache Maven is a software management tool to build projects. The project generated in this chapter will serve as the basis for an implementation of the WKND Site and will be built upon in future chapters. Your AEM project contains all of the code, content, and configurations used for a Sites implementation. In this chapter, you will generate a new Adobe Experience Manager project using the AEM Project Archetype. OS name: "windows 10", version: "10.Your browser does not support the iframe element. Java home: C:\Program Files\Java\jdk1.8.0_111\jreĭefault locale: en_US, platform encoding: Cp1252 Java version: 1.8.0_111, vendor: Oracle Corporation Maven home: C:\DeveloperTools\maven3\bin\. We will open command line and type maven -version Let us see what our run command returnsĪpache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5 T17:41:47+01:00) Now we will verify if our maven installtion is working correctly. Next we will add the maven to the Path variable, C:\DeveloperTools\maven3\bin See below picture M2_HOME variables is set to the location of the folder where you unzipped the maven. If you don’t find JAVA_HOME defined, please add using the New button as show in below picture Here is the how the environment variables look in my system. For this tutorial we have the java installed at C:\Program Files\Java\jdk1.8.0_111 If it not defined, you need to point this variable to the home of your Java installation. So you should check that JAVA_HOME is defined in the environment variables. JAVA_HOME is required for maven running successfully.
Let’s unzip this zip file to a folder maven C:\DeveloperTools\maven3 For this tutorial we are going to download apache-maven-3.3.9-bin.zip. Download Mavenĭownload the latest maven zip file from Apache Maven website.
In this tutorial we will show how to install the maven on windows.