![]() In the context menu, select Maven -> Update Projects.To resolve invalid dependencies and project definition proceed as follows: Troubleshooting Resolving Invalid Project Definition You now have a target folder created with your package inside (called, for example PROJECT.ui.apps-0.0.1-SNAPSHOT.zip). If you wish to re-build a package out of your project, right-click on the PROJECT.ui.apps or PROJECT.ui.content and choose Run As -> Maven Install. Once done, you should have your package running on your instance, and on save, any change automatically gets synchronized to the instance. In the Servers panel, make sure that your connection is started, and if not start it. You can now synchronize that new content to your AEM instance. Replace the rules with the ones of your package that start with /content. Then open PROJECT.ui.content/src/main/content/META-INF/filter.xml. Replace the content of the element with the rules of your package that start with /apps and /etc In Eclipse, open PROJECT.ui.apps/src/main/content/META-INF/filter.xml. This is an example of how your filter.xml file can look:Īs for the content of your package that was split into two projects, you must also split these filter rules into two and update accordingly the filter.xml files of the two projects.For that, open the META-INF/vault/filter.xml file of your content package in a separate text/code editor. Now you have to update the filter.xml files of these two projects to correspond to the content of your content package. In Eclipse, right-click on the PROJECT.ui.content project and choose Refresh.Delete the content folder that you should now see and place here the content folder of your content package.Right-click on the deeper content folder and choose Show In -> System Explorer.In the Project Explorer panel, unfold PROJECT.ui.content > src > main > content > jcr_root > content.Then do the same for the PROJECT.ui.content and replace its content folder with the one of your packages: In Eclipse, right-click on the PROJECT.ui.apps project and choose Refresh.Delete the apps and etc folders that you should now see and place here the apps and etc folders of your content package.Right-click on the apps folder and choose Show In > System Explorer.In the Project Explorer panel, unfold PROJECT.ui.apps > src > main > content > jcr_root > apps.Replace the content of your PROJECT.ui.apps project with the apps and etc folders of your package: .launcher and .tests for integration tests.re for Java™ bundles (these become interesting when you want to add Java™ code).PROJECT.ui.content for /content that is authored.PROJECT.ui.apps for /apps and /etc content.You can use the New Project feature to create the right structure for you:įollow the instructions to create a Sample Multi-Module Project and you have the following projects created for you, which permit a healthy separation of concerns: In this case, please follow the procedure describe in Resolving Invalid Project Definition. On a fresh installation (more specifically, when maven dependencies have never been downloaded) you might get the project created with errors. In the File > New > Project menu, browse to the AEM section and select AEM Sample Multi-Module Project. ![]() Learn more about the Project Archetype.įollow these steps to create the sample project: It also serves as a best-practice guide to several AEM features. The Experience Manager Developer Tools for Eclipse comes with a sample, multi-module project that helps you quickly get up to speed with a project setup in Eclipse.
0 Comments
Leave a Reply. |