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.
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:
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:
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?