Replies

Highlighted

Avatar

Avatar

vishalsaini

Avatar

vishalsaini

vishalsaini

10-08-2017

I tried this. It does resolves the bundle issue but it causes the services to stop.

Highlighted

Avatar

Avatar

vishalsaini

Avatar

vishalsaini

vishalsaini

10-08-2017

Could you find anything for this?
I still cannot resolve the issue

Highlighted

Avatar

Avatar

JoseBerciano

Avatar

JoseBerciano

JoseBerciano

04-10-2017

Currently facing the same issue here in AEM 6.3 as mentioned in the first post.

com.fasterxml.jackson.databind,version=[2.9,3) -- Cannot be resolved

I am using the following dependency in my parent pom

<dependency>

<groupId>com.fasterxml.jackson.core</groupId>

<artifactId>jackson-databind</artifactId>

<version>2.9.1</version>

</dependency>

Downloading the package jackson-databind-2.9.1.jar and installing via package Install/update seems to be fixing the issue, although I was hoping to automate this process in the Maven build

I tried <Import-Package></Import-Package> but I could not get it to work.

Any suggestions?

Highlighted

Avatar

Avatar

ronnyfm

Avatar

ronnyfm

ronnyfm

04-10-2017

What the error.log say when the bundle stops? If all dependencies are resolved, there could be another reason for the bundle error.

Highlighted

Avatar

Avatar

ronnyfm

Avatar

ronnyfm

ronnyfm

04-10-2017

Hi,

Did you try the export bundle as I suggest in a previous post?

Highlighted

Avatar

Avatar

souhaylabdouni

Avatar

souhaylabdouni

souhaylabdouni

15-01-2019

Hi,

One solution, that we use in our project is :

  • Add jackson dependencies with maven scope provided

<!-- JACKSON -->
<dependency>

   <groupId>com.fasterxml.jackson.core</groupId>

   <artifactId>jackson-annotations</artifactId>

   <version>${jackson_version}</version>

   <scope>provided</scope>

</dependency>

<dependency>

   <groupId>com.fasterxml.jackson.core</groupId>

   <artifactId>jackson-core</artifactId>

   <version>${jackson_version}</version>

   <scope>provided</scope>

</dependency>

<dependency>

   <groupId>com.fasterxml.jackson.core</groupId>

   <artifactId>jackson-databind</artifactId>

   <version>${jackson_version}</version>

   <scope>provided</scope>

</dependency>

  • Embed jackson dependencies to your package via content-package-maven-plugin to avoid uploading third party jar via osgi console package install / update

<build>

   <plugins>

   <plugin>

   <artifactId>maven-clean-plugin</artifactId>

   </plugin>

   <plugin>

   <groupId>com.day.jcr.vault</groupId>

   <artifactId>content-package-maven-plugin</artifactId>

   <configuration>

   <embeddeds>

   <embedded>

   <groupId>com.fasterxml.jackson.core</groupId>

   <artifactId>jackson-annotations</artifactId>

   <target>/apps/${app-folder}/install</target>

   </embedded>

   <embedded>

   <groupId>com.fasterxml.jackson.core</groupId>

   <artifactId>jackson-core</artifactId>

   <target>/apps/${app-folder}/install</target>

   </embedded>

   <embedded>

   <groupId>com.fasterxml.jackson.core</groupId>

   <artifactId>jackson-databind</artifactId>

   <target>/apps/${app-folder}/install</target>

   </embedded>

   </embeddeds>

   </configuration>

   </plugin>

   </plugins>

</build>