Expand my Community achievements bar.

SOLVED

i'm facing this dependency issue in aemaacs

Avatar

Level 4

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?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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-bun... 

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

 

View solution in original post

3 Replies

Avatar

Employee Advisor

Hi @vkarthick ,

 

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

 

 

Avatar

Level 4

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

vkarthick_0-1683101848793.png

system/console look like this not resolved

vkarthick_1-1683101974068.png

 

Avatar

Correct answer by
Employee Advisor

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-bun... 

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