keycloak-aplcache

Add IAM module to server-overlay

10/13/2015 10:01:41 AM

Details

diff --git a/distribution/eap6-server-dist/assembly.xml b/distribution/eap6-server-dist/assembly.xml
index e86c8ee..122cd36 100755
--- a/distribution/eap6-server-dist/assembly.xml
+++ b/distribution/eap6-server-dist/assembly.xml
@@ -1,4 +1,30 @@
-<assembly>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ /*
+  ~ * JBoss, Home of Professional Open Source.
+  ~ * Copyright 2014, Red Hat, Inc., and individual contributors
+  ~ * as indicated by the @author tags. See the copyright.txt file in the
+  ~ * distribution for a full listing of individual contributors.
+  ~ *
+  ~ * This is free software; you can redistribute it and/or modify it
+  ~ * under the terms of the GNU Lesser General Public License as
+  ~ * published by the Free Software Foundation; either version 2.1 of
+  ~ * the License, or (at your option) any later version.
+  ~ *
+  ~ * This software is distributed in the hope that it will be useful,
+  ~ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  ~ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  ~ * Lesser General Public License for more details.
+  ~ *
+  ~ * You should have received a copy of the GNU Lesser General Public
+  ~ * License along with this software; if not, write to the Free
+  ~ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+  ~ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+  ~ */
+  -->
+
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
     <id>eap6-server-dist</id>
 
     <formats>
@@ -14,6 +40,8 @@
             <outputDirectory>jboss-iam-1.0</outputDirectory>
             <excludes>
                 <exclude>standalone/configuration/standalone.xml</exclude>
+                <exclude>modules/system/layers/base/org/jboss/as/product/**</exclude>
+                <exclude>bin/product.conf</exclude>
             </excludes>
         </fileSet>
         <fileSet>
@@ -23,6 +51,20 @@
                 <exclude>standalone/configuration/standalone-keycloak.xml</exclude>
             </excludes>
         </fileSet>
+        <fileSet>
+            <directory>src/main/resources/modules</directory>
+            <outputDirectory>jboss-iam-1.0/modules</outputDirectory>
+            <filtered>true</filtered>
+            <includes>
+               <include>**/module.xml</include>
+               <include>**/MANIFEST.MF</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>src/main/resources/content</directory>
+            <outputDirectory>jboss-iam-1.0</outputDirectory>
+            <filtered>false</filtered>
+        </fileSet>
     </fileSets>
 
     <files>
diff --git a/distribution/eap6-server-dist/src/main/resources/content/bin/product.conf b/distribution/eap6-server-dist/src/main/resources/content/bin/product.conf
new file mode 100644
index 0000000..f93ad5e
--- /dev/null
+++ b/distribution/eap6-server-dist/src/main/resources/content/bin/product.conf
@@ -0,0 +1 @@
+slot=iam
diff --git a/distribution/eap6-server-dist/src/main/resources/modules/system/layers/base/org/jboss/as/product/iam/dir/META-INF/MANIFEST.MF b/distribution/eap6-server-dist/src/main/resources/modules/system/layers/base/org/jboss/as/product/iam/dir/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..15652ac
--- /dev/null
+++ b/distribution/eap6-server-dist/src/main/resources/modules/system/layers/base/org/jboss/as/product/iam/dir/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+JBoss-Product-Release-Name: ${product.name}
+JBoss-Product-Release-Version: ${product.version}
+JBoss-Product-Console-Slot: eap
diff --git a/distribution/eap6-server-dist/src/main/resources/modules/system/layers/base/org/jboss/as/product/iam/module.xml b/distribution/eap6-server-dist/src/main/resources/modules/system/layers/base/org/jboss/as/product/iam/module.xml
new file mode 100644
index 0000000..7bf076f
--- /dev/null
+++ b/distribution/eap6-server-dist/src/main/resources/modules/system/layers/base/org/jboss/as/product/iam/module.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ JBoss, Home of Professional Open Source.
+  ~ Copyright 2010, Red Hat, Inc., and individual contributors
+  ~ as indicated by the @author tags. See the copyright.txt file in the
+  ~ distribution for a full listing of individual contributors.
+  ~
+  ~ This is free software; you can redistribute it and/or modify it
+  ~ under the terms of the GNU Lesser General Public License as
+  ~ published by the Free Software Foundation; either version 2.1 of
+  ~ the License, or (at your option) any later version.
+  ~
+  ~ This software is distributed in the hope that it will be useful,
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  ~ Lesser General Public License for more details.
+  ~
+  ~ You should have received a copy of the GNU Lesser General Public
+  ~ License along with this software; if not, write to the Free
+  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+  -->
+
+<module xmlns="urn:jboss:module:1.3" name="org.jboss.as.product" slot="iam">
+
+    <resources>
+        <resource-root path="dir"/>
+        <!-- Insert resources here -->
+    </resources>
+
+    <dependencies>
+    </dependencies>
+</module>