Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

org.apache.jackrabbit.api.jsr283.security -- Cannot be resolved

Avatar

Level 5

Hi, 

I am using CQ5.6 and Maven to build my codebase. Build goes well, but after I look at the bundle state, this shows installed. 

org.apache.jackrabbit.api.jsr283.security -- Cannot be resolved
 

 

IN which repo, I can find this missing dependancy. Any help
Thanks,

1 Accepted Solution

Avatar

Correct answer by
Level 4

In your pom just include the dependency you find through depfinder and rebuild your bundle and try.... 

View solution in original post

8 Replies

Avatar

Level 10

Hi,

Can you please try to add this below dependency

<dependency>
    <groupId>org.apache.jackrabbit</groupId>
    <artifactId>jackrabbit-api</artifactId>
    <version>2.6.2</version>
    <scope>provided</scope>
</dependency>

Please let me know, whether it works.

~ Ratna.

Avatar

Level 5

Ratna Kumar wrote...

Hi,

Can you please try to add this below dependency

<dependency>
    <groupId>org.apache.jackrabbit</groupId>
    <artifactId>jackrabbit-api</artifactId>
    <version>2.6.2</version>
    <scope>provided</scope>
</dependency>

Please let me know, whether it works.

~ Ratna.

 

 

Adding this caused the issue in other bundle as well:

org.apache.jackrabbit.api,version=[1.5,2) -- Cannot be resolved
org.apache.jackrabbit.api.security.user,version=[1.5,2) -- Cannot be resolved

Dependancy that i was using intially: 

<!-- https://mvnrepository.com/artifact/org.apache.jackrabbit/jackrabbit-api --><dependency>   <groupId>org.apache.jackrabbit</groupId>   <artifactId>jackrabbit-api</artifactId>   <version>2.5.2</version>   <scope>provided</scope></dependency>

Avatar

Level 4

Hi, Vdhim

I suggest you to find the right dependency using dependency finder.

http://localhost:4502/system/console/depfinder

And if that didn't worked, in your manifest.mf file remove version=[1.5,2) then try uploading the bundle. 

Thanks,

Vamsi

Avatar

Level 10

Hi,

Yes, Vamsi is correct. I have found this below dependency in http://localhost:4502/system/console/depfinder

<dependency>
    <groupId>org.apache.jackrabbit</groupId>
    <artifactId>jackrabbit-api</artifactId>
    <version>2.6.2</version>
    <scope>provided</scope>
</dependency>

And also remove version in manifest.mf file as it conflict soemtimes.

Hope this helps!

~ Ratna.

Avatar

Level 5

vjetty wrote...

Hi, Vdhim

I suggest you to find the right dependency using dependency finder.

http://localhost:4502/system/console/depfinder

And if that didn't worked, in your manifest.mf file remove version=[1.5,2) then try uploading the bundle. 

Thanks,

Vamsi

 

 

HI,

I have added the same dependancy that I am getting through http://localhost:4502/system/console/depfinder with version 2.5.3 in CQ5.6.

Now, If I do rempval of dependancy information from manifest.mf manually, then do I have to perform this step after every build?

Thanks,

Avatar

Level 5

vjetty wrote...

Nope. 

 

I am using maven as a build tool for my project.Thus manifest.mf will be created through maven-bundle-plugin each time bundle gets build. In that case, which are the changes can be made in pom or any other file.

Avatar

Correct answer by
Level 4

In your pom just include the dependency you find through depfinder and rebuild your bundle and try....