0
votes

I have added the latest version of AEM Mocks (2.7.2) as a Maven dependency in my AEM project. When I try to build my project, I get an error saying that this artifact cannot be found: com.day.commons:day-commons-gfx:jar:2.1.28. So I looked online, found it and added it as a dependency. But now I get the same error when trying to build. Does this artifact still exist? When trying various recent versions of AEM Mocks, I found that they all depend on this missing artifact.

For now, I downgraded to version 2.3.0, which works fine without that artifact but I would like to use the most recent version if possible.

Can anyone please help? Thanks!

1

1 Answers

1
votes

This artifact is defined as a workaround, it is explained here in comment: https://github.com/wcm-io/wcm-io-testing/blob/develop/aem-mock/core/pom.xml#L254:

Workaround for AEM 6.5: The new uber-jar does no longer contain the package com.day.imageio.plugins

It works without any issues for me, so I would check if you have correctly configured Maven repositories. To do it, in your Maven project root type:

mvn help:evaluate

and then:

${project.repositories}

It should list your project effective repositories. Ensure that there is Central Repository (https://repo.maven.apache.org/maven2/) listed. If it is there, then maybe your corporate network cuts requests to external repositories or it was temporarily down.