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