Could not find artifact org.apache.commons:commons-imaging:jar:1.0-R1534292 | Community
Skip to main content
RashidJorvee
Level 4
November 25, 2022
Solved

Could not find artifact org.apache.commons:commons-imaging:jar:1.0-R1534292

  • November 25, 2022
  • 3 replies
  • 22690 views

Hi All, when I am trying to build the ALM project with autoInstallPackage parameter then maven build is getting failed and I am seeing below dependency error. But there is no any dependency set in project POM or manifest file. And without autoInstallPackage build is getting success. Could someone help, what could be the reason for this error.

 

Could not resolve dependencies for project com.adobe.learning:aem-learning-core:jar:1.0.1: Could not find artifact org.apache.commons:commons-imaging:jar:1.0-R1534292 in central (https://repo.maven.apache.org/maven2)

 

Thank you

Rashid

Best answer by Jagadeesh_Prakash

@rashidjorvee Hope below URL is helpful

And also while triggering a local build try adobe-public parameter as well

 

mvn clean -PautoInstallPackage -Padobe-public -Dskip.npm=true -Dmaven.test.skip=true install

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-blogs/wknd-tutorial-project-setup-aem-community-blog-seeding/ba-p/360773

 

3 replies

Jagadeesh_Prakash
Community Advisor
Jagadeesh_PrakashCommunity AdvisorAccepted solution
Community Advisor
November 25, 2022

@rashidjorvee Hope below URL is helpful

And also while triggering a local build try adobe-public parameter as well

 

mvn clean -PautoInstallPackage -Padobe-public -Dskip.npm=true -Dmaven.test.skip=true install

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-blogs/wknd-tutorial-project-setup-aem-community-blog-seeding/ba-p/360773

 

RashidJorvee
Level 4
November 28, 2022

adobe-public works. Thank you @jagadeesh_prakash 

arunpatidar
Community Advisor
Community Advisor
November 28, 2022

Adobe repo is going to decommissioned. just make sure you are not using this dependency for cloud manager.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/not-able-to-access-repo-adobe-com/td-p/386197 

Arun Patidar
arunpatidar
Community Advisor
Community Advisor
November 25, 2022

try updating correct dependency version or use adobe repo to download

 

<dependency>
              <groupId>io.wcm.maven</groupId>
              <artifactId>io.wcm.maven.aem-cloud-dependencies</artifactId>
              <version>2021.3.5087.20210322T071003Z-210225.0000</version>
              <type>pom</type>
              <scope>import</scope>
            </dependency>

 

Arun Patidar
Level 3
May 29, 2023

Hi Arun,

We are using on-premise AEM6.5 and getting same dependency error while doing build using same above command.

Failed to collect dependencies at io.wcm:io.wcm.testing.aem-mock.junit4:jar:2.6.0 -> io.wcm:io.wcm.testing.aem-mock.core:jar:2.6.0 -> org.apache.commons:commons-imaging:jar:1.0-R1534292: Failed to read artifact descriptor for org.apache.commons:commons-imaging:jar:1.0-R1534292: Could not transfer artifact org.apache.commons:commons-imaging:pom:1.0-R1534292 from/to adobe (https://repo.adobe.com/nexus/content/groups/public/😞

arunpatidar
Community Advisor
Community Advisor
May 31, 2023

Hi,

You can use the latest dependency for 

io.wcm.maven.aem-cloud-dependencies

https://wcm.io/tooling/maven/aem-dependencies.html 

Arun Patidar
December 28, 2023

Different ways to address the issue.

1. using of adobe-public profile attribute in maven command.

 

mvn clean install -Padobe-public

 

or

2. add the below dependency in parent pom.xml (suggested to place it below the uber jar in aem dependencies section).

 

<!-- https://wcm.io/tooling/maven/aem-dependencies.html for cloud sdk versions --> <!-- https://mvnrepository.com/artifact/io.wcm.maven/io.wcm.maven.aem-dependencies for other versions --> <dependency> <groupId>io.wcm.maven</groupId> <artifactId>io.wcm.maven.aem-dependencies</artifactId> <version>6.5.19.0000</version> <type>pom</type> </dependency>