i'm facing this dependency issue in aemaacs | Community
Skip to main content
New Participant
May 3, 2023
Solved

i'm facing this dependency issue in aemaacs

  • May 3, 2023
  • 1 reply
  • 957 views

com.maxmind.db -- Cannot be resolved com.maxmind.geoip2 -- Cannot be resolved com.maxmind.geoip2.exception -- Cannot be resolved com.maxmind.geoip2.model -- Cannot be resolved com.maxmind.geoip2.record -- Cannot be resolved

 

i'm trying to resolve this dependency issue but not able to fix it. due this issue bundle is not started.

could you please anyone guide me that how to fix that?

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 nitesh_kumar-1

Check your error logs, during the deployment OSGi container logs the bundle entries if they have some issues.

In this case, it would be better if you could check the status of this particular bundle if it's active and also available on the OSGi console.

 

Also since it's a JAR you need to convert it to bundle

https://aemsimplifiedbynikhil.wordpress.com/2020/08/23/resolve-dependencies-by-converting-jar-to-bundle-aem-6-5-5/ 

https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-17475.html?lang=en

 

If you don't need to have this package in OSGI, you can also embed it into your application bundle, using bnd plugin.

https://myaemlearnings.blogspot.com/2021/12/embed-third-party-dependency-using-bnd.html 

 

Regards,

Nitesh

 

1 reply

nitesh_kumar-1
Employee
May 3, 2023

Hi @karthickve ,

 

Try adding below dependency in your core Pom

 

<!-- https://mvnrepository.com/artifact/com.maxmind.geoip2/geoip2 --> <dependency> <groupId>com.maxmind.geoip2</groupId> <artifactId>geoip2</artifactId> <version>4.0.1</version> </dependency>

 

Also don't forget to embed this as well in the container POM file

 

<embedded> <groupId>com.maxmind.geoip2</groupId> <artifactId>geoip2</artifactId> <target>/apps/<yourfolder>/install</target> </embedded>

 

Hope this helps!

 

Regards,

Nitesh

 

 

New Participant
May 3, 2023

i have already have entry for that and i'm able to see in crx, but in system/console

system/console look like this not resolved

 

nitesh_kumar-1
nitesh_kumar-1Accepted solution
Employee
May 3, 2023

Check your error logs, during the deployment OSGi container logs the bundle entries if they have some issues.

In this case, it would be better if you could check the status of this particular bundle if it's active and also available on the OSGi console.

 

Also since it's a JAR you need to convert it to bundle

https://aemsimplifiedbynikhil.wordpress.com/2020/08/23/resolve-dependencies-by-converting-jar-to-bundle-aem-6-5-5/ 

https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-17475.html?lang=en

 

If you don't need to have this package in OSGI, you can also embed it into your application bundle, using bnd plugin.

https://myaemlearnings.blogspot.com/2021/12/embed-third-party-dependency-using-bnd.html 

 

Regards,

Nitesh