Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Help with importing com.fasterxml.jackson.dataformat.xml  into AEM 6.2

Avatar

Level 6

Hi,

 

I am trying to import jackson-dataformat-xml-2.5.3.jar into AEM 6.2 as it is a dependency in another OSGI bundle I have written.

When using the Eclipse Plug-In project I create an OSGI version.

However

Exported Packagescom.fasterxml.jackson.dataformat.xml,version=0.0.0

 

 

 

Here is screen shots of my projects error

 

This is my plug-in, note the version of the export package 0.0.0

This is the MANIFEST.MF file screen shot of the plug-in.

I need to have the export package version as 2.5.3.

 

Please could someone help me by explaining how I can set this.

Regards

Clive Stewart

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Clive - what is happening here is that the OSGi is looking for a specific version. You can change the version in the POM file or you can modify the MF file in the OSGi bundle and remove the version from the Import section. Then AEM will use the available version - not a specific version. 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi Clive - what is happening here is that the OSGi is looking for a specific version. You can change the version in the POM file or you can modify the MF file in the OSGi bundle and remove the version from the Import section. Then AEM will use the available version - not a specific version. 

Avatar

Level 6

Hi Scott,

 

Thank you. I followed your advice and it worked for me.

 

Reagrds

Clive Stewart