Rapid Application Development in Eclipse Alfresco (Hot Reloading)

喜你入骨 提交于 2020-01-05 13:43:05

问题


I want to make changes in the SendAsEmailActionExecuter.java file in the sub-project AMP (add-action-repo) which is inside All-in-one project in Alfresco 5 community. It is an example as you can see in the following link. I am developing in eclipse and when I customize an ftl or js file the eclipse the eclipse reload the changes. How can achieve the same thing with java file without the need to execute clean install -Prun command every time.

I have notice this guide but the DemoComponentTest does not make the trick.

How can achieve hot reloading in a such case ?


回答1:


The Rapid Application Development (RAD) in Alfresco SDK is delivered by the spring loaded library.

Long story short, you need to run your project using the shipped OOTB run.sh / run.bat depending on your OS.

The run script will check if the spring-loaded jar is already present in your repo, run profile setup if it is not present to go fetch it, and then run mvn integration-test -Prun or mvn install -Prun, I do not remember which is called on the script but it should be one of those two


UPDATE :

  • Please refer to this file for further reference
  • Please note that RAD is not available in SDK-2.2 as it is not compatible with it and would prevent the repo from starting
  • SDK 2.2 is only available for alfresco 5.1.x code base (and it is the only viable option for developing 5.1.x extensions)


来源:https://stackoverflow.com/questions/35795070/rapid-application-development-in-eclipse-alfresco-hot-reloading

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