i'm getting this error while build for AEMaaCs | Community
Skip to main content
New Participant
April 20, 2023
Solved

i'm getting this error while build for AEMaaCs

  • April 20, 2023
  • 4 replies
  • 1520 views

[ERROR] The analyser found the following errors for author and publish :
[ERROR] [api-regions-exportsimports] test.mock.cole.aem:core-aemaacs.core:1.0.0-SNAPSHOT: Bundle core-aemaacs.core:1.0.0-SNAPSHOT is importing package(s) [org.jsoup.select
, org.jsoup, org.jsoup.nodes] in start level 20 but no bundle is exporting these for that start level. ( test.mock.cole.aem.core-aemaacs.all:1.0.0-SNAPSHOT)

 

 

anyone faced this issue?

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 KarthickVe

Embeding the dependency in all pom.xml resloved this issue.

<embedded>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<type>jar</type>
<target>/apps/aem-vendor-packages/install</target>
</embedded>

4 replies

KarthickVeAuthorAccepted solution
New Participant
April 27, 2023

Embeding the dependency in all pom.xml resloved this issue.

<embedded>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<type>jar</type>
<target>/apps/aem-vendor-packages/install</target>
</embedded>
New Participant
April 20, 2023

@karthickve 

This error could mean that classes from your core bundle are trying to import jsoup packages but jsoup bundle does not export them. So you need to explicitly export those packages to make them available for other bundles to use.

In order to do that, in your core pom.xml in maven-bundle-plugin configuration export these packages like below.

<plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Export-Package> org.jsoup.* </Export-Package> <Embed-Dependency>*</Embed-Dependency> <Embed-Transitive>true</Embed-Transitive> </instructions> </configuration> </plugin> </plugins>

 

New Participant
April 20, 2023

i tried the above solution but still getting same error.

Rohit_Utreja
New Participant
April 20, 2023

Hi,

 

This jsoup depedency need to be resolved by converting jar into OSGI bundle fragment. Please have a look at a similar thread.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/jsoup-jar-does-not-installed-in-osgi-bundle/td-p/276271

somen-sarkar
New Participant
April 20, 2023

Hi,

Have you added any jsoup dependency in your pom.xml ? When 3rd party dependency is not getting resolved then you can face above kind of errors. Below links may help you to understand the issue and resolve the same .

1) https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-error-while-building-maven-project-quot-bundle-aem/m-p/433445

2) https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/jsoup-jar-does-not-installed-in-osgi-bundle/td-p/276271

 

Thanks,

Somen