Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting errors while building the code taken from git clone #472

Open
KavyaManjari opened this issue Nov 7, 2024 · 5 comments
Open

Comments

@KavyaManjari
Copy link

I have taken project clone using git clone, after this have tried to build the project using the below command
mvn clean install -PautoInstallSinglePackage -Pclassic
but getting below error. Kindly help me on this how to resolve.

Failed to read artifact descriptor for org.apache.commons:commons-imaging:jar:1.0-R1534292
[ERROR] Caused by: The following artifacts could not be resolved: org.apache.commons:commons-imaging:pom:1.0-R1534292 (absent): Could not
transfer artifact org.apache.commons:commons-imaging:pom:1.0-R1534292 from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups
/public): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Used versions
Java
openjdk version "11.0.10" 2021-01-19 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.10+9-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.10+9-LTS, mixed mode)

Maven
Maven home: C:\Apache Maven 3.9.9
Java version: 11.0.10, vendor: Red Hat, Inc., runtime: C:\Users\kk\Downloads\java-11-openjdk-11.0.10-1 3\java-11-openjdk-11.0.10-1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Node
v20.16.0
npm
10.8.1

AEM 6.5.0
Service pack - 6.5.21.0
Screenshot 2024-11-07 191417

@SachinMali
Copy link
Contributor

I could not reproduce it, and the JAR file (commons-imaging-1.0-R1534292.jar) is present in the public repo, I was able to download it (after deleting it from my local repo directory), see

[INFO] -------------< com.adobe.aem.guides:aem-guides-wknd.core >--------------
[INFO] Building WKND Sites Project - Core 3.2.1-SNAPSHOT [2/12]
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from adobe-public-releases: https://repo.adobe.com/nexus/content/groups/public/org/apache/commons/commons-imaging/1.0-R1534292/commons-imaging-1.0-R1534292.pom
Progress (1): 4.1 kB
...
Progress (1): 13 kB

Downloaded from adobe-public-releases: https://repo.adobe.com/nexus/content/groups/public/org/apache/commons/commons-imaging/1.0-R1534292/commons-imaging-1.0-R1534292.pom (13 kB at 66 kB/s)
Downloading from adobe-public-releases: https://repo.adobe.com/nexus/content/groups/public/org/apache/commons/commons-imaging/1.0-R1534292/commons-imaging-1.0-R1534292.jar
Progress (1): 4.1/716 kB
Progress (1): 7.7/716 kB
...
Progress (1): 708/716 kB
Progress (1): 712/716 kB
Progress (1): 716 kB

Downloaded from adobe-public-releases: https://repo.adobe.com/nexus/content/groups/public/org/apache/commons/commons-imaging/1.0-R1534292/commons-imaging-1.0-R1534292.jar (716 kB at 8.4 MB/s)
[INFO]

@KavyaManjari
Copy link
Author

How can I delete it from my local

@SachinMali
Copy link
Contributor

Locate your .m2 directory (how to locate .m2 folder) and navigate to repository/org/apache/commons/commons-imaging/1.0-R1534292 to delete the jar file. However, in your case, the jar does not exist in the local repo thus might not find it.

Other debugging tips:

  • Try running the maven command with the -X flag to get more logs.
  • Check if you are behind proxy or so
  • Any Maven settings.xml configs are causing these issues
  • Ask your colleague/friend to reproduce by deleting it from the local repo.

@KavyaManjari
Copy link
Author

image
image
image
image
image
image
I have run the mvn cmd with -X.....these are the errors I am getting
image
this is my .m2 directory

@SachinMali
Copy link
Contributor

SachinMali commented Nov 11, 2024

The PKIX and related valid certification suggest this is related to some corporate proxy. See if this helps. If not, try disabling the proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants