cancel
Showing results for 
Search instead for 
Did you mean: 

Redeployment of WAR while installing AMP files replacing all modification

shibu
Champ in-the-making
Champ in-the-making
While installing add-ons (.amp files) to the existing alfresco, the alfresco.war will redeploy again. This will change all the modification done in the theme and configuration files. So, how can I overcome this? Is there any way to take WAR of modified bundle?
4 REPLIES 4

abarisone
Star Contributor
Star Contributor
Hi,
you should put all your modifications into your AMP file and then add it to the original alfresco.war, and then deploy this one only.
The AMP puts file according to a rule contained in it, through Module Management Tool.
This will allow you to, for example, make an upgrade of version without too much pain.

Hope this helps.
Regards,
Andrea

shibu
Champ in-the-making
Champ in-the-making
Hi abarisone,
I am vry new to alfresco. So, didnt get your answer.
The changes I made in themes and in many other files contained in WEB-INF. So, as you said, how can I put all those modifications into new AMP file, which is the add-on(for eg : reposize-dashlet-share.amp)…? Sorry, not understanding. 😞

abarisone
Star Contributor
Star Contributor
Hi,
it simply means that is not recommended to put your modifications directly modifying the original Alfresco or Share wars, but you should concentrate all your modification into an AMP file.
Then you apply the AMP to the original wars and you manage to keep things separated.
Since you are new to Alfresco, you might have a look here
http://docs.alfresco.com/4.1/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fdev-Share-i... http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions
https://wiki.alfresco.com/wiki/AMP_Files

Regards,
Andrea

mitpatoliya
Star Collaborator
Star Collaborator
Yes Shibu,

And one more thing I want to point out here is Once you apply one AMP If you are deploying aging the same AMP after some changes then you must change the version otherwise it will not pickup the new changes from the AMP file.