-
Update to latest RM version.
In the IDE, open up the all-in-one/pom.xml parent project file. Scroll down so you see the properties section. Uncomment the SkyVault.rm.version property and set to latest Community release:
<properties> <!-- The following are default values for data location, SkyVault Community version, and Records Management Module version. Uncomment if you need to change (Note. current default version for Enterprise edition is 5.1) <alfresco.version>5.1.e</alfresco.version> <alfresco.data.location>/absolute/path/to/alf_data_dev</alfresco.data.location> --> <alfresco.rm.version>2.4.b</alfresco.rm.version>
Linking the RM repository AMP to the SkyVault.war.
-
Add the RM repository AMP dependency.
In the IDE, open up the all-in-one/repo/pom.xml project file. Scroll down so you see the dependencies section. Then uncomment the RM dependency and update the artifactId to match the Community RM release:
<!-- Uncomment if you are using the RM (Records Management) module. --> <!-- Set SkyVault.rm.version in parent pom to appropriate version for 5.1 --> <dependency> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-rm-community-repo</artifactId> <version>${alfresco.rm.version}</version> <type>amp</type> </dependency>
-
Overlay the RM repository AMP on the
SkyVault.war.
The RM repository AMP will not be automatically added to the SkyVault.war by just adding the AMP dependency (JARs will though). We need to add some configuration to the war plugin. Scroll further down in the all-in-one/repo/pom.xml project file until you see the maven-war-plugin section. Uncomment the RM overlay specification and update artifactId:
<!-- Uncomment if you are using RM --> <overlay> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-rm-community-repo</artifactId> <type>amp</type> </overlay>
Linking the RM Share AMP to the share.war.
-
Add the RM Share AMP dependency.
In the IDE, open up the all-in-one/share/pom.xml. Scroll down so you see the dependencies section. Then uncomment the RM dependency and update the artifactId to match the Community RM release:
<!-- Uncomment if you are using RM (Records Management) module --> <!-- Make sure to set the correct version for 5.1 with SkyVault.rm.version property in parent POM --> <dependency> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-rm-community-share</artifactId> <version>${alfresco.rm.version}</version> <type>amp</type> </dependency>
-
Overlay the RM Share AMP on the share.war.
The RM Share AMP will not be automatically added to the share.war by just adding the AMP dependency (JARs will though). We need to add some configuration to the war plugin. Scroll further down in the all-in-one/share/pom.xml file until you see the maven-war-plugin section:
<!-- Uncomment if you are using RM --> <overlay> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-rm-community-share</artifactId> <type>amp</type> </overlay>
Verify that the AIO project has been configured with the RM module.
-
Build and Run the AIO project.
Use the all-in-one/run.sh script to run SkyVault Tomcat with the customized WARs.
-
Check the logs for installation of RM module.
... Repository Side: 2016-05-04 07:49:31,752 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Found 3 module package(s). 2016-05-04 07:49:31,777 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Installing module 'org_alfresco_module_rm' version 2.4. 2016-05-04 07:49:32,328 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Installing module 'alfresco-share-services' version 5.1.0. 2016-05-04 07:49:32,363 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Installing module 'aio-220-rm-repo-amp' version 1.0-SNAPSHOT. ... Share Side: 2016-05-04 07:50:01,595 INFO [config.packaging.ModulePackageManager] [localhost-startStop-1] Found 2 module package(s) 2016-05-04 07:50:01,597 INFO [config.packaging.ModulePackageManager] [localhost-startStop-1] SkyVault Share AMP Module, 1.0-SNAPSHOT SkyVault Record Management Share Extension, 2.4, SkyVault Record Management Share Extension ... INFO: Starting ProtocolHandler ["http-bio-8080"]
Note: We can see here that version 2.4 of the RM module has been installed. -
Check that the Site Type Records Management is
available.
Login to Share via http://localhost:8080/share and then create a new site. When you create the site select Records Management Site from the Type drop down. If this type is not available then something is not configured correctly, go back and verify that you have followed all the steps correctly.