Getting error during project build | Community
Skip to main content
Level 2
Sep 3, 2021 10:40 AM UTC
Solved

Getting error during project build

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

joerghoh
joerghohAccepted solution
Employee
Sep 3, 2021 5:26 PM UTC

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

7 replies

arunpatidar
New Participant
Sep 5, 2021 4:17 PM UTC

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>
Translate
Arun Patidar
joerghoh
joerghohAccepted solution
Employee
Sep 3, 2021 5:26 PM UTC

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

Translate
Vijayalakshmi_S
Level 10
Sep 3, 2021 2:54 PM UTC

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)

Translate
MayurSatav
New Participant
Sep 3, 2021 12:17 PM UTC

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.

Translate
kautuk_sahni
Employee
Sep 6, 2021 11:55 AM UTC

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

Translate
Kautuk Sahni
Kiran_Vedantam
New Participant
Sep 3, 2021 12:06 PM UTC

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

Translate
Kishore_Kumar_
Level 9
Sep 3, 2021 10:43 AM UTC

Hi @neelanshb11 ,

 

Could you please try with below mvn command.

 

mvn clean install -U

 

Translate