Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Regarding page publishing

Avatar

Employee

I am trying to publish the project but 

while running these commands

-------------------------------------------------------------------

mvn -PautoInstallPackagePublish clean install

mvn -PautoInstallPackage clean install -Daem.port=4503

but i am getting error that

-------------------------------------------------------------------------------

Failed to execute goal on project enablementCapstone.core: Could not resolve dependencies for project com.aem.enablement:enablementCapstone.core:jar:1.0.0-SNAPSHOT: org.apache.commons:commons-imaging:jar:1.0-R1534292 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

-------------------------------------------------------------------------------------

my publish instance is in port 4503 and author instance is in port 4502

what should I do?

 
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

The version you are looking for below dependency in your parent pom is not present in maven

 

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-imaging</artifactId>
<version>1.0-R1534292</version>
</dependency>

 

Can you replace with other versions from here and see if resolves. 

https://repo.maven.apache.org/maven2/org/apache/commons/commons-imaging/

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

The version you are looking for below dependency in your parent pom is not present in maven

 

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-imaging</artifactId>
<version>1.0-R1534292</version>
</dependency>

 

Can you replace with other versions from here and see if resolves. 

https://repo.maven.apache.org/maven2/org/apache/commons/commons-imaging/

 

Avatar

Level 5

@Saravanan_Dharmaraj  - Can you check local Maven Repo seems jar is missing as mentioned by @Saravanan_Dharmaraj