i'm getting this error while build for AEMaaCs | Community
Skip to main content
Level 4
Apr 20, 2023 6:54 AM UTC
Solved

i'm getting this error while build for AEMaaCs

[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.
KarthickVeAccepted solution
Level 4
Apr 27, 2023 7:43 AM UTC

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>

5 replies

KarthickVeAuthorAccepted solution
Level 4
Apr 27, 2023 7:43 AM UTC

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>
Translate
New Participant
Apr 20, 2023 9:18 AM UTC

@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>

 

Translate
Level 4
Apr 20, 2023 10:29 AM UTC

i tried the above solution but still getting same error.

Translate
Rohit_Utreja
New Participant
Apr 20, 2023 7:38 AM UTC

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

Translate
somen-sarkar
New Participant
Apr 20, 2023 7:14 AM UTC

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

Translate