AEM – Eclipse Plugin Setup Tutorial

 

Adobe have released eclipse plugin for developing AEM projects which makes easy to create and develop Adobe CQ / AEM projects. This plugin can be used to develop OSGi bundles, Components , Templates and Content from the scratch.

This plugin will seamlessly integrate with the AEM instance and all the changes can be pushed/deployed directly on to the AEM server.

Installing AEM Plugin in Eclipse (PS: Using Eclipse Luno)

Step 1 : Goto Help > Install New Software…

Step 2 : Click Add and enter http://eclipse.adobe.com/aem/dev-tools/ in Location and click ‘OK’

AEM Plugin URL

Step 3 : Select both ‘AEM’ and ‘Sling’ and Click ‘Next’

 AEM Plugin for Eclipse

Step 4 : Click Finish and restart Eclipse.

Now, we are ready to create AEM project with in eclipse. Adobe has also released an extension for Brackets to develop components which supports ‘Sightly’, a new templating system. I will be posting in detail the steps to create AEM project using eclipse and Bracket plugin soon.

 

12 thoughts on “AEM – Eclipse Plugin Setup Tutorial

  1. Hi
    I have installed the AEM plugin, but i am facing an issue while creating the project with the plugin. The error is “publishing Failed”
    may i know why i am getting this error…..

    Thank you.

     
  2. this is the error log:
    Publishing failed
    Failed installing bundle : Unable to install/update bundle from dir C:\Users\Ruman\project\sample\core\target\classes : Unresolved constraint in bundle org.sample.core [310]: Unable to resolve 310.0: missing requirement [310.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.api)(version>=2.3.0)(!(version>=3.0.0)))
    Unable to install/update bundle from dir C:\Users\Ruman\project\sample\core\target\classes : Unresolved constraint in bundle org.sample.core [310]: Unable to resolve 310.0: missing requirement [310.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.api)(version>=2.3.0)(!(version>=3.0.0)))
    Failed publishing path=/apps/sample/tests, result=JcrResult[ success:false, exception: org.apache.sling.ide.transport.RepositoryException – javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {}dependencies]
    Failed publishing path=/content/sample, result=JcrResult[ success:false, exception: org.apache.sling.ide.transport.RepositoryException – javax.jcr.nodetype.ConstraintViolationException: no matching child node definition found for {http://www.jcp.org/jcr/1.0}content]
    Failed installing bundle : Unable to install/update bundle from dir C:\Users\Ruman\project\sample\it.tests\target\classes : Unresolved constraint in bundle org.sample.it.tests [311]: Unable to resolve 311.0: missing requirement [311.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.junit.annotations)(version>=1.0.0)(!(version>=2.0.0)))
    Unable to install/update bundle from dir C:\Users\Ruman\project\sample\it.tests\target\classes : Unresolved constraint in bundle org.sample.it.tests [311]: Unable to resolve 311.0: missing requirement [311.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.junit.annotations)(version>=1.0.0)(!(version>=2.0.0)))

     
  3. Hi Ruman,
    This is a known issue with the first version which they have released. This issue has been fixed with Sling project and the same fix is been expected in the next release of AEM Dev tools.

    Cause: when it export the ‘cq:Page’ nodetype, it actually creates it as ‘nt:folder’ with filevault settings. But still, if you check in CRXDE, all the top folders would have been created/syncd

    Workaround: Create all these nodes manually for the first time and from there on, sync (import/export) should work without any issues.

    Reference : https://github.com/Adobe-Marketing-Cloud/aem-eclipse-developer-tools/issues/1

    Regards,
    bsloki

     
  4. Installation could not be completed. Only Sling gets installed with version 1.0.6 but AEM and Sling IDE tools,M2E based doesnt get installed.

    Any fix for this?

     
  5. Hi Lokesh,

    I am getting following error when trying to install/configure file vault or Maven plugins:

    Cannot complete the install because one or more required items could not be found.
    Software being installed: AEM Developer Tools 1.0.4 (com.adobe.granite.ide.feature.feature.group 1.0.4)
    Missing requirement: org.apache.sling.ide.impl-vlt 1.0.6 requires ‘package org.osgi.util.tracker 1.5.1’ but it could not be found
    Cannot satisfy dependency:
    From: AEM Developer Tools 1.0.4 (com.adobe.granite.ide.feature.feature.group 1.0.4)
    To: org.apache.sling.ide.feature.feature.group 1.0.6
    Cannot satisfy dependency:
    From: Sling IDE Tools 1.0.6 (org.apache.sling.ide.feature.feature.group 1.0.6)
    To: org.apache.sling.ide.impl-vlt [1.0.6]

    Any help is appreciated.

    Thanks,
    Priya Sharma

     
  6. Hi,
    I am getting the following error and installation gets failed while collecting itself.

    An error occurred while collecting items to be installed
    session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    No repository found containing: osgi.bundle,org.eclipse.m2e.archetype.common,1.6.2.20150902-0001
    No repository found containing: osgi.bundle,org.eclipse.m2e.core,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.core.ui,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.discovery,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.editor,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.editor.xml,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.jdt,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.jdt.ui,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.launching,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.lifecyclemapping.defaults,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.logback.appender,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.logback.configuration,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.maven.indexer,1.6.2.20150902-0001
    No repository found containing: osgi.bundle,org.eclipse.m2e.maven.runtime,1.6.2.20150902-0001
    No repository found containing: osgi.bundle,org.eclipse.m2e.maven.runtime.slf4j.simple,1.6.2.20150902-0001
    No repository found containing: osgi.bundle,org.eclipse.m2e.model.edit,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.profiles.core,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.profiles.ui,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.refactoring,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.scm,1.6.2.20150902-0002
    No repository found containing: org.eclipse.update.feature,org.eclipse.m2e.feature,1.6.2.20150902-0002
    No repository found containing: org.eclipse.update.feature,org.eclipse.m2e.logback.feature,1.6.2.20150902-0002
    No repository found containing: osgi.bundle,org.eclipse.m2e.workspace.cli,0.3.1

     

Leave a Reply

Your email address will not be published. Required fields are marked *