In AEM spa while extending the core component I am getting the error | Community
Skip to main content
Level 6
October 27, 2022
Solved

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

  • October 27, 2022
  • 1 reply
  • 797 views

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/spa-editor/react/extend-component.html?lang=en

 

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"

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 SantoshSai

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/archetype/build-analyzer-maven-plugin.html?lang=en

Hope that helps!

Regards,

Santosh

1 reply

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
October 27, 2022

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/archetype/build-analyzer-maven-plugin.html?lang=en

Hope that helps!

Regards,

Santosh

Santosh Sai