diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml
index d17eb640..6dcfb493 100644
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml
@@ -288,12 +288,12 @@
-
+
+ <!– Compress the JS files under the assembly folder –>
compress-assembly
@@ -315,7 +315,7 @@
false
-
+ <!– Compress the JS files under the resources folder –>
compress-resources
@@ -335,6 +335,71 @@
+ -->
+
+
+ com.github.blutorange
+ closure-compiler-maven-plugin
+ 2.27.0
+
+
+
+ compress-assembly
+ generate-resources
+
+ minify
+
+
+ ${project.basedir}/src/main/assembly
+ ${project.basedir}/src/main/assembly
+ web
+ web
+ true
+ ${minifyRequiredInAssembly}
+
+ **/*.js
+
+
+ **/webscripts/**
+ **/site-webscripts/**
+ **/META-INF/**
+ **/*.lib.js
+ **/*.css
+ **/*.min.js
+ **/*.min.css
+
+ true
+
+
+
+
+ compress-resources
+ generate-resources
+
+ minify
+
+
+ ${project.basedir}/src/main
+ ${project.basedir}/src/main
+ resources
+ resources
+ true
+ ${minifyRequiredInResources}
+
+ **/*.js
+
+
+ **/webscripts/**
+ **/site-webscripts/**
+ **/*.lib.js
+ **/*.css
+ **/*.min.js
+ **/*.min.css
+
+ true
+
+
+