Maven Build Error - Could not transfer artifact com.day.jcr.vault:content-package-maven-plugin:pom:1.0.2 from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public)

gargrohan

14-08-2020

Hi All,

 

I am trying to build an already existing maven project using mvn clean install -P autoInstallPackage

I am getting the below error:-

 

Downloading from adobe-public-releases: https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/content-package-maven-plugin/1....
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:1.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:1.0.2 @
[ERROR] Unknown packaging: content-package @ line 35, column 16
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:1.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:1.0.2 @
[ERROR] Unknown packaging: content-package @ line 34, column 16
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:1.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:1.0.2 @
[ERROR] Unknown packaging: content-package @ line 34, column 16
@
[ERROR] The build could not read 3 projects -> [Help 1]
[ERROR]
[ERROR] The project com.xyz:xyz-redesign.all:1.0-SNAPSHOT (D:\xyz-redesign\xyz-redesign\all\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:1.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:1.0.2: Could not transfer artifact com.day.jcr.vault:content-package-maven-plugin:pom:1.0.2 from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public  ) : Transfer failed for https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/content-package-maven-plugin/1....: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR] Unknown packaging: content-package @ line 35, column 16
[ERROR]
[ERROR] The project com.xyz:xyz-redesign.ui.apps:1.0-SNAPSHOT (D:\xyz-redesign\xyz-redesign\ui.apps\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:1.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:1.0.2: Could not transfer artifact com.day.jcr.vault:content-package-maven-plugin:pom:1.0.2 from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public) : Transfer failed for https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/content-package-maven-plugin/1....: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR] Unknown packaging: content-package @ line 34, column 16
[ERROR]
[ERROR] The project com.xyz:xyz-redesign.ui.content:1.0-SNAPSHOT (D:\xyz-redesign\xyz-redesign\ui.content\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:1.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:1.0.2: Could not transfer artifact com.day.jcr.vault:content-package-maven-plugin:pom:1.0.2 from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public) :Transfer failed for https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/content-package-maven-plugin/1....: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR] Unknown packaging: content-package @ line 34, column 16

 

I am able to connect to URL https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/content-package-maven-plugin/1.... using my browser and my settings.xml file for m2 has https based URL. <url>https://repo.adobe.com/nexus/content/groups/public</url>

 

Could you please let me know how to resolve this issue ?

Accepted Solutions (1)

Accepted Solutions (1)

Ankur_Khare

MVP

14-08-2020

try this command-

 

mvn clean install -P autoInstallPackage -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

Answers (2)

Answers (2)

Nikhil-Kumar

MVP

15-08-2020

Hey,

Try using the mvn -PautoInstallPackage -Padobe-public clean install
If issue still exists you try updating your settings/xml in .m2 folder.

I have the updated settings.xml which worked for me, you get it on my post settings.xml
I
t contains Adobe Public added to it.
It worked for me!!!