Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Getting error during project build

Avatar

Level 2

[ERROR] Failed to execute goal on project aemgeeks.core: Could not resolve dependencies for project com.aem.geeks:aemgeeks.core:jar:1.0-SNAPSHOT: Failure to find org.apache.commons:commons-imaging:jar:1.0-R1534292 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

 

 

Please help to provide solution.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

This artifact does not exist in this specific version, but there are only version 1.0-alpha1 and 1.0-alpha2 available.

 

See https://search.maven.org/artifact/org.apache.commons/commons-imaging

View solution in original post

7 Replies

Avatar

Community Advisor

Hi @neelanshb11 ,

 

Could you please try with below mvn command.

 

mvn clean install -U

 

Avatar

Community Advisor

Hi @neelanshb11,

 

You can do the below things:

  1. go to your .m2 directory and to this path org/apache/commons and check if the bundle exists
    1. KiranVedantam1992_0-1630670686265.png
  2. If yes try deleting it and do "mvn clean install -U"
  3. Also check if you are connected to any VPN which is stopping you to download the bundle
  4. Also you can download the bundle manually and put it in the location mentioned above

 

Hope this helps!

 

Thanks,

Kiran Vedantam

Avatar

Community Advisor

Hi @neelanshb11 ,

I had similar issue and below mvn command works for me.

mvn -PautoInstallPackage -Padobe-public clean install

I use intellij and sometimes intellij resolve dependecies issue on project load you can try intellij also.

Avatar

Administrator

@MayurSatav Good to see you assisting others. Keep the great work in AEM community going. 

Avatar

Community Advisor

Hi @neelanshb11,

Cross check if you are able to build the project successfully from Command prompt once. If you are using any IDE, cross check if the project is updated/resolved with all the dependencies (Can try Maven -> Update project/Download sources/Reload project from being in core module)

Avatar

Correct answer by
Employee Advisor

This artifact does not exist in this specific version, but there are only version 1.0-alpha1 and 1.0-alpha2 available.

 

See https://search.maven.org/artifact/org.apache.commons/commons-imaging

Avatar

Community Advisor

Hi,
This is a transitive dependency of one of the dependency included in your pom.

run mvn clean install -X to check the actual dependency 

 

I am not sure but it is from one of test dependency.

https://wcm.io/handler/commons/dependencies.html

 

try with

<dependency>
            <groupId>io.wcm</groupId>
            <artifactId>io.wcm.testing.aem-mock.junit5</artifactId>
            <scope>test</scope>
        </dependency>