Error in qrcode generation in aem 6.5 | Community
Skip to main content
January 20, 2025
Solved

Error in qrcode generation in aem 6.5

  • January 20, 2025
  • 2 replies
  • 567 views

this error is coming also bundles all are in installed state
com.google.zxing,version=[5.9,6) -- Cannot be resolved
com.google.zxing.common,version=[5.9,6) -- Cannot be resolved
com.google.zxing.qrcode,version=[3.4,4) -- Cannot be resolved
com.google.zxing.qrcode.decoder,version=[5.9,6) -- Cannot be resolved

i have added below dependency

<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.4.0</version>
</dependency>
</dependencies>

below pluigins alos added

<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<filterSource>${basedir}/META-INF/vault/filter.xml</filterSource>
<embeddeds>
<embedded>
<groupId>com.google.zxing</groupId>
<type>bundle,jar</type>
<excludeTransitive>true</excludeTransitive>
<isAllVersionsFilter>true</isAllVersionsFilter>
</embedded>
</embeddeds>
</configuration>
</plugin>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 21, 2025

Hi,

 

The issue is that the JAR is not properly embedded into your code, which is why the dependencies aren't available at runtime, causing the bundles to fail to activate. You just need to ensure that the dependencies are embedded correctly. For more details, please refer to my article on this topic here: https://www.oshyn.com/blog/customize-aem-for-max-value 

 

Hope this helps

Esteban Bustamante