keycloak-aplcache
Changes
distribution/eap6-server-dist/assembly.xml 84(+84 -0)
distribution/eap6-server-dist/pom.xml 89(+89 -0)
distribution/eap6-server-dist/src/main/modules/system/layers/base/org/jboss/as/product/iam/dir/META-INF/MANIFEST.MF 3(+3 -0)
distribution/eap6-server-dist/src/main/modules/system/layers/base/org/jboss/as/product/iam/module.xml 34(+34 -0)
distribution/pom.xml 1(+1 -0)
pom.xml 6(+6 -0)
Details
distribution/eap6-server-dist/assembly.xml 84(+84 -0)
diff --git a/distribution/eap6-server-dist/assembly.xml b/distribution/eap6-server-dist/assembly.xml
new file mode 100755
index 0000000..c904ed0
--- /dev/null
+++ b/distribution/eap6-server-dist/assembly.xml
@@ -0,0 +1,84 @@
+<?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>
+ <format>zip</format>
+ <format>tar.gz</format>
+ </formats>
+
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}/unpacked/jboss-eap-6.4</directory>
+ <outputDirectory>${product.name}-${product.version}</outputDirectory>
+ <excludes>
+ <exclude>standalone/configuration/standalone.xml</exclude>
+ <exclude>modules/system/layers/base/org/jboss/as/product/**</exclude>
+ <exclude>bin/product.conf</exclude>
+ <exclude>welcome-content/**</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/unpacked/overlay</directory>
+ <outputDirectory>${product.name}-${product.version}</outputDirectory>
+ <excludes>
+ <exclude>standalone/configuration/standalone-keycloak.xml</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/modules</directory>
+ <outputDirectory>${product.name}-${product.version}/modules</outputDirectory>
+ <filtered>true</filtered>
+ <includes>
+ <include>**/module.xml</include>
+ <include>**/MANIFEST.MF</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/content</directory>
+ <outputDirectory>${product.name}-${product.version}</outputDirectory>
+ <filtered>false</filtered>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/welcome-content</directory>
+ <outputDirectory>${product.name}-${product.version}/welcome-content</outputDirectory>
+ <filtered>false</filtered>
+ </fileSet>
+ </fileSets>
+
+ <files>
+ <file>
+ <source>${project.build.directory}/unpacked/overlay/standalone/configuration/standalone-keycloak.xml</source>
+ <outputDirectory>${product.name}-${product.version}/standalone/configuration</outputDirectory>
+ <destName>standalone.xml</destName>
+ </file>
+ </files>
+
+</assembly>
distribution/eap6-server-dist/pom.xml 89(+89 -0)
diff --git a/distribution/eap6-server-dist/pom.xml b/distribution/eap6-server-dist/pom.xml
new file mode 100755
index 0000000..3c71499
--- /dev/null
+++ b/distribution/eap6-server-dist/pom.xml
@@ -0,0 +1,89 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>keycloak-parent</artifactId>
+ <groupId>org.keycloak</groupId>
+ <version>1.8.0.CR2-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>keycloak-eap6-server-dist</artifactId>
+ <packaging>pom</packaging>
+ <name>Keycloak EAP 6 Server Distribution</name>
+ <description/>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.keycloak</groupId>
+ <artifactId>keycloak-server-overlay-eap6</artifactId>
+ <type>zip</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.as</groupId>
+ <artifactId>jboss-as-dist</artifactId>
+ <type>zip</type>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>keycloak-eap6-server-dist-${project.version}</finalName>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack-server-overlay</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.keycloak</groupId>
+ <artifactId>keycloak-server-overlay-eap6</artifactId>
+ <type>zip</type>
+ <outputDirectory>${project.build.directory}/unpacked/overlay</outputDirectory>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.jboss.as</groupId>
+ <artifactId>jboss-as-dist</artifactId>
+ <type>zip</type>
+ <outputDirectory>${project.build.directory}/unpacked</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>assemble</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>assembly.xml</descriptor>
+ </descriptors>
+ <recompressZippedFiles>true</recompressZippedFiles>
+ <finalName>${project.build.finalName}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <outputDirectory>${project.build.directory}</outputDirectory>
+ <workDirectory>${project.build.directory}/assembly/work</workDirectory>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/distribution/eap6-server-dist/src/main/content/bin/product.conf b/distribution/eap6-server-dist/src/main/content/bin/product.conf
new file mode 100644
index 0000000..f93ad5e
--- /dev/null
+++ b/distribution/eap6-server-dist/src/main/content/bin/product.conf
@@ -0,0 +1 @@
+slot=iam
diff --git a/distribution/eap6-server-dist/src/main/modules/system/layers/base/org/jboss/as/product/iam/dir/META-INF/MANIFEST.MF b/distribution/eap6-server-dist/src/main/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/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/modules/system/layers/base/org/jboss/as/product/iam/module.xml b/distribution/eap6-server-dist/src/main/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/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>
diff --git a/distribution/eap6-server-dist/src/main/welcome-content/index.html b/distribution/eap6-server-dist/src/main/welcome-content/index.html
new file mode 100755
index 0000000..9aadab4
--- /dev/null
+++ b/distribution/eap6-server-dist/src/main/welcome-content/index.html
@@ -0,0 +1,99 @@
+<!--
+ ~ JBoss, Home of Professional Open Source.
+ ~ Copyright (c) 2011, 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.
+ -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+<html>
+<head>
+ <title>Red Hat Single Sign-On</title>
+
+ <!-- Redirect to the freemarker generated page -->
+ <script type="text/javascript">
+ window.location.href = "auth"
+ </script>
+ <meta http-equiv="refresh" content="1; url=auth">
+ <link rel="shortcut icon" href="auth/welcome-content/favicon.ico" type="image/x-icon">
+ <link rel="StyleSheet" href="auth/welcome-content/keycloak.css" type="text/css">
+ <!-- proper charset -->
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
+ <style type="text/css">
+ label {
+ display: inline-block;
+ width: 200px;
+ text-align: right;
+ margin-right: 10px;
+ }
+
+ button {
+ margin-left: 215px;
+ }
+
+ form {
+ background-color: #eee;
+ border: 1px solid #666;
+ padding-bottom: 1em;
+ }
+
+ .error {
+ color: #a30000;
+ }
+ </style>
+</head>
+
+<body>
+ <div id="container" style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px;">
+
+ <!-- header -->
+ <div class="header-panel">
+ <div class="header-line">
+
+ </div>
+
+ <div class="header-top">
+ <div class="prod-title"><img class="prod-img" alt="Red Hat® Single Sign-On" src="auth/welcome-content/brand.svg"></div>
+ </div>
+
+ <div class="header-bottom">
+
+ </div>
+ </div>
+
+ <!-- main content -->
+ <div id="content">
+ <div class="section">
+ <h1>Welcome to Red Hat Single Sign-On</h1>
+
+ <h3>Your Red Hat Single Sign-On is running.</h3>
+
+ <p>Go to <a href="http://localhost:8080/auth">http://localhost:8080/auth</a> if you need to create the inital admin user.</p>
+
+ <p><a href="auth/admin/">Administration Console</a> | <a href="http://www.keycloak.org/docs">Documentation</a></p>
+ </div>
+ </div>
+
+ <div id="footer">
+
+ </div>
+ </div>
+</body>
+</html>
+
distribution/pom.xml 1(+1 -0)
diff --git a/distribution/pom.xml b/distribution/pom.xml
index c376b03..f64de52 100755
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -19,6 +19,7 @@
<module>saml-adapters</module>
<!--<module>demo-dist</module>-->
<!--<module>docs-dist</module>-->
+ <module>eap6-server-dist</module>
<module>examples-dist</module>
<!--<module>proxy-dist</module>-->
<!--<module>server-dist</module>-->
pom.xml 6(+6 -0)
diff --git a/pom.xml b/pom.xml
index 85a0c42..ae69fd7 100755
--- a/pom.xml
+++ b/pom.xml
@@ -178,6 +178,12 @@
<type>pom</type>
<scope>import</scope>
</dependency>
+ <dependency>
+ <groupId>org.jboss.as</groupId>
+ <artifactId>jboss-as-dist</artifactId>
+ <version>${jboss.version}</version>
+ <type>zip</type>
+ </dependency>
<!--<dependency>
<groupId>com.github.relaxng</groupId>
<artifactId>relaxngDatatype</artifactId>