To create an AEM project with the command line

Source: Internet
Author: User
Tags xmlns

Now that Eclipse has a plugin for AEM, you can create AEM projects directly within Eclipse, new project. However, the command line to create the AEM project method po up, for reference, welcome to the great God.


1. Replace Maven's settings.xml with the following:

<?xml version= "1.0" encoding= "UTF-8"?> <settings xmlns= "http://maven.apache.org/SETTINGS/1.0.0" xmlns : xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation= "http://maven.apache.org/SETTINGS/1.0.0 htt P://maven.apache.org/xsd/settings-1.0.0.xsd "> <!--modified to your local MAVEN warehouse path--<localrepository>c:/reposit
	    ories/maven</localrepository> <profiles> <profile> <id>adobe-public</id> <activation> <activeByDefault>false</activeByDefault> </activation> <proper Ties> <releaseRepository-Id>adobe-public-releases</releaseRepository-Id> <releaserepos Itory-name>adobe Public releases</releaserepository-name> <releaserepository-url>http://repo.adobe
	        .com/nexus/content/groups/public</releaserepository-url> </properties> <repositories>
	   <repository>         <id>adobe-public-releases</id> <name>adobe Public repository</name>
	                <url>http://repo.adobe.com/nexus/content/groups/public</url> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </r eleases> <snapshots> <enabled>false</enabled> </snapsho ts> </repository> </repositories> <pluginRepositories> <pluginreposit ory> <id>adobe-public-releases</id> <name>adobe Public repository</name&
	            Gt <url>http://repo.adobe.com/nexus/content/groups/public</url> <releases> &L T;enabled>true</enabled> <updatePolicy>never</updatePolicy> </releas
Es>	            <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeprofil es> <activeProfile>adobe-public</activeProfile> </activeProfiles> </settings>

2. Access the following command in CMD

MVN archetype:generate-darchetyperepository=https://repo.adobe.com/nexus/content/groups/public/- Darchetypegroupid=com.day.jcr.vault-darchetypeartifactid=multimodule-content-package-archetype- Darchetypeversion=1.0.2-dgroupid=my-group-id-dartifactid=myproject-dversion=1.0-snapshot-dpackage= Com.mycompany.myproject-dappsfoldername=myproject-dartifactname= "My Project"-dcqversion= "5.6.1"-DpackageGroup= " My Company "

Here is the project to create a project named MyProject.

Execute command IF error: the desired archetype does not exist (Multimodule-content-package-archetype), need to be https://repo.adobe.com/ Nexus/content/groups/public/com/day/jcr/vault/multimodule-content-package-archetype/1.0.2/ The Multimodule-content-package-archetype-1.0.2.jar in the directory is downloaded and placed in the directory corresponding to the configured local repository.


3. Re-executing the 2 command

Console prompt input (y::), enter Y, carriage return

Build Success. The project was created successfully.


Additional tutorial on creating AEM projects in Eclipse, original post: http://www.adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.