Incompatible Version of commons-imaging

Description

Using aem mocks Version 2.5.0 together with uber-jar 6.5.0.

Creating an Asset results in this StackTrace:

Our analysis indicates that the uber-jar is using a later version of commons-imaging than aem-mock, which then results in the error above.

Activity

Show:
Stefan Seifert
June 12, 2019, 3:31 PM

the problem is that the common-imaging version that ships with AEM 6.5 (and older version) is not an official release and is not available in any public repo (maven central or adobe repo).
AEM 6.5 includes 1.0.0.R1725432-B002, we reference version 1.0-R1534292 which is available here:
https://repo.adobe.com/nexus/content/groups/public/org/apache/commons/commons-imaging/1.0-R1534292/

however i was not able to reproduce the problem you describe. i tried to reproduce the issue with this branch which builds aem-mock itself against the AEM 6.5 API, it works fine:
https://github.com/wcm-io/wcm-io-testing/tree/experimental/aem65-deps/aem-mock

if the problem arises from classes contained in the uber-jar dependency ordering is also important. i tried with putting the commons-imaging before or after the uber-jar dependency in the pom of the core project - it works in both cases.

can you provide a small sample project that reproduces the problem?

Assignee

Unassigned

Reporter

Daniel Wilking

Labels

None

Components

Priority

Major
Configure