keycloak-aplcache

Details

diff --git a/distribution/examples-docs-zip/build.xml b/distribution/examples-docs-zip/build.xml
index abc30c9..ea7eea9 100755
--- a/distribution/examples-docs-zip/build.xml
+++ b/distribution/examples-docs-zip/build.xml
@@ -6,31 +6,39 @@
             <fileset dir="../../examples/demo-template">
                 <exclude name="**/*.wildfly"/>
                 <exclude name="**/target/**"/>
-                <exclude name="*.iml"/>
+                <exclude name="**/*.iml"/>
             </fileset>
         </copy>
         <move file="target/examples/as7-eap-demo/README.md.as7" tofile="target/examples/as7-eap-demo/README.md"/>
+        <move file="target/examples/as7-eap-demo/customer-app/src/main/webapp/WEB-INF/jboss-deployment-structure.xml.as7" tofile="target/examples/as7-eap-demo/customer-app/src/main/webapp/WEB-INF/jboss-deployment-structure.xml"/>
+        <move file="target/examples/as7-eap-demo/product-app/src/main/webapp/WEB-INF/jboss-deployment-structure.xml.as7" tofile="target/examples/as7-eap-demo/product-app/src/main/webapp/WEB-INF/jboss-deployment-structure.xml"/>
+        <move file="target/examples/as7-eap-demo/database-service/src/main/webapp/WEB-INF/jboss-deployment-structure.xml.as7" tofile="target/examples/as7-eap-demo/database-service/src/main/webapp/WEB-INF/jboss-deployment-structure.xml"/>
         <copy todir="target/examples/wildfly-demo" overwrite="true">
             <fileset dir="../../examples/demo-template">
                 <exclude name="**/WEB-INF/*.as7"/>
                 <exclude name="**/WEB-INF/jboss-web.xml"/>
                 <exclude name="**/WEB-INF/web.xml"/>
-                <exclude name="target/**"/>
-                <exclude name="*.iml"/>
+                <exclude name="**/target/**"/>
+                <exclude name="**/*.iml"/>
             </fileset>
         </copy>
         <move file="target/examples/wildfly-demo/README.md.wildfly" tofile="target/examples/wildfly-demo/README.md"/>
         <move file="target/examples/wildfly-demo/customer-app/src/main/webapp/WEB-INF/web.xml.wildfly" tofile="target/examples/wildfly-demo/customer-app/src/main/webapp/WEB-INF/web.xml"/>
+        <move file="target/examples/wildfly-demo/customer-app/src/main/webapp/WEB-INF/jboss-deployment-structure.xml.wildfly" tofile="target/examples/wildfly-demo/customer-app/src/main/webapp/WEB-INF/jboss-deployment-structure.xml"/>
         <move file="target/examples/wildfly-demo/product-app/src/main/webapp/WEB-INF/web.xml.wildfly" tofile="target/examples/wildfly-demo/product-app/src/main/webapp/WEB-INF/web.xml"/>
+        <move file="target/examples/wildfly-demo/product-app/src/main/webapp/WEB-INF/jboss-deployment-structure.xml.wildfly" tofile="target/examples/wildfly-demo/product-app/src/main/webapp/WEB-INF/jboss-deployment-structure.xml"/>
         <move file="target/examples/wildfly-demo/database-service/src/main/webapp/WEB-INF/web.xml.wildfly" tofile="target/examples/wildfly-demo/database-service/src/main/webapp/WEB-INF/web.xml"/>
+        <move file="target/examples/wildfly-demo/database-service/src/main/webapp/WEB-INF/jboss-deployment-structure.xml.wildfly" tofile="target/examples/wildfly-demo/database-service/src/main/webapp/WEB-INF/jboss-deployment-structure.xml"/>
+        <move file="target/examples/wildfly-demo/third-party/src/main/webapp/WEB-INF/web.xml.wildfly" tofile="target/examples/wildfly-demo/third-party/src/main/webapp/WEB-INF/web.xml"/>
+        <move file="target/examples/wildfly-demo/third-party-cdi/src/main/webapp/WEB-INF/web.xml.wildfly" tofile="target/examples/wildfly-demo/third-party-cdi/src/main/webapp/WEB-INF/web.xml"/>
         <copy todir="target/examples/unconfigured-demo" overwrite="true">
             <fileset dir="../../examples/demo-template">
                 <exclude name="**/*.wildfly"/>
                 <exclude name="**/WEB-INF/*.as7"/>
                 <exclude name="**/WEB-INF/jboss-web.xml"/>
                 <exclude name="**/WEB-INF/keycloak.json"/>
-                <exclude name="target/**"/>
-                <exclude name="*.iml"/>
+                <exclude name="**/target/**"/>
+                <exclude name="**/*.iml"/>
             </fileset>
         </copy>
     </target>
diff --git a/examples/demo-template/third-party/src/main/webapp/WEB-INF/web.xml.wildfly b/examples/demo-template/third-party/src/main/webapp/WEB-INF/web.xml.wildfly
new file mode 100755
index 0000000..958839d
--- /dev/null
+++ b/examples/demo-template/third-party/src/main/webapp/WEB-INF/web.xml.wildfly
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+      version="3.0">
+
+	<module-name>oauth-client</module-name>
+
+    <listener>
+        <listener-class>org.keycloak.example.oauth.Bootstrap</listener-class>
+    </listener>
+    <!--
+    <security-constraint>
+        <web-resource-collection>
+            <url-pattern>/*</url-pattern>
+        </web-resource-collection>
+        <user-data-constraint>
+            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
+        </user-data-constraint>
+    </security-constraint>
+    -->
+
+</web-app>
diff --git a/examples/demo-template/third-party-cdi/src/main/webapp/WEB-INF/web.xml.wildfly b/examples/demo-template/third-party-cdi/src/main/webapp/WEB-INF/web.xml.wildfly
new file mode 100755
index 0000000..93e1ef6
--- /dev/null
+++ b/examples/demo-template/third-party-cdi/src/main/webapp/WEB-INF/web.xml.wildfly
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+      version="3.0">
+
+	<module-name>oauth-client-cdi</module-name>
+
+    <!--
+    <security-constraint>
+        <web-resource-collection>
+            <url-pattern>/*</url-pattern>
+        </web-resource-collection>
+        <user-data-constraint>
+            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
+        </user-data-constraint>
+    </security-constraint>
+    -->
+
+</web-app>