Create a hello world bundle in eclipse and check the working jar file on CRX

人盡茶涼 提交于 2019-12-12 04:56:10

问题


I am learning Adobe CQ5 on my own. I had pulled the folder structure of jcr_root to my eclipse workbench using vaultclipse. Now my request is can someone provide me some references wherein I can write a hello world bundle in eclipse, bundle it and then push the jar file onto CRX.? To be simple, Steps to achieve a working bundle on CRX which we have created on eclipse environment.

What ever I have been through the reference links of Adobe CQ5 blogs, I see most of them are on CRXDE environment rather than eclipse environment.


回答1:


I'd prefer you to use Eclipse IDE or InteliJ IDEA. For exlipse: Use maven command on bundle's pom.xml file

  1. rightclick on pom.xml file of bundle.
  2. Run as.
  3. Run configurations.
  4. In Base derictory field browse package of your bundle.
  5. In Goals field put:

    install org.apache.sling:maven-sling-plugin:install -Dsling.url=http://SERVERNAME/system/console/install -Dsling.user=admin -Dsling.password=admin

  6. Press Run button

and yours bundle will be installed to CRX

You can check if bundle installed using link

http://SERVENAME/system/console/bundles


来源:https://stackoverflow.com/questions/28391840/create-a-hello-world-bundle-in-eclipse-and-check-the-working-jar-file-on-crx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!