I have taken project clone using git clone, project URL (adobe/aem-guides-wknd: Tutorial Code companion for Getting Started Developing with AEM Sites WKND Tu...). After this have tried to build the project using the below command
mvn clean install -PautoInstallSinglePackage -Pclassic as mentioned in the read me documentation.
but getting below error. Kindly help me on this how to resolve.
I have tried all the possible ways available in the internet regarding the issues similar to this one, but no luck, hence seeking here.
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
Solved! Go to Solution.
Views
Replies
Total Likes
Please check Maven settings
and also check settings.xml file to allow access to the Maven repositories
Ensure your settings.xml file is correctly configured and includes the necessary repositories
<settings>
<mirrors>
<mirror>
<id>central</id>
<mirrorOf>central</mirrorOf>
<url>https://repo.maven.apache.org/maven2</url>
</mirror>
</mirrors>
</settings>
== for certificate issue - it is required to update certificate in keystore --
keytool -import -alias mycert -keystore $JAVA_HOME/jre/lib/security/cacerts -file mycert.cer
Please check Maven settings
and also check settings.xml file to allow access to the Maven repositories
Ensure your settings.xml file is correctly configured and includes the necessary repositories
<settings>
<mirrors>
<mirror>
<id>central</id>
<mirrorOf>central</mirrorOf>
<url>https://repo.maven.apache.org/maven2</url>
</mirror>
</mirrors>
</settings>
== for certificate issue - it is required to update certificate in keystore --
keytool -import -alias mycert -keystore $JAVA_HOME/jre/lib/security/cacerts -file mycert.cer
this is my settings.xml file that I created manually
Hi @VedhaSri tried the same project in my PC and it worked like charm with no errors.
I was using these versions:
java: 11.0.19
maven: 3.9.6
npm: 10.3.0
Try using the same version of java. Sometimes java is responsible.
Also, please share any errors above BUILD FAILURE part in the image you shared.
I can see no errors. Sometimes this section is also helpful. Please try changing the version of java.
Hello @VedhaSri ,
Find the solution here - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/unable-to-build-wknd-proje...
Krass
@VedhaSri The issue in the screenshot is due to cert trust issue. This is quite common.
There is one article on how to resolve this issue by VeenaVikraman
Try to follow the steps in the below article.
https://www.linkedin.com/pulse/sunsecurityvalidatorvalidatorexception-pkix-path-failed-vikraman
If you still face issue, do let us know here and we will try to solve this in a different way.
Hi @gkalyan , this looks like similar to my issue. But in the above article they have added certificate path in JRE folder inside Java JDK. But now a days java is coming without JRE so how can I achieve this without having JRE inside my Java folder. Also as mentioned in the article, certificate of the URL should saved in .cer format but this is not possible now days chrome or edge browsers not providing to export the certificate in such format. Assist me if you have anything.
Adding additional info -
Start command prompt terminal with administrator rights and run the maven command
Find the related issue over here -
Hope this helps
Thanks
Hi @PRATHYUSHA_VP , I am using company laptop so I can't run the command prompt in admin mode.
Hi @VedhaSri ,
Could you please try to add arguments mentioned here https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/unable-to-build-wknd-proje...
mvn clean install -PautoInstallPackage -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
Thanks
Already tried that commands but not working.
Ensure your Maven settings file (~/.m2/settings.xml
) correctly points to the Adobe repository
<id>adobe-public-releases</id> <url>https://repo.adobe.com/nexus/content/groups/public/</url> (could try HTTP once to check)
It could be because of the firewall via corporate networks, You could update the proxy details-
<proxies>
<proxy>
<id>example-proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.example.com</host> <port>8080</port> <username>proxyuser</username>
<password>somepassword</password> <nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
</proxy>
</proxies>
You can also try an upgrade to a more recent JDK version.
This also could be because the SSL certificate of the Adobe repository is not trusted by your JVM.
@VedhaSri Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies