Unable to build AEM maven project because failed to resolve cndNames | Community
Skip to main content
Level 3
Aug 20, 2020 1:11 PM UTC
Solved

Unable to build AEM maven project because failed to resolve cndNames

Hi Team,

 

I am unable to build a maven AEM project because of failure to resolve cndNames.

Failed to execute goal net.adamcin.oakpal:oakpal-maven-plugin:1.5.1:scan (default) on project *******: Failed to execute package scan. Failed to resolve cndNames.: Failed to find node type definition on classpath for cndName exportnodetype.jsp

 

Can someone please help me out here?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SundeepKatepally
SundeepKatepallyAccepted solution
New Participant
Aug 20, 2020 2:57 PM UTC

Which maven archetype you are using ?

Latest version is 22 , i don't see any error with the latest archetype. 

 

Also in the maven archetype the mentioned plug in (net.adamcin.oakpal:oakpal-maven-plugin)  is not there .

 

5 replies

arunpatidar
New Participant
Aug 24, 2020 2:17 PM UTC
BrianKasingli
New Participant
Aug 20, 2020 8:39 PM UTC

It looks like the dependency has an error, try deleting the artifact in your ~/.m2 file, include this dependency in your root + core pom.xml, and try to re-download & rebuild your project.

<!-- https://mvnrepository.com/artifact/net.adamcin.oakpal/oakpal-maven-plugin --> <dependency> <groupId>net.adamcin.oakpal</groupId> <artifactId>oakpal-maven-plugin</artifactId> <version>1.5.1</version> </dependency>

I hope this works.

Translate
Level 3
Aug 21, 2020 4:02 AM UTC
Hi BrianKasingil, I had tried the same thing, it downloaded the version 1.5.1 again but again the oakpal scanning was failing.
Translate
SundeepKatepally
SundeepKatepallyAccepted solution
New Participant
Aug 20, 2020 2:57 PM UTC

Which maven archetype you are using ?

Latest version is 22 , i don't see any error with the latest archetype. 

 

Also in the maven archetype the mentioned plug in (net.adamcin.oakpal:oakpal-maven-plugin)  is not there .

 

Translate
Level 3
Aug 21, 2020 4:05 AM UTC
we are not using the latest maven archetype, as the project was created few years back . 😞
Translate