Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

how to use ACS commons classes in my maven project?

Avatar

Level 9

TLDR: My problem is that when I'm inside my IDE (in this case it's IntelliJ), the IDE cannot find "com.adobe.acs"

Any ideas on how to fix? Thanks

---------------------------

1. So I already have these 2 entries in my pom file

<embedded>
   <artifactId>acs-aem-commons-all</artifactId>
   <target>/apps/my-app-vendor-packages/container/install</target>
   <filter>true</filter>
   <isAllVersionsFilter>true</isAllVersionsFilter>
</embedded>
<dependency>
   <groupId>com.adobe.acs</groupId>
   <artifactId>acs-aem-commons-all</artifactId>
   <classifier>cloud</classifier>
   <version>6.14.0</version>
   <type>zip</type>
</dependency>
<dependency>
   <groupId>com.adobe.acs</groupId>
   <artifactId>acs-aem-commons-bundle</artifactId>
   <version>6.14.0</version>
   <scope>provided</scope>
</dependency>

It auto-installed the ACS commons package in my package manager.


2. I can also see this JAR file in my home directory.

/home/myuser/.m2/repository/com/adobe/acs/acs-aem-commons-bundle-cloud/6.14.0/acs-aem-commons-bundle-cloud-6.14.0.jar


3. I have sync and reloaded maven in my IDE.

4 Replies

Avatar

Level 4

Hi @jayv25585659 ,

 

IntelliJ cannot find com.adobe.acs because the wrong artifact is used in your pom.xml. The acs-aem-commons-all is only a content package (ZIP) and acs-aem-commons-bundle doesn’t exist for Cloud. You need to use the correct artifact acs-aem-commons-bundle-cloud. Update your dependency as below:

<dependency>
<groupId>com.adobe.acs</groupId>
<artifactId>acs-aem-commons-bundle-cloud</artifactId>
<version>6.14.0</version>
<scope>provided</scope>
</dependency>


Then run mvn clean install -U and reimport Maven in IntelliJ. If issues remain, clear IntelliJ caches. This will resolve the com.adobe.acs imports.

 

Thanks & Regards,

Vishal

Avatar

Level 9

according to this page (https://adobe-consulting-services.github.io/acs-aem-commons/pages/maven.html), there are no artifact called "-cloud" (like what you wrote) for maven.


this is the suggestion given (which is exactly/very similar to mine)

<plugins>
  <plugin>
    <groupId>org.apache.jackrabbit</groupId>
    <artifactId>filevault-package-maven-plugin</artifactId>
      ...
      <configuration>
        <embeddeds>
          <embedded>
            <!-- the artifact with the given id from the project dependencies is embedded -->
            <artifactId>acs-aem-commons-all</artifactId>
            <target>/apps/my-app-vendor-packages/container/install</target>
            <filter>true</filter>
            <isAllVersionsFilter>true</isAllVersionsFilter>
          </embedded>
        ...
        </embeddeds>
      ...
      </configuration>
    ...
  </plugin>
</plugins>
...
<dependencies>
  <dependency>
    <groupId>com.adobe.acs</groupId>
    <artifactId>acs-aem-commons-all</artifactId>
    <classifier>cloud</classifier>
    <version>6.14.0</version>
    <type>zip</type>
  </dependency>
  ...
</dependencies>

 

Avatar

Community Advisor

Hi @jayv25585659 ,

Its working for me  in core/pom.xml file

       <dependency>
            <groupId>com.adobe.acs</groupId>
            <artifactId>acs-aem-commons-bundle</artifactId>
            <version>6.14.0</version>
            <scope>provided</scope>
        </dependency>

right click on project(intellij ide) -> maven -> sync project
works for me. 

Thanks

Avatar

Administrator

@jayv25585659 just checking in! Were you able to get this resolved? If one of the replies above helped—whether it completely solved the issue or simply pointed you in the right direction—marking it as accepted can make it much easier for others with the same question to find a solution. And if you found a different way to fix it, sharing your approach would be a great contribution to the community. Your follow-up not only helps close the loop but also ensures others benefit from your experience. Thanks so much for being part of the conversation!



Kautuk Sahni