From c7b29613d45747bb125dc077aa74c67508fcb797 Mon Sep 17 00:00:00 2001 From: Alan Davis Date: Fri, 2 Oct 2020 11:06:47 +0100 Subject: [PATCH] REPO-5358 Deployment modules should extend each other The alfresco-community-repo's deployment module now provides the basis for alfresco-enterprise-repo and acs-packaging deployment modules. This makes it like the other branches and avoids duplication of licenses between projects. (partial picked from commit c4d1f5824df4f1b483e3b652c613c1342e694bcf) --- packaging/distribution/pom.xml | 14 ++++++++++ packaging/docker-alfresco/Dockerfile | 7 ++--- packaging/docker-alfresco/pom.xml | 41 ++++++++++++---------------- packaging/pom.xml | 4 +++ 4 files changed, 39 insertions(+), 27 deletions(-) create mode 100644 packaging/distribution/pom.xml diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml new file mode 100644 index 0000000000..9f4f9f243a --- /dev/null +++ b/packaging/distribution/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + org.alfresco + alfresco-community-repo-distribution + Package Licences and Keystore for Distribution + jar + + + org.alfresco + alfresco-community-repo-packaging + 7.199.300-TEST2-SNAPSHOT + + diff --git a/packaging/docker-alfresco/Dockerfile b/packaging/docker-alfresco/Dockerfile index 715186214a..609f58ae56 100644 --- a/packaging/docker-alfresco/Dockerfile +++ b/packaging/docker-alfresco/Dockerfile @@ -19,6 +19,7 @@ ARG TOMCAT_DIR=/usr/local/tomcat RUN mkdir -p ${TOMCAT_DIR}/shared/classes/alfresco/extension/mimetypes && \ mkdir -p ${TOMCAT_DIR}/shared/classes/alfresco/extension/transform/renditions && \ mkdir -p ${TOMCAT_DIR}/shared/classes/alfresco/extension/transform/pipelines && \ + mkdir /licenses && \ mkdir ${TOMCAT_DIR}/alfresco-mmt && \ touch ${TOMCAT_DIR}/shared/classes/alfresco-global.properties @@ -26,13 +27,11 @@ RUN mkdir -p ${TOMCAT_DIR}/shared/classes/alfresco/extension/mimetypes && \ # Copy the WAR files to the appropriate location for your application server # Copy the JDBC drivers for the database you are using to the lib/ directory. # Copy the alfresco-mmt.jar +# Copy Licenses to the root of the Docker image COPY ${resource_path}/war ${TOMCAT_DIR}/webapps COPY ${resource_path}/connector/* ${TOMCAT_DIR}/lib/ COPY ${resource_path}/alfresco-mmt/* ${TOMCAT_DIR}/alfresco-mmt/ - -# Copy Licenses to the root of the Docker image -RUN mkdir /licenses -COPY ${resource_path}/licenses/ /licenses/ +COPY ${resource_path}/dependency/licenses/ /licenses/ # Change the value of the shared.loader= property to the following: # shared.loader=${catalina.base}/shared/classes diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 5f90fce140..559f8ee138 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -16,29 +16,6 @@ - - org.apache.maven.plugins - maven-resources-plugin - - - copy-licenses - process-resources - - copy-resources - - - - - - ../distribution/src/main/resources/licenses - false - - - ${project.build.directory}/licenses - - - - org.apache.maven.plugins maven-dependency-plugin @@ -126,6 +103,24 @@ + + + unpack-licenses + process-resources + + unpack + + + + + org.alfresco + alfresco-community-repo-distribution + jar + ${project.version} + + + + diff --git a/packaging/pom.xml b/packaging/pom.xml index e483d0ac04..9d521219e4 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -18,6 +18,7 @@ war + distribution docker-alfresco @@ -25,18 +26,21 @@ community war + distribution communityDocker war + distribution docker-alfresco all-tas-tests + distribution tests