diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml
new file mode 100644
index 0000000000..0b230cf5b4
--- /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
+ 6.56.15.300-TEST2-SNAPSHOT
+
+
diff --git a/packaging/docker-alfresco/Dockerfile b/packaging/docker-alfresco/Dockerfile
index acca3f6689..5011d89b05 100644
--- a/packaging/docker-alfresco/Dockerfile
+++ b/packaging/docker-alfresco/Dockerfile
@@ -7,6 +7,7 @@ ARG resource_path=target
# Create prerequisite to store tools and properties
RUN mkdir -p /usr/local/tomcat/shared/classes/alfresco/extension && \
+ mkdir /licenses && \
mkdir /usr/local/tomcat/alfresco-mmt
RUN touch /usr/local/tomcat/shared/classes/alfresco-global.properties
@@ -14,13 +15,11 @@ RUN touch /usr/local/tomcat/shared/classes/alfresco-global.properties
# 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 /usr/local/tomcat/webapps
COPY ${resource_path}/connector/* /usr/local/tomcat/lib/
COPY ${resource_path}/alfresco-mmt/* /usr/local/tomcat/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 9c42e816f1..c2367f3256 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 1a783e4dfe..32ff038435 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