GithubHelp home page GithubHelp logo

Comments (8)

rombert avatar rombert commented on June 1, 2024

@ashlyjose - thanks for the report. I have a couple of questions

  1. How did you import this project? Is it an exact copy of the project that your colleague has set up?

I'm asking because sometimes when sharing via source control Eclipse files ( .project/.classpath/.settings ) are not added .

  1. Please attach a screenshot of the project facets. You can find it by right-clicking on the project, selecting properties and then navigating to the 'Project Facets' property page.

  2. What version of the AEM developer tools do you use?

from aem-eclipse-developer-tools.

ashlyjose avatar ashlyjose commented on June 1, 2024
  1. Yes, it is the exact copy of the project that my colleague has. Copied the whole folder from his workspace. I copied this to my workspace and then imported as below:

File -> Import -> Maven -> Existing Maven Projects

  1. Screenshot attached for Project Facets of ui.apps project
    apps_project_facets
  2. The version I'm using is AEM 1.0.0.2--cK5l3 (screenshot attached)
    aem_dev_tools_version

from aem-eclipse-developer-tools.

rombert avatar rombert commented on June 1, 2024

Thanks for the info. So it seems that the facets are correctly set. What have you tried and does not work?

from aem-eclipse-developer-tools.

ashlyjose avatar ashlyjose commented on June 1, 2024

Ok, now at this point, although the facets are correctly set, project is not displayed properly in eclipse, meaning I cannot see anything in the JCR Properties when I click on the imported project (components, pages, templates etc..). Also, I see the xml files in Eclipse directly (dialog.xml). Please find the screenshot below.
aem_dev_tools_dialog_xml

Also, I cannot add the ui.apps project to my local AEM server. It does allow me to add the project using "Add and Remove" option right clicking the server, but nothing happens.
I have also tried right clicking on the project AEM -> Export to server - this also does not work

In short,
How do I get the project on to my local AEM server linked to Eclipse project so that I can see and edit the JCR Properties from eclipse?

from aem-eclipse-developer-tools.

mikeyhendy avatar mikeyhendy commented on June 1, 2024

Could you try the following:

  • Right-click on your project > Properties > AEM
  • Note: You will probably see that there is an error message saying that "jcr_root" doesn't exist.
  • Click "Browse" and select "ui.apps" (or "ui.content")/src/main/content/jcr_root
  • Click "OK"
  • Note: The error message should have now disappeared.
  • Click "Apply"
  • Close window

This should now trigger the project to run in the AEM context...

from aem-eclipse-developer-tools.

ashlyjose avatar ashlyjose commented on June 1, 2024

@mikeyhendy Thanks Michael. It works !!

@rombert The workaround specified by Michael works and I'm able to get things running. Do you want me to leave this issue open for a proper fix for this or is this the way it is supposed to work?

from aem-eclipse-developer-tools.

rombert avatar rombert commented on June 1, 2024

@mikeyhendy - thanks for digging up the root cause!

@ashlyjose - Please leave it open, we need to find a better UI for this. For now I'm considering adding an error marker on the project if the 'jcr_root' folder can not be found

from aem-eclipse-developer-tools.

rombert avatar rombert commented on June 1, 2024

The improvement has been added in the Sling IDE Tooling project ( see SLING-4000: Add error marker on the project when content sync root does not exist ) and will be incorporated in the next AEM Developer Tools public release.

If you'd like to build a fix yourself, please follow the instructions from Sling IDE Tooling - building from source.

from aem-eclipse-developer-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.