You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running an AMP installation into the Alfresco/Share WAR file (using the -Pamp-to-war or using the maven-war-plugin overlay syntax), the Alfresco Maven Plugin invokes ModuleManagementTool.install using force=true (by default).
The force flag instructs the MMT that files present in the AMP should overWrite what's in the WAR (assuming files have the same relative location in the WAR)
This behaviour is not advised, because it would easily lead to unwanted changes into Alfresco, making hard to separate customisation from Alfresco-related issues.
The default should be force=false; in this case, if an AMP file has the same location of an existing file in the WAR, the MMT invocation would throw an exception, stating which resource is conflicting:
org.alfresco.repo.module.tool.ModuleManagementToolException: 01200001 ERROR: The amp will overwrite an existing file in the war '/WEB-INF/lib/test.jar'. Execution halted. By specifying -force , you can force installation of AMP regardless of the current war state.
From mauri...@session.it on February 20, 2013 07:01:04
When running an AMP installation into the Alfresco/Share WAR file (using the -Pamp-to-war or using the maven-war-plugin overlay syntax), the Alfresco Maven Plugin invokes ModuleManagementTool.install using force=true (by default).
The force flag instructs the MMT that files present in the AMP should overWrite what's in the WAR (assuming files have the same relative location in the WAR)
This behaviour is not advised, because it would easily lead to unwanted changes into Alfresco, making hard to separate customisation from Alfresco-related issues.
The default should be force=false; in this case, if an AMP file has the same location of an existing file in the WAR, the MMT invocation would throw an exception, stating which resource is conflicting:
org.alfresco.repo.module.tool.ModuleManagementToolException: 01200001 ERROR: The amp will overwrite an existing file in the war '/WEB-INF/lib/test.jar'. Execution halted. By specifying -force , you can force installation of AMP regardless of the current war state.
Original issue: http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=114
The text was updated successfully, but these errors were encountered: