Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Wknd Maven project

Avatar

Avatar
Level 1
Karthick_Vijaya
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Karthick_Vijaya
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Karthick_Vijaya
Level 1

29-03-2019

Hi Team,

I have imported a Wknd project from Github and deployed in my local. I have created a new package under core bundle just say(com.adobe.aem.guides.wknd.core.newpackage) and created a some couple of java classes . I am getting an error as "com.adobe.aem.guides.wknd.core.*.Hello cannot be resolved to a type" when I am using those java class in my component.

Do we need to configure something on pom.xml for this?

Replies

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Gaurav-Behl
MVP

29-03-2019

This could happen due to versions mismatch. Whatever article you followed, make sure you use correct maven archetype version as mentioned in tutorial and deploy in AEM version with Service Pack as mentioned in tutorial.

Avatar

Avatar
Validate 1
Level 7
Prince_Shivhare
Level 7

Likes

96 likes

Total Posts

377 posts

Correct Reply

61 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 1
Level 7
Prince_Shivhare
Level 7

Likes

96 likes

Total Posts

377 posts

Correct Reply

61 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 50
View profile
Prince_Shivhare
Level 7

29-03-2019

Could you please confirm if you bundle is active or not ?

Also which AEM version you are using and what WKND tutorial you have used. paste the link.

Avatar

Avatar
Level 1
Karthick_Vijaya
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Karthick_Vijaya
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Karthick_Vijaya
Level 1

29-03-2019

Hi Prince,

Bundle is in active state and we are getting expected output from classes on other packages. Its only issue with new java package.

I'm using AEM 6.4 version with SP3 and I've deployed Wknd tutorial source code from below link.

GitHub - Adobe-Marketing-Cloud/aem-guides-wknd: Steps to create a website with Adobe Experience Mana...

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Gaurav-Behl
MVP

30-03-2019

Could you explain more regarding "Its only issue with new java package."

Is this issue with your custom package that you've created and added into existing pom.xml?

Avatar

Avatar
Validate 1
Level 7
Prince_Shivhare
Level 7

Likes

96 likes

Total Posts

377 posts

Correct Reply

61 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 1
Level 7
Prince_Shivhare
Level 7

Likes

96 likes

Total Posts

377 posts

Correct Reply

61 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 50
View profile
Prince_Shivhare
Level 7

03-04-2019

please check if you have declared this as <sling-model package> in your POM file.

if not please declare it. also if you have created package other than this path com.adobe.aem.guides.wknd.core.*

please include that as well. also, check if your model class or servlet is present in console/component or check in sling resource resolver.

~ Prince