From 42dc3659bd11d2fcaa70eb2476ca8d1b2b8e71f6 Mon Sep 17 00:00:00 2001 From: Jeff Potts Date: Tue, 29 Jan 2019 14:04:05 +0000 Subject: [PATCH] Add more details around platform module and share module dependencies. Add a blurb about deleting alf_data_dev. Add a short section on how to test. --- docs/advanced-topics/upgrading.md | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/docs/advanced-topics/upgrading.md b/docs/advanced-topics/upgrading.md index efcd312e..ef4637ad 100644 --- a/docs/advanced-topics/upgrading.md +++ b/docs/advanced-topics/upgrading.md @@ -137,6 +137,54 @@ Need to smartly do this merge so that target project maintains its dependencies, 7. Remove the alfresco-maven plugin. HOWEVER, there may be some "platformModules" and some "shareModules" that are listed here which are third-party AMPs or JARs that need to be deployed to the image. These should be moved to their respective docker module (platform or share) and added to the Maven dependencies in the module's pom.xml file. +For example, in the root pom.xml of the target project there might be a module dependency in the list of platform modules like: + +``` + + + de.fmaul + javascript-console-repo + amp + 0.7-SNAPSHOT + +``` + +That needs to be moved to the platform docker module into the list of dependencies, like: + +``` + + + de.fmaul + javascript-console-repo + amp + 0.7-SNAPSHOT + +``` + +Similarly, if the target pom.xml has a share module dependency like: + +``` + + + de.fmaul + javascript-console-share + amp + 0.7-SNAPSHOT + +``` + +Then that would need to be moved into the share docker module's pom.xml file in its list of dependencies like: + +``` + + + de.fmaul + javascript-console-share + amp + 0.7-SNAPSHOT + +``` + 8. Remove the spring-surf dependencies. Remove the following: ``` @@ -200,3 +248,11 @@ Remove the spring-surf-api dependency from the 4.0 share-jar module. Remove: spring-surf-api ``` + +## Remove alf_data_dev + +The data in your SDK content repository will not come over to the upgraded project. Therefore the alf_data_dev directory can be deleted. + +## Testing + +To test, try doing a `mvn clean` or a `mvn clean package`. If that goes okay, try to run the project using `run.sh build_start`.