Getting error during project build | Community
Skip to main content
Level 2
September 3, 2021
Solved

Getting error during project build

  • September 3, 2021
  • 6 replies
  • 6041 views

[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.

Best answer by joerghoh

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

6 replies

Kishore_Kumar_
Level 9
September 3, 2021

Hi @neelanshb11 ,

 

Could you please try with below mvn command.

 

mvn clean install -U

 

Kiran_Vedantam
Community Advisor
Community Advisor
September 3, 2021

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

MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
September 3, 2021

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.

Mayur Satav | www.mayursatav.in
kautuk_sahni
Community Manager
Community Manager
September 6, 2021

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

Kautuk Sahni
Vijayalakshmi_S
Level 10
September 3, 2021

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)

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
September 3, 2021

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

arunpatidar
Community Advisor
Community Advisor
September 5, 2021

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>
Arun Patidar