Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

In AEM spa while extending the core component I am getting the error

Avatar

Level 7

The analyser found the following errors for author and publish :
[ERROR] [api-regions-exportsimports] com.aem.example:aem-example.core:1.0.0-SNAPSHOT: Bundle saem-example.core:1.0.0-SNAPSHOT is importing package(s) [Package com.adobe.cq.wcm.core.components.commons.link;version=[1.2,2), Package com.adobe.cq.wcm.core.components.models;version=[12.26,13)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (com.aem.example:aem-example.all:1.0.0-SNAPSHOT)

 

To extend the core component in SPA I am following this example

 https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/s...

 

mvn -B archetype:generate
-D archetypeGroupId=com.adobe.aem
-D archetypeArtifactId=aem-project-archetype
-D archetypeVersion=39
-D appTitle="AEM Example"
-D appId="aem-example"
-D artifactId="aem-example"
-D groupId="com.aem.example"
-D includeDispatcherConfig="y"
-D singleCountry="n"
-D frontendModule="react"
-D includeExamples="y"
-D includeErrorHandler="y"
-D enableDynamicMedia="y"
-D enableSSR="y"
-D aemVersion="cloud"

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Ronnie09,

Checks if all OSGI bundles have their Import-Package declarations satisfied by the Export-package declaration of other included bundles in the Maven project. An error would look like this:

[ERROR] org.acme:mybundle:0.0.1-SNAPSHOT: Bundle org.acme:mybundle:0.0.1-SNAPSHOT is importing package(s) org.acme.foo in start level 20 but no bundle is exporting these for that start level.

To troubleshoot, see if the bundle providing the package is included in the deployment, or alternatively look at the manifest of the bundle that you would expect to be exporting to determine if the wrong name or wrong version was used.

For more details please refer [0].

[0]: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetyp...

Hope that helps!

Regards,

Santosh

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Ronnie09,

Checks if all OSGI bundles have their Import-Package declarations satisfied by the Export-package declaration of other included bundles in the Maven project. An error would look like this:

[ERROR] org.acme:mybundle:0.0.1-SNAPSHOT: Bundle org.acme:mybundle:0.0.1-SNAPSHOT is importing package(s) org.acme.foo in start level 20 but no bundle is exporting these for that start level.

To troubleshoot, see if the bundle providing the package is included in the deployment, or alternatively look at the manifest of the bundle that you would expect to be exporting to determine if the wrong name or wrong version was used.

For more details please refer [0].

[0]: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetyp...

Hope that helps!

Regards,

Santosh