Setting Up Schema Connector in AEM Cloud

Login:

Step 1: Open [Adobe Experience Cloud](https://experience.adobe.com/).

Step 2: Enter the credentials that have access to AEM and log in.

Step 3: From the top-right corner, click on the nine-dot icon.


Step 4: Select ‘Experience Manager’ from the dropdown menu.

Launch Cloud Manager:

Step 5: Under ‘Cloud Manager’, locate the ‘Launch’ button.

A screenshot of a computer

Description automatically generated

Step 6: Click on ‘Launch’ to open Cloud Manager.

Select Your Program:

Step 7: In the Cloud Manager dashboard, select your program from the available list.

A screenshot of a computer

Description automatically generated

Access Repository Information:

Step 8: Navigate to the 'Pipeline' section.

A screenshot of a computer

Description automatically generated

Step 9: Click on ‘Access Repo Info’.

View Repository Details:

Step 10: Once you click ‘Access Repo Info’, information related to your repository will be displayed.

A screenshot of a computer

Description automatically generated

Download Git Bash For Repository:

a) Download git bash for your system from below link 
     https://git-scm.com/downloads

b) It is a simple setup just click next, next to setup git on your system.

c) Open cmd with admin rights and execute following command.

     git config --system core.longpaths true

Clone the Repository Locally:

Step 11: Copy the repository URL provided.

Step 12: Open your terminal or Git client and run the following command: 
   ``` 
   git clone <repository_url> 
   ``` 
   Replace `<repository_url>` with the URL provided.

Provide your username and password while cloning the repository. 

Create a New Branch:

Step 13: Navigate to the cloned repository directory in your terminal.

Step 14: Create a new branch by running: 
   ``` 
   git checkout -b <branch_name>  
   ``` 
   Replace `<branch_name>` with your desired branch name.

Edit the Required Files:

Step 15: Within all/pom.xml

Under the <build>/<plugins>/<plugin> section, add the following.  

If the “org.apache.jackrabbit” plugin is already added to your pom, you can simply copy and paste the embedded section from the snippet below. Be sure to adjust the target based on your application and note this target for future steps.

<embeddeds>

                       <...>

                       <embedded>

                           <groupId>com.milestone</groupId>

                           <artifactId>milestoneschema.all</artifactId>

                           <type>zip</type>

                           <target>/apps/milestoneschema/install</target>

                       </embedded>

                   </embeddeds>

Within the dependencies section of the all/pom.xml add the following: 
<dependency>

           <groupId>com.milestone</groupId>

           <artifactId>milestoneschema.all</artifactId>

           <version>1.0.0</version>

           <type>zip</type>

       </dependency>

Step 16: Modify the filter.xml file.

In  the <Project directory>/all/src/main/content/META-INF/vault/filter.xml file,  add a new filter root.

Open the filter.xml file.

Add new line using the target path set in the first step: <filter root="/apps/milestoneschema/install"/>

Step 17: With the base level pom.xml

Add the following under the dependencies section:


<dependency>

               <groupId>com.milestone</groupId>

               <artifactId>milestoneschema.all</artifactId>

               <version>1.0.0</version>

               <type>zip</type>

           </dependency>

Add below repository configuration also. 

<repositories>

  <repository>

 <id>MSI-AEM</id>

 <url>https://pkgs.dev.azure.com/MileStoneInc/Adobe-Experience-Manager/_packaging/MSI-AEM/maven/v1</url>

 <releases>

   <enabled>true</enabled>

 </releases>

 <snapshots>

   <enabled>true</enabled>

 </snapshots>

</repository>

   </repositories>

Step 18: Now push these changes to the branch.

```

a) git add .

b) git commit –m “your msg”

c) git push 
   ```


Step 19: Configure the existing pipeline of the environment to point to this branch and run the pipeline. 



Run this pipeline now.