cancel
Showing results for 
Search instead for 
Did you mean: 

Keep only n versions of document

framtk
Champ on-the-rise
Champ on-the-rise

Hi,

is it possible for alfresco to keep only the n most recent versions of a document and delete the older ones? I don't seem to see the option to do so on the alfresco web GUI.

1 ACCEPTED ANSWER

When you try to install the module with "apply-amps", it says:

09130001 An error was encountered during deployment of the AMP into the WAR: 09130000 The module (Alfresco MaxVersion Policy) cannot be installed on a war version greater than 5.0.999. This war is version: 5.1.0.

You can modify following property at "alfresco-maxversion-policy/src/main/amp/module.properties" from project source code.

module.repo.version.max=5.1.999

Then you have to rebuild the AMP, and re-deploy the artifact.

BTW, I have deployed in 5.1.g and it works as expected.

Hyland Developer Evangelist

View answer in original post

29 REPLIES 29

I've updated the AMP to include 0.9.0 release information.

Please, download again https://github.com/angelborroy-ks/alfresco-maxversion-policy/releases/download/0.0.9/max-version-pol...

And apply the AMP to your installation.

Hyland Developer Evangelist

I reinstalled alfresco and now it doesn't give 404 anymore but the max version doesn't stop at 10 with your vesion either for me

You are not deploying properly the AMP.

No errors from "apply-amps" command or included in "catalina.out"? Can you use "java -jar alfresco-mmt.jar list" to see if the module is installed?

Hyland Developer Evangelist

using list on tomcat/webapps/alfresco and tomcat/webapps/share tells me that no modules are installed in the WAR, where can i find the catalina.out? The apply-amps says the amps are getting installed

If you are using linux: /opt/alfresco/tomcat/logs

If you are using Windows: C:/alfresco-community (and search for alfresco.log instead catalina.out)

Hyland Developer Evangelist

i have 2 logs in tomcat called alfrescotomcat-stderr and alfrescotomcat-stdout with today's date. both are clean (windows server 2012 r2), can't find any other log

trying to install the amp manually installs it into alfresco.war (but the list still says no modules installed) but when i try to install it into share.war it tells me that the war version is 5.2 while it needs to be 5.1.999 max (i guess this is your fix, no idea why share.war is 5.2)

The artifact is only for alfresco.war


Copy the AMP to amps folder and use apoly-amps tool

Hyland Developer Evangelist

i did, i tried installing with the tool with the amp inside the amps folder, manuall with the amp inside the folder and manually with the amp on th desktop. Nothing's different and the amp doesn't work in any of those 3 ways

Have you installed previously any other AMP?

Hyland Developer Evangelist