How to import wknd demo project into eclipse? | Community
Skip to main content
Level 8
April 6, 2021
Question

How to import wknd demo project into eclipse?

  • April 6, 2021
  • 1 reply
  • 898 views

This document:

 

https://experienceleague.adobe.com/docs/experience-manager-64/developing/devtools/aem-eclipse.html?lang=en#how-to-import-existing-projects

 

says how to add the eclipse aem plugin, and how to create a new project, but the section on importing an existing project is blank.

In eclipse when I import existing projects, there are some options:

 

 

I am guessing we should check "Search for nested projects" as this finds a lot of stuff.

When imported this way, eclipse reports a lot of errors in both java and maven config, although I can build on the command line.

 

 

If I try to create a new java class, e.g. in core, it doesnt give this option. The only option is "file".  When I create java file, its empty. This makes using eclipse for java development pointless - at least VS code recognises that if you create a file called xxx.java, it adds the package and class name.

 

Presumably, Eclipse doesn't recognise the latest AEM wknd project as a java project, even though it recognises it as maven.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Asutosh_Jena_
Community Advisor
Community Advisor
April 7, 2021

Hi @tb3dock 

Please follow the below steps to import an existing maven projects into Eclipse:

  • In Eclipse, choose File > Import…
  • In the Import Dialog, choose Maven > Existing Maven Projects, then click “Next”.
  • Enter the path to your project’s top-level folder, then click “Select All” and “Finish”.
  • You are now all set for using Eclipse to develop your AEM project.

 

For more details please refer the below article by Adobe:

https://experienceleague.adobe.com/docs/experience-manager-65/developing/devtools/howto-projects-eclipse.html?lang=en#import-the-maven-project-into-eclipse

 

Hope this helps!

Thanks!

TB3dockAuthor
Level 8
April 7, 2021
Thanks. I tried this also, gives same results. Ill just stick with VS Code.