ani03sha / redquark

Code that powers personal :nerd_face: website built using Gatsby, ReactJS :atom_symbol: and Node
https://redquark.org/
MIT License
11 stars 4 forks source link

aem/day-04-setup-aem-dev-environment/ #3

Closed utterances-bot closed 4 years ago

utterances-bot commented 4 years ago

Day 04 - Setup AEM Development Environment | Red Quark

Bonjour les amis 👋! So far in this development series we tried to answer following questions - What is AEM? Why do we need AEM? What are the building blocks of AEM? … and a few more. In this post, we will setup a development environment for AEM and discuss in detail about a…

https://redquark.org/aem/day-04-setup-aem-dev-environment/

harikrishna159 commented 4 years ago

Well facts are there in this article, highly recommended for AEM developer, so that basics will recollect .

olidare commented 4 years ago

Hi have you ever seen this error when installing AEM IDE Tooling 4 IntelliJ?

com.intellij.diagnostic.PluginException: org.osgi.service.event.EventAdmin requested as a service, but it is a component - convert it to a service or change call to ApplicationManager.getApplication().getComponent() [Plugin: com.headwire.aem.tooling.intellij] at com.intellij.ide.plugins.PluginManagerCore.createPluginException(PluginManagerCore.java:451) at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:12) ..... continued

ani03sha commented 4 years ago

Which IntelliJ version are you using? Can you please try this with the latest version of IntelliJ, if not using already?

olidare commented 4 years ago

I solved it by using the latest beta version of AEM IDE Tooling 4 IntelliJ where they have solved the issue the standard plugin experiences

ani03sha commented 4 years ago

Great!

ssharma250894 commented 4 years ago

Hi, while creating new project i am unable to see the maven archtype 23, it is showing latest archtype 10.

Anirudh92 commented 4 years ago

there are issues with the Archetype 23, observed that the ui.frontend (chose Angular) karma test cases are failing. Will post solution once I resolve it.

Anirudh92 commented 4 years ago

Facing the following issues while building the application

03 09 2020 00:26:58.455:INFO [karma-server]: Karma v4.1.0 server started at http://0.0.0.0:9876/ [INFO] 03 09 2020 00:26:58.476:INFO [launcher]: Launching browsers ChromeHeadless with concurrency unlimited [INFO] 03 09 2020 00:26:58.495:INFO [launcher]: Starting browser ChromeHeadless [ERROR] [ERROR] ERROR in node_modules/@adobe/cq-spa-component-mapping/dist/ComponentMapping.d.ts:14:16 - error TS1086: An accessor cannot be declared in an ambient context.

Is there a way to skip the frontend karma test cases ? or work around to fix it. ?

One observation is, looks like the angular package is deprecated [REF] : https://www.npmjs.com/package/@adobe/cq-spa-component-mapping

Mwashi commented 4 years ago

@anirudh92 @anio3sha. same issues with the Archetype 23, cant see the option when trying to create a new project using maven archetypes on IntelliJ . Any reasons why? Trying to go through the lecturers this wk. Thanks!!

ani03sha commented 4 years ago

Hi everyone, if you are unable to see the archetype options, make sure you are using the latest versions of AEM IDE Tooling 4 IntelliJ and AEM IntelliJ Plugin. If you are facing issues even then, then you can create the project using maven command from here or try with the latest version (which is 24 at the moment).

aromsheik commented 4 years ago

Hi I'm unable to find the "AEM IntelliJ Plugin" in the search plugins, please guide

ani03sha commented 4 years ago

I think it is not available anymore in the IntelliJ marketplace. But you should be able to develop using the AEM IDE Tooling 4 IntelliJ plugin. Let me know in case you face any issues with the development.

nutmix commented 3 years ago

Awesome work. I dont have intellij (too expensive), but i do use the "export to AEM server" available for visual studio code via the AEM plugin. In your description above you have "IntelliVault âž¡ Pull from CRX" Isnt this the wrong way round? Dont you want to export your code to AEM, not import something from AEM?

BalaramaRajuRudraraju commented 3 years ago

Thank You Very much. The article is simple, clean and straightforward yet it is till well detailed.

venky7799 commented 1 year ago

[ERROR] Failed to execute goal on project AEM-Tutorials.all: Could not resolve dependencies for project org.redquark.aem.tutorials:AEM-Tutorials.all:content-package:1.0-SNAPSHOT: com.adobe.cq:core.wcm.components.examples:zip:2.20.8 was not found in https://repo.adobe.com/nexus/content/groups/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of adobe-public-releases has elapsed or updates are forced

ani03sha commented 1 year ago

@venky7799, this looks like maven issue. you may have to force update the local maven repository or you can also try to delete your .m2 folder and try to rebuild the project. Since this article is old, there may be a case that the aforementioned artifact is not present. You can also try to update your core components version.