Problem

How to set up my maven settings in order to download Adobe/AEM related artifacts.

Resolution

  1. Find the settings.xml file to add the Adobe Public Profile:
    • Windows: C:\Users\<My User>\.m2\settings.xml
    • macOS / Linux: ~/.m2/settings.xml
  2. Add the following profile to the maven settings.xml:
<!-- ====================================================== -->
<!-- A D O B E   P U B L I C   P R O F I L E                -->
<!-- ====================================================== -->
<profile>
    <id>adobe-public</id>
    <activation>
        <activeByDefault>true</activeByDefault>
    </activation>
    <properties>
        <releaseRepository-Id>adobe-public-releases</releaseRepository-Id>
	<releaseRepository-Name>Adobe Public Releases</releaseRepository-Name>
	<releaseRepository-URL>https://repo.adobe.com/nexus/content/groups/public</releaseRepository-URL>
    </properties>
    <repositories>
        <repository>
	    <id>adobe-public-releases</id>
	    <name>Adobe Public Repository</name>
	    <url>https://repo.adobe.com/nexus/content/groups/public</url>
	    <releases>
	        <enabled>true</enabled>
	        <updatePolicy>never</updatePolicy>
	    </releases>
	    <snapshots>
	        <enabled>false</enabled>
	    </snapshots>
	</repository>
    </repositories>
     <pluginRepositories>
        <pluginRepository>
	    <id>adobe-public-releases</id>
	    <name>Adobe Public Repository</name>
	    <url>https://repo.adobe.com/nexus/content/groups/public</url>
	    <releases>
	        <enabled>true</enabled>
	        <updatePolicy>never</updatePolicy>
	    </releases>
	    <snapshots>
	        <enabled>false</enabled>
	    </snapshots>
	</pluginRepository>
    </pluginRepositories>
</profile>

Note: repo.adobe.com is currently not configured to be browsable with a normal browser, but maven use only.

If the settings.xml file is missing, download the below file and place  it in the user's .m2 directory (unzip the zip to obtain the xml file):

İndir