From e5e0a7f76df677f6dc657757f76d52f15339d7ff Mon Sep 17 00:00:00 2001 From: Jose Luis Osorno Date: Tue, 26 Mar 2019 12:38:14 +0100 Subject: [PATCH] Documentation - Update way of generating AMP in platform --- docs/advanced-topics/amps.md | 51 ++++++++++++++---------------------- 1 file changed, 20 insertions(+), 31 deletions(-) diff --git a/docs/advanced-topics/amps.md b/docs/advanced-topics/amps.md index c6c91243..fccb7642 100644 --- a/docs/advanced-topics/amps.md +++ b/docs/advanced-topics/amps.md @@ -95,39 +95,28 @@ do is modify the `pom.xml` file of the corresponding docker module / project in ### Platform / Share project -1. Modify the Maven Dependency Plugin in the file `pom.xml` to set the platform / share JAR dependency type to `amp`: +1. Modify the Maven Resource Plugin in the file `pom.xml` to set the platform / share JAR artifact to copy to `amp`: ``` - - org.apache.maven.plugins - maven-dependency-plugin - - - - copy-repo-extension - pre-integration-test - - copy - - - - - org.alfresco - sample-platform-jar - 1.0-SNAPSHOT - false - ${project.build.directory}/extensions - amp - - - ... - - - - - ... - - + + copy-repository-extension + package + + copy-resources + + + ${project.build.directory}/extensions + + + target + + ${build.finalName}.amp + + false + + + + ``` Once this configuration is in place, you simply need to rebuild and restart the project. The new configuration will make the Docker images automatically