AnsweredAssumed Answered

Error while deploying amp file to the war

Question asked by prashidhashrestha on Jun 12, 2019
Latest reply on Jun 13, 2019 by

I am trying to deploy an amp file that has some customisation in to the war file that is on a remote server. I created the amp file by using documentation


Everything goes well till here. I obtain amp file from .m2/repository/com/ folder.


To install the amp I used this documentation


Then I move the amp file to the remote server.and use


java -jar alfresco-mmt.jar install example-amp.amp share.war -preview

When I run this command i encounter my first error. Below is the error.


05120001 An error was encountered during deployment of the AMP into the WAR: 05120000 ERROR: The amp will overwrite an existing file in the war '/js/example/widgets/templates/TemplateWidget.html'


It does give the option to use -force option Below is the command I used with the force command.


java -jar alfresco-mmt.jar install example-amp.amp share.war -force

When this command is run, it works fine. Then I delete the share folder from alfresco_home/opt/alfresco/tomcat/webapps and restart alfresco. But no change is made to the share.


Can anyone help. Is there anything I am missing.?


Thanks in advance.