Install Schema App's AEM Connector as a Dependency through Maven

Modified on Fri, 26 May 2023 at 04:48 PM

We offer install the connector as a dependency in maven you can find all versions through: https://repo1.maven.org/maven2/com/schemaapp/schemaapp.all/ We always recommend you install the latest version.


You will see something like the following when you to that page:



The latest version in this screenshot would be 1.4.6 so that is the version you would replace [version_number] with when adding the dependency. Please use the link above to get the latest version as we are making updates and improvements to the connector frequently.


Modifying POM Files to Install the Connector


 There are two pom files you need to modify to install this connector. 


With in all/pom.xml


Under the <build>/<plugins>/<plugin> section add the following. If “org.apache.jackrabbit” plugin is already added in your pom then just copy and paste the embedded section from below snippet, be sure to adjust the target based on your application and note this target for future steps.


<build>
    <plugins>
        <plugin>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>filevault-package-maven-plugin</artifactId>
            <extensions>true</extensions>
            <configuration>
                <embedded>
                    <groupId>com.schemaapp</groupId>
                    <artifactId>schemaapp.all</artifactId>
                    <type>zip</type>
                    <filter>true</filter>
                    <!-- Adjust this target based on your application and save this value -->
                    <target>/apps/schemaappsite-connector/application/install</target>
                </embedded>
            </configuration>
        </plugin>
    </plugins>
</build>



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


<dependency>
  <groupId>com.schemaapp</groupId>
  <artifactId>schemaapp.all</artifactId>
  <type>zip</type>
</dependency>


Modify the filter.xml file.


 In  <Project directory>/all/src/main/content/META-INF/vault/filter.xml file 


Add a new filter root.

1. Open filter.xml file.

2. Add new line using the target path set in the first step: <filter root="<replace it with your target path>"/>


Changes in ui.apps/pom.xml


In the <dependencies> section add the following:


<dependency>
    <groupId>com.schemaapp</groupId>
    <artifactId>schemaapp.all</artifactId>
    <type>zip</type>
</dependency>



With the base level pom.xml


Add the following under the dependencies section

<dependency>
   <groupId>com.schemaapp</groupId>
   <artifactId>schemaapp.all</artifactId>
   <version>[version_number]</version>
   <type>zip</type>
</dependency>


Schema App does release new features and bug fixes so be sure to check correspondence from us and update your connector version to benefit from our latest changes. 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article