As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hello, I need you to tell me how to install this https://github.com/rjmfernandes/alfresco-trashcan-cleaner on my alfresco 4.2.Unfortunately I have no idea how to do that. I hope they can give me some help.Thanks!
Clone the project and build it. It should result in an amp file. Check this : https://github.com/rjmfernandes/alfresco-trashcan-cleaner/blob/master/pom.xml#L9
git clone https://github.com/rjmfernandes/alfresco-trashcan-cleaner.git cd alfresco-trashcan-cleaner mvn clean install
You need to install that amp to alfresco.war file. Check this doc on how to install the amps (unfortunately docs are not available for your specific version but 5.2 docs should be relevant) : https://docs.alfresco.com/content-services/5.2/develop/extension-packaging/#using-the-module-management-tool-mmt
Thanks for your answer, but my level is very basic to compile what you indicate. What is mvn? Will it be possible to do a step by step on how to install this module?
mvn is maven command line. You may go through this or any tutorial (just google) to learn basics of maven: https://www.tutorialspoint.com/maven/index.htm
What i outlined above are the basic steps. Let me try to add it point by point if that helps. These are very basic steps that needs to be performed to get the extension applied to your repository.
1- Clone the repository on your machine
git clone https://github.com/rjmfernandes/alfresco-trashcan-cleaner.git
2- Once cloned, go to the alfresco-trashcan-cleaner folder/directory:
cd alfresco-trashcan-cleaner
3- Execute maven command to build, package and install the project as an amp. Amp stands for "alfresco module package". It is a way to apply any customizations on alfresco.war or share.war as required. You can learn in detail about amps here: https://docs.alfresco.com/content-services/latest/develop/extension-packaging/
mvn clean install
4- Once command is succesful, install the amp on alfresco.war file:
java -jar <yourAlfrescoInstallation>/bin/alfresco-mmt-2.1.0.jar install <yourlocalworkspace>/alfresco-trashcan-cleaner/target/alfresco-trashcan-cleaner-2.1-SNAPSHOT.amp <yourAlfrescoInstallation>/tomcat/webapps/alfresco.war
If maven is not available on your server/machine, install it and update the path so that you can execute the above given maven command. You can see this tutorial on how to install maven as needed: https://www.baeldung.com/install-maven-on-windows-linux-mac
Thanks for the help, but i have this error
[root@palfresco alfresco-trashcan-cleaner]# mvn clean install[INFO] Scanning for projects...Downloading from alfresco-private-repository: https://artifacts.alfresco.com/nexus/content/groups/private/org/alfresco/maven/alfresco-sdk-parent/1.1.1/alfresco-sdk-parent-1.1.1.pomDownloading from central: https://repo.maven.apache.org/maven2/org/alfresco/maven/alfresco-sdk-parent/1.1.1/alfresco-sdk-parent-1.1.1.pom[ERROR] [ERROR] Some problems were encountered while processing the POMs:[FATAL] Non-resolvable parent POM for org.alfresco:alfresco-trashcan-cleaner:2.1-SNAPSHOT: Could not transfer artifact org.alfresco.maven:alfresco-sdk-parentom:1.1.1 from/to alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private😞 Not authorized , ReasonPhrase:Unauthorized. and 'parent.relativePath' points at wrong local POM @ line 12, column 13[ERROR] The build could not read 1 project -> [Help 1][ERROR][ERROR] The project org.alfresco:alfresco-trashcan-cleaner:2.1-SNAPSHOT (/root/tmp_maven/alfresco-trashcan-cleaner/pom.xml) has 1 error[ERROR] Non-resolvable parent POM for org.alfresco:alfresco-trashcan-cleaner:2.1-SNAPSHOT: Could not transfer artifact org.alfresco.maven:alfresco-sdk-parentom:1.1.1 from/to alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private😞 Not authorized , ReasonPhrase:Unauthorized. and 'parent.relativePath' points at wrong local POM @ line 12, column 13 -> [Help 2][ERROR][ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR][ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException[root@palfresco alfresco-trashcan-cleaner]#