Bundle [core-bundle] is importing package(s) com.adobe.acs.commons.email in start level 20 but no bundle is exporting these for that s tart level. | Community
Skip to main content
Robert-Harper
Level 3
March 22, 2022
Solved

Bundle [core-bundle] is importing package(s) com.adobe.acs.commons.email in start level 20 but no bundle is exporting these for that s tart level.

  • March 22, 2022
  • 2 replies
  • 2978 views

I am seeing this error when trying to build my project. The email package is provided in the acs-aem-commons-bundle but there isn't a zip version to add in the pom.xml for the all project. I've seen a few similar issues that only point to the documentation and I'm having issues trying to find a resolution for this.

 

Can someone provide more than an link to documentation on how to resolve this. I've tried everything I've seen but nothing seems to fix it.

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JeevanRaj

Hi @robert-harper 

 

Here is the recommended way to add acs commons to your projects.

  1. Add the dependency to content pom.xml
    <dependency>
        <groupId>com.adobe.acs</groupId>
        <artifactId>acs-aem-commons-content</artifactId>
        <version>5.2.0</version>
        <type>content-package</type>
        <classifier>min</classifier>
    </dependency>
  2. Add the below embed property in all projects pom.xml
    <embedded>
                        <groupId>com.adobe.acs</groupId>
                        <artifactId>acs-aem-commons-ui.apps</artifactId>
                        <type>zip</type>
                        <target>/apps/my-app-packages/application/install</target>
                    </embedded>
                    <embedded>
                        <groupId>com.adobe.acs</groupId>
                        <artifactId>acs-aem-commons-ui.content</artifactId>
                        <type>zip</type>
                        <target>/apps/my-app-packages/content/install</target>
                    </embedded>

  3. Add the below dependency to core projects pom.xml
    <dependency>
        <groupId>com.adobe.acs</groupId>
        <artifactId>acs-aem-commons-bundle</artifactId>
        <version>5.2.0</version>
        <scope>provided</scope>
    </dependency>

    Thanks

2 replies

JeevanRaj
Community Advisor
JeevanRajCommunity AdvisorAccepted solution
Community Advisor
March 22, 2022

Hi @robert-harper 

 

Here is the recommended way to add acs commons to your projects.

  1. Add the dependency to content pom.xml
    <dependency>
        <groupId>com.adobe.acs</groupId>
        <artifactId>acs-aem-commons-content</artifactId>
        <version>5.2.0</version>
        <type>content-package</type>
        <classifier>min</classifier>
    </dependency>
  2. Add the below embed property in all projects pom.xml
    <embedded>
                        <groupId>com.adobe.acs</groupId>
                        <artifactId>acs-aem-commons-ui.apps</artifactId>
                        <type>zip</type>
                        <target>/apps/my-app-packages/application/install</target>
                    </embedded>
                    <embedded>
                        <groupId>com.adobe.acs</groupId>
                        <artifactId>acs-aem-commons-ui.content</artifactId>
                        <type>zip</type>
                        <target>/apps/my-app-packages/content/install</target>
                    </embedded>

  3. Add the below dependency to core projects pom.xml
    <dependency>
        <groupId>com.adobe.acs</groupId>
        <artifactId>acs-aem-commons-bundle</artifactId>
        <version>5.2.0</version>
        <scope>provided</scope>
    </dependency>

    Thanks
Robert-Harper
Level 3
March 22, 2022

Thanks. That did the trick.

DEBAL_DAS
New Member
March 22, 2022

Below you could see 1st I have identified maven dependency for com.adobe.acs.commons.email package -

 

Then I have added 

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

in parent pom.xml as shown below -

Then added below dependency in core pom.xml -

<dependency>
<artifactId>acs-aem-commons-bundle</artifactId>
<groupId>com.adobe.acs</groupId>
</dependency>

 

Now Maven build from eclipse gives me success status -

 

I am using acs commons version 5.0.14 with AEM 6.5.9. Hope this will help.

Debal Das, Senior AEM Consultant