Expand my Community achievements bar.

SOLVED

Error in qrcode generation in aem 6.5

Avatar

Level 1

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>

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Community Advisor

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