Views
Replies
Total Likes
hi @BhanuMa,
I've a few questions:
<scope>test</scope>
to the dependency and remove the embed, though.
From your Sonar message, the embedded jar version is 1.4.6, but your dependency declares 2.0.0. This discrepancy should be addressed. Have you noticed it?
Hi @giuseppebag ,
Sorry its typo mistake, we are using 1.4.6 in pom.xml also. Just we were thinking if we upgrade the version does it resolve the sonar issues or not.
Views
Replies
Total Likes
IMHO, the best solution is to address the root cause by avoiding the embedding of the jar, if possible. As a last resort, you could instruct SonarQube to exclude embedded jars or generated classes from the analysis to suppress false positives.
If i remove the embed property the jar won't be available. Because of missing this dependency only we added the embedd property.
Views
Replies
Total Likes
HI @BhanuMa ,
The version specified for org.apache.sling.servlet-helpers
in your pom.xml
is 2.0.0.
However, another dependency in your project is also referencing org.apache.sling.servlet-helpers
version 1.4.6.
This is causing a dependency conflict, which may have been introduced during the AEM upgrade or could be coming from the uber jar.
One possible solution is to align the versions by explicitly setting org.apache.sling.servlet-helpers
to 1.4.6 in your pom.xml
.
-Tarun
Hi @TarunKumar ,
Sorry for typo mistake, we were using 1.4.6. Its present in all the places.
Thanks,
Bhanu M.
Views
Replies
Total Likes
@BhanuMa Hey! Just wanted to see if this got resolved. If you solved it yourself, sharing your solution could really help others. And if one of the answers here helped you, marking it as accepted will guide future readers. Thanks!
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies