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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Getting error during project build

neelanshb11
Level 1
Level 1

[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
Jörg_Hoh
Correct answer by
Employee
Employee

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
kishorekumar14
Level 7
Level 7

Hi @neelanshb11 ,

 

Could you please try with below mvn command.

 

mvn clean install -U

 

KiranVedantam1992
Community Advisor
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

mayur_satav
Level 3
Level 3

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.

kautuk_sahni
Community Manager
Community Manager

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

Vijayalakshmi_S
Community Advisor
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)

Jörg_Hoh
Correct answer by
Employee
Employee

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

Arun_Patidar
Community Advisor
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>