guys , i have installed , javascript console using below command .
java -jar alfresco-mmt.jar install javascript-console-share-<version>.amp /path/to/share.war
without any error , i could instal the amp file . when i tried to list the package using list option , i can see its available as shown below : -
-------------------------------------------------------
C:\Windows\system32>java -jar D:\alfresco-content-services\bin\alfresco-mmt.jar list D:\alfresco-content-services\tomcat\webapps\share.war
Module 'de.fme.alfresco.JavascriptConsole-share' installed in 'D:\alfresco-content-services\tomcat\webapps\share.war'
- Title: fme Javascript Console Share Extension
- Version: 0.7.2001201140
- Install Date: Mon Jan 20 14:18:48 GMT 2020
- Description: Adminstration console module to execute arbitrary javascript code.
----------------------------------------------------------------------------------------------------------
But I am not able to see option to access java script console in left menu as mentioned in usage section . I cant see even this in 'module browser' menu . I have logged in Admin account .
Is there any further setting , i need to do make this module (amp) available in Alfresco ? I am using following version of Alfresco
Enterprise - 5.2.4 (r726ca8d5-b18)
Any help is highly appreciated.
Solved! Go to Solution.
The addon comes as two AMPs, one for the Repository tier (alfresco.war) and one for the Share tier (share.war). You must install both for it to be fully usable.
It looks like you built the module yourself from the GitHub code base. This should not be necessary, since pre-built binaries are available from Maven Central. As far as I can see, the current master only contains 2-3 minor fixes beyond the released version on Maven Central.
After installing - as with any other AMP install - you must make sure to delete the unpacked tomcat/webapps/share and tomcat/webapps/alfresco folders, otherwise you will not see any update, as the AMPs are installed into the WAR, which will not be unpacked when those folders still exist. So in essence, your installation is incomplete.
The addon comes as two AMPs, one for the Repository tier (alfresco.war) and one for the Share tier (share.war). You must install both for it to be fully usable.
It looks like you built the module yourself from the GitHub code base. This should not be necessary, since pre-built binaries are available from Maven Central. As far as I can see, the current master only contains 2-3 minor fixes beyond the released version on Maven Central.
After installing - as with any other AMP install - you must make sure to delete the unpacked tomcat/webapps/share and tomcat/webapps/alfresco folders, otherwise you will not see any update, as the AMPs are installed into the WAR, which will not be unpacked when those folders still exist. So in essence, your installation is incomplete.
I did the same step as mentioned , didnt use locally build version . I have used same version downloaded from Maven repo .Works perfectly fine
thanks for this solution
Hi @brijeshnk,
Thanks for accepting the solution - helps everyone else who encounters a similar problem.
I am new to alfresco and I already installed the .amp files, now what are the files to delete?
Add-ons is the place to find extensions, Alfresco customizations and related projects for your installation.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.