Not able to build code using maven command

rockstar234

15-04-2020

I am not able to build code using maven command  mvn clean install  and getting below error 

 

[ERROR]

[ERROR]   The project com.myorg.aem:myorgaem.ui.apps:0.0.1-SNAPSHOT (C:\Users\sampleuser\myproject\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 
 (http://repo.adobe.com/nexus/content/groups/public):  sun.security.validator.ValidatorException: 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 @ com.myorg.aem:myorgaem.ui.apps:[unknown-version], C:\Users\sampleuser\myproject\ui.apps\pom.xml, line 34, column 16

[ERROR]

[ERROR]   The project com.myorg.aem:myorgaem.ui.content:0.0.1-SNAPSHOT (C:\Users\sampleuser\myproject\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
 (http://repo.adobe.com/nexus/content/groups/public): sun.security.validator.ValidatorException: 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 @ com.myorg.aem:myorgaem.ui.content:[unknown-version], C:\Users\sampleuser\myproject\ui.content\pom.xml, line 34, column 16

 

on Line no. 34 I have 

<packaging>content-package</packaging>

 

In main pom.xml for Plugin com.day.jcr.vault:content-package-maven-plugin:1.0.2 I have 

 

<plugin>

                    <groupId>com.day.jcr.vault</groupId>

                    <artifactId>content-package-maven-plugin</artifactId>

                    <version>1.0.2</version>

                    <configuration>

                        <targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL>

                        <failOnError>true</failOnError>

                        <userId>${vault.user}</userId>

                        <password>${vault.password}</password>

                    </configuration>

                </plugin>

 

also tried to with 

<failOnError>false</failOnError> but getting the same error.

 

 

Answers (0)