Alfresco / alfresco-sdk

The Alfresco In-Process SDK is based on Apache Maven, includes support for rapid and standard development, testing, packaging, versioning and release of your Alfresco integration and extension projects
Apache License 2.0
186 stars 113 forks source link

Hotswap share not working #487

Closed kodermax closed 3 years ago

kodermax commented 6 years ago

I'm submitting a ... (check one with "x")

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Refresh webscripts on the path src/main/resources/META-INF/resources/components/upload/dnd-upload-custom.js with goal mvn compile alfresco:refresh-share does refresh but the changes aren't visible.

Your Environment

3.0.1 5.2.f 5.2.e
binduwavell commented 6 years ago

@kodermax, I don’t think hotseap is involved with JS WebScript reloading. I wonder if you might want to place your WebScript in the extension-web path?

gehriga commented 6 years ago

Hi @binduwavell , I've encountered the same problem. The mentioned file or path ain't a Webscript JS, but a client-side file. src/main/resources/META-INF/resources is the correct path for placing such a file, especially when you're producing a JAR module and not an AMP.

I've tried several hours to make Share reload changes there, but without success. Neither through "refresh webscripts", setting "disable-resource-caching" in share-config-custom.xml to true, nor through HotSwapAgent's capabilities.

I think this has to be addressed by the SDK. Especially because it has been possible with older versions of the SDK (where those files were part of the AMP, which (I think) was the reason for this to work).

Mord1n commented 6 years ago

Im having the same issue as gehriga, any solutions or workarounds would be greatly appreciated.

MatsKarlsson commented 6 years ago

Think it's the same as with repo. As a workaround I have gotten it to work using HotSwapAgent following: https://docs.alfresco.com/5.2/tasks/sdk-hot-reload-hotswap.html

For me it works with web scripts and java code in repo.

ardole commented 6 years ago

Hi @gehriga @binduwavell,

Same thing for me, with SDK 3.0.1, Alfresco 5.2.1.

The resources (JS) are in src/main/resources/META-INF/resources (trying in web folder with the same result), disable-resource-caching is true. mvn compile alfresco:refresh-share does not work with and without HotSwapAgent.

Any news from your side ?