Refactor AS 7 adapter distribution
- not dependent on distribution/modules any more - again use <extension module="org.keycloak.keycloak-adapter-subsystem"/>
This commit is contained in:
parent
eaf5034ec7
commit
fa90602aa0
53 changed files with 1246 additions and 454 deletions
|
@ -19,6 +19,7 @@
|
||||||
<include>org/keycloak/keycloak-jboss-adapter-core/**</include>
|
<include>org/keycloak/keycloak-jboss-adapter-core/**</include>
|
||||||
<include>org/keycloak/keycloak-as7-adapter/**</include>
|
<include>org/keycloak/keycloak-as7-adapter/**</include>
|
||||||
<include>org/keycloak/keycloak-as7-subsystem/**</include>
|
<include>org/keycloak/keycloak-as7-subsystem/**</include>
|
||||||
|
<include>org/keycloak/keycloak-adapter-subsystem/**</include>
|
||||||
</includes>
|
</includes>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/*.war</exclude>
|
<exclude>**/*.war</exclude>
|
|
@ -20,7 +20,7 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.keycloak</groupId>
|
<groupId>org.keycloak</groupId>
|
||||||
<artifactId>keycloak-jboss-modules</artifactId>
|
<artifactId>keycloak-as7-modules</artifactId>
|
||||||
<type>zip</type>
|
<type>zip</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
<artifactItems>
|
<artifactItems>
|
||||||
<artifactItem>
|
<artifactItem>
|
||||||
<groupId>org.keycloak</groupId>
|
<groupId>org.keycloak</groupId>
|
||||||
<artifactId>keycloak-jboss-modules</artifactId>
|
<artifactId>keycloak-as7-modules</artifactId>
|
||||||
<type>zip</type>
|
<type>zip</type>
|
||||||
<outputDirectory>${project.build.directory}/unpacked</outputDirectory>
|
<outputDirectory>${project.build.directory}/unpacked</outputDirectory>
|
||||||
</artifactItem>
|
</artifactItem>
|
22
distribution/adapters/as7-adapter/as7-modules/assembly.xml
Executable file
22
distribution/adapters/as7-adapter/as7-modules/assembly.xml
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
<assembly>
|
||||||
|
<id>dist</id>
|
||||||
|
|
||||||
|
<formats>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<directory>../../</directory>
|
||||||
|
<includes>
|
||||||
|
<include>License.html</include>
|
||||||
|
</includes>
|
||||||
|
<outputDirectory></outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>${project.build.directory}/modules</directory>
|
||||||
|
<outputDirectory></outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
89
distribution/adapters/as7-adapter/as7-modules/build.xml
Executable file
89
distribution/adapters/as7-adapter/as7-modules/build.xml
Executable file
|
@ -0,0 +1,89 @@
|
||||||
|
<!--
|
||||||
|
~ JBoss, Home of Professional Open Source.
|
||||||
|
~ Copyright 2012, 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<project name="module-repository" basedir="." default="all">
|
||||||
|
|
||||||
|
<import file="lib.xml"/>
|
||||||
|
|
||||||
|
<property name="output.dir" value="target"/>
|
||||||
|
|
||||||
|
<target name="all">
|
||||||
|
<antcall target="modules">
|
||||||
|
<param name="mavenized.modules" value="false"/>
|
||||||
|
<param name="output.dir" value="target"/>
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<target name="modules">
|
||||||
|
|
||||||
|
<!-- server min dependencies -->
|
||||||
|
|
||||||
|
<module-def name="org.apache.httpcomponents" slot="4.3">
|
||||||
|
<maven-resource group="org.apache.httpcomponents" artifact="httpclient"/>
|
||||||
|
<maven-resource group="org.apache.httpcomponents" artifact="httpcore"/>
|
||||||
|
<maven-resource group="org.apache.httpcomponents" artifact="httpmime"/>
|
||||||
|
</module-def>
|
||||||
|
|
||||||
|
<module-def name="org.keycloak.keycloak-core">
|
||||||
|
<maven-resource group="org.keycloak" artifact="keycloak-core"/>
|
||||||
|
</module-def>
|
||||||
|
|
||||||
|
<module-def name="net.iharder.base64">
|
||||||
|
<maven-resource group="net.iharder" artifact="base64"/>
|
||||||
|
</module-def>
|
||||||
|
|
||||||
|
<module-def name="org.bouncycastle">
|
||||||
|
<maven-resource group="org.bouncycastle" artifact="bcprov-jdk15on"/>
|
||||||
|
<maven-resource group="org.bouncycastle" artifact="bcpkix-jdk15on"/>
|
||||||
|
</module-def>
|
||||||
|
|
||||||
|
<!-- subsystems -->
|
||||||
|
|
||||||
|
<module-def name="org.keycloak.keycloak-adapter-core">
|
||||||
|
<maven-resource group="org.keycloak" artifact="keycloak-adapter-core"/>
|
||||||
|
</module-def>
|
||||||
|
|
||||||
|
<module-def name="org.keycloak.keycloak-jboss-adapter-core">
|
||||||
|
<maven-resource group="org.keycloak" artifact="keycloak-jboss-adapter-core"/>
|
||||||
|
</module-def>
|
||||||
|
|
||||||
|
<module-def name="org.keycloak.keycloak-as7-adapter">
|
||||||
|
<maven-resource group="org.keycloak" artifact="keycloak-as7-adapter"/>
|
||||||
|
<maven-resource group="org.keycloak" artifact="keycloak-tomcat-core-adapter"/>
|
||||||
|
</module-def>
|
||||||
|
|
||||||
|
<module-def name="org.keycloak.keycloak-as7-subsystem">
|
||||||
|
<maven-resource group="org.keycloak" artifact="keycloak-as7-subsystem"/>
|
||||||
|
</module-def>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean-target">
|
||||||
|
<delete dir="${output.dir}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean" depends="clean-target">
|
||||||
|
<delete file="maven-ant-tasks.jar"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
282
distribution/adapters/as7-adapter/as7-modules/lib.xml
Executable file
282
distribution/adapters/as7-adapter/as7-modules/lib.xml
Executable file
|
@ -0,0 +1,282 @@
|
||||||
|
<!--
|
||||||
|
~ 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<project name="module-repository-lib">
|
||||||
|
|
||||||
|
<property name="src.dir" value="src"/>
|
||||||
|
<property name="module.repo.src.dir" value="${src.dir}/main/resources/modules"/>
|
||||||
|
<property name="module.xml" value="module.xml"/>
|
||||||
|
|
||||||
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
||||||
|
<taskdef name="jandex" classname="org.jboss.jandex.JandexAntTask" />
|
||||||
|
|
||||||
|
<macrodef name="module-def">
|
||||||
|
<attribute name="name"/>
|
||||||
|
<attribute name="slot" default="main"/>
|
||||||
|
<element name="resources" implicit="yes" optional="yes"/>
|
||||||
|
|
||||||
|
<sequential>
|
||||||
|
<echo message="Initializing module -> @{name}"/>
|
||||||
|
<property name="module.repo.output.dir" value="${output.dir}/modules"/>
|
||||||
|
<!-- Figure out the correct module path -->
|
||||||
|
<define-module-dir name="@{name}" slot="@{slot}"/>
|
||||||
|
|
||||||
|
<!-- Make the module output director -->
|
||||||
|
<mkdir dir="${module.repo.output.dir}/${current.module.path}"/>
|
||||||
|
|
||||||
|
<!-- Copy the module.xml and other stuff to the output director -->
|
||||||
|
<copy todir="${module.repo.output.dir}/${current.module.path}" overwrite="true">
|
||||||
|
<fileset dir="${module.repo.src.dir}/${current.module.path}">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<!-- Process the resource -->
|
||||||
|
<resources/>
|
||||||
|
|
||||||
|
<!-- Add keycloak version property to module xml -->
|
||||||
|
<replace file="${module.repo.output.dir}/${current.module.path}/${module.xml}"
|
||||||
|
token="$${project.version}"
|
||||||
|
value="${project.version}"/>
|
||||||
|
|
||||||
|
<!-- Some final cleanup -->
|
||||||
|
<replace file="${module.repo.output.dir}/${current.module.path}/${module.xml}">
|
||||||
|
<replacetoken>
|
||||||
|
<![CDATA[
|
||||||
|
<!-- Insert resources here -->]]></replacetoken>
|
||||||
|
<replacevalue>
|
||||||
|
</replacevalue>
|
||||||
|
</replace>
|
||||||
|
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<macrodef name="bundle-def">
|
||||||
|
<attribute name="name"/>
|
||||||
|
<attribute name="slot" default="main"/>
|
||||||
|
<element name="resources" implicit="yes" optional="yes"/>
|
||||||
|
|
||||||
|
<sequential>
|
||||||
|
<echo message="Initializing bundle -> @{name}"/>
|
||||||
|
<property name="bundle.repo.output.dir" value="${output.dir}/bundles/system/layers/base"/>
|
||||||
|
<!-- Figure out the correct bundle path -->
|
||||||
|
<define-bundle-dir name="@{name}" slot="@{slot}" />
|
||||||
|
|
||||||
|
<!-- Make the bundle output director -->
|
||||||
|
<mkdir dir="${bundle.repo.output.dir}/${current.bundle.path}"/>
|
||||||
|
|
||||||
|
<!-- Process the resource -->
|
||||||
|
<resources/>
|
||||||
|
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<macrodef name="maven-bundle" >
|
||||||
|
<attribute name="group"/>
|
||||||
|
<attribute name="artifact"/>
|
||||||
|
|
||||||
|
<sequential>
|
||||||
|
<!-- Copy the jar to the bundle dir -->
|
||||||
|
<property name="bundle.repo.output.dir" value="${output.dir}/bundles/system/layers/base"/>
|
||||||
|
<copy todir="${bundle.repo.output.dir}/${current.bundle.path}" failonerror="true">
|
||||||
|
<fileset file="${@{group}:@{artifact}:jar}"/>
|
||||||
|
<mapper type="flatten" />
|
||||||
|
</copy>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<scriptdef name="define-module-dir" language="javascript" manager="bsf">
|
||||||
|
<attribute name="name"/>
|
||||||
|
<attribute name="slot"/>
|
||||||
|
<![CDATA[
|
||||||
|
name = attributes.get("name");
|
||||||
|
name = name.replace(".", "/");
|
||||||
|
project.setProperty("current.module.path", name + "/" + attributes.get("slot"));
|
||||||
|
]]>
|
||||||
|
</scriptdef>
|
||||||
|
|
||||||
|
<scriptdef name="define-bundle-dir" language="javascript" manager="bsf">
|
||||||
|
<attribute name="name"/>
|
||||||
|
<attribute name="slot"/>
|
||||||
|
<![CDATA[
|
||||||
|
name = attributes.get("name");
|
||||||
|
name = name.replace(".", "/");
|
||||||
|
project.setProperty("current.bundle.path", name + "/" + attributes.get("slot"));
|
||||||
|
]]>
|
||||||
|
</scriptdef>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Get the version from the parent directory of the jar. If the parent directory is 'target' this
|
||||||
|
means that the jar is contained in AS build so extract the version from the file name
|
||||||
|
-->
|
||||||
|
<scriptdef name="define-maven-artifact" language="javascript" manager="bsf">
|
||||||
|
<attribute name="group"/>
|
||||||
|
<attribute name="artifact"/>
|
||||||
|
<attribute name="classifier"/>
|
||||||
|
<attribute name="element"/>
|
||||||
|
<attribute name="path"/>
|
||||||
|
<![CDATA[
|
||||||
|
importClass(Packages.java.io.File);
|
||||||
|
group = attributes.get("group");
|
||||||
|
artifact = attributes.get("artifact");
|
||||||
|
classifier = attributes.get("classifier");
|
||||||
|
element = attributes.get("element");
|
||||||
|
path = attributes.get("path");
|
||||||
|
if(path.indexOf('${') != -1) {
|
||||||
|
throw "Module resource root not found, make sure it is listed in build/pom.xml" + path;
|
||||||
|
}
|
||||||
|
fp = new File(path);
|
||||||
|
version = fp.getParentFile().getName();
|
||||||
|
if (version.equals("target")) {
|
||||||
|
version = fp.getName();
|
||||||
|
version = version.substring(artifact.length() + 1);
|
||||||
|
suffix = ".jar";
|
||||||
|
if (classifier) {
|
||||||
|
suffix = "-" + classifier + suffix;
|
||||||
|
}
|
||||||
|
version = version.replace(suffix, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
root = "<" + element + " name=\"" + group + ":" + artifact + ":" + version;
|
||||||
|
if (classifier) {
|
||||||
|
root = root + ":" + classifier;
|
||||||
|
}
|
||||||
|
root = root + "\"/>";
|
||||||
|
project.setProperty("current.maven.root", root);
|
||||||
|
]]>
|
||||||
|
</scriptdef>
|
||||||
|
|
||||||
|
<macrodef name="maven-resource" >
|
||||||
|
<attribute name="group"/>
|
||||||
|
<attribute name="artifact"/>
|
||||||
|
<attribute name="jandex" default="false" />
|
||||||
|
|
||||||
|
<sequential>
|
||||||
|
<if>
|
||||||
|
<equals arg1="${mavenized.modules}" arg2="true"/>
|
||||||
|
<then>
|
||||||
|
<define-maven-artifact group="@{group}" artifact="@{artifact}" element="artifact" path="${@{group}:@{artifact}:jar}"/>
|
||||||
|
<replace file="${module.repo.output.dir}/${current.module.path}/${module.xml}">
|
||||||
|
<replacefilter token="<!-- Insert resources here -->" value="${current.maven.root} <!-- Insert resources here -->"/>
|
||||||
|
</replace>
|
||||||
|
</then>
|
||||||
|
|
||||||
|
<else>
|
||||||
|
<!-- Copy the jar to the module dir -->
|
||||||
|
<copy todir="${module.repo.output.dir}/${current.module.path}" failonerror="true">
|
||||||
|
<fileset file="${@{group}:@{artifact}:jar}"/>
|
||||||
|
<mapper type="flatten" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<basename file="${@{group}:@{artifact}:jar}" property="resourcename.@{group}.@{artifact}"/>
|
||||||
|
<!-- Generate the Jandex Index -->
|
||||||
|
<jandex run="@{jandex}" newJar="true" >
|
||||||
|
<fileset dir="${module.repo.output.dir}/${current.module.path}" />
|
||||||
|
</jandex>
|
||||||
|
<!-- Update the resource entry in module.xml -->
|
||||||
|
<define-resource-root path="${resourcename.@{group}.@{artifact}}" jandex="@{jandex}"/>
|
||||||
|
<replace file="${module.repo.output.dir}/${current.module.path}/${module.xml}">
|
||||||
|
<replacefilter token="<!-- Insert resources here -->" value="${current.resource.root} <!-- Insert resources here -->"/>
|
||||||
|
</replace>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<macrodef name="maven-resource-with-classifier" >
|
||||||
|
<attribute name="group"/>
|
||||||
|
<attribute name="artifact"/>
|
||||||
|
<attribute name="classifier"/>
|
||||||
|
<attribute name="jandex" default="false" />
|
||||||
|
|
||||||
|
<sequential>
|
||||||
|
<if>
|
||||||
|
<equals arg1="${mavenized.modules}" arg2="true"/>
|
||||||
|
<then>
|
||||||
|
<define-maven-artifact group="@{group}" artifact="@{artifact}" element="artifact" classifier="@{classifier}" path="${@{group}:@{artifact}:jar:@{classifier}}"/>
|
||||||
|
<replace file="${module.repo.output.dir}/${current.module.path}/${module.xml}">
|
||||||
|
<replacefilter token="<!-- Insert resources here -->" value="${current.maven.root} <!-- Insert resources here -->"/>
|
||||||
|
</replace>
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<!-- Copy the jar to the module dir -->
|
||||||
|
<copy todir="${module.repo.output.dir}/${current.module.path}" failonerror="true">
|
||||||
|
<fileset file="${@{group}:@{artifact}:jar:@{classifier}}"/>
|
||||||
|
<!-- http://jira.codehaus.org/browse/MANTRUN-159 -->
|
||||||
|
<mapper type="flatten" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<basename file="${@{group}:@{artifact}:jar:@{classifier}}" property="resourcename.@{group}.@{artifact}.@{classifier}"/>
|
||||||
|
|
||||||
|
<!-- Update the resource entry in module.xml -->
|
||||||
|
<define-resource-root path="${resourcename.@{group}.@{artifact}.@{classifier}}"/>
|
||||||
|
<replace file="${module.repo.output.dir}/${current.module.path}/${module.xml}">
|
||||||
|
<replacefilter token="<!-- Insert resources here -->" value="${current.resource.root} <!-- Insert resources here -->"/>
|
||||||
|
</replace>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<macrodef name="extract-native-jar" >
|
||||||
|
<attribute name="group"/>
|
||||||
|
<attribute name="artifact"/>
|
||||||
|
<sequential>
|
||||||
|
<if>
|
||||||
|
<equals arg1="${mavenized.modules}" arg2="true"/>
|
||||||
|
<then>
|
||||||
|
<define-maven-artifact group="@{group}" artifact="@{artifact}" element="native-artifact" path="${@{group}:@{artifact}:jar}"/>
|
||||||
|
<replace file="${module.repo.output.dir}/${current.module.path}/${module.xml}">
|
||||||
|
<replacefilter token="<!-- Insert resources here -->" value="${current.maven.root} <!-- Insert resources here -->"/>
|
||||||
|
</replace>
|
||||||
|
</then>
|
||||||
|
|
||||||
|
<else>
|
||||||
|
<unzip src="${@{group}:@{artifact}:jar}" dest="${module.repo.output.dir}/${current.module.path}">
|
||||||
|
<patternset>
|
||||||
|
<include name="lib/**"/>
|
||||||
|
</patternset>
|
||||||
|
</unzip>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<scriptdef name="define-resource-root" language="javascript" manager="bsf">
|
||||||
|
<attribute name="path"/>
|
||||||
|
<attribute name="jandex"/>
|
||||||
|
<![CDATA[
|
||||||
|
path = attributes.get("path");
|
||||||
|
root = "<resource-root path=\"" + path + "\"/>";
|
||||||
|
if(path.indexOf('${') != -1) {
|
||||||
|
throw "Module resource root not found, make sure it is listed in build/pom.xml" + path;
|
||||||
|
}
|
||||||
|
if(attributes.get("jandex") == "true" ) {
|
||||||
|
root = root + "\n\t<resource-root path=\"" + path.replace(".jar","-jandex.jar") + "\"/>";
|
||||||
|
}
|
||||||
|
project.setProperty("current.resource.root", root);
|
||||||
|
]]>
|
||||||
|
</scriptdef>
|
||||||
|
|
||||||
|
</project>
|
172
distribution/adapters/as7-adapter/as7-modules/pom.xml
Executable file
172
distribution/adapters/as7-adapter/as7-modules/pom.xml
Executable file
|
@ -0,0 +1,172 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<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/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<artifactId>keycloak-parent</artifactId>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<version>1.3.0.Final-SNAPSHOT</version>
|
||||||
|
<relativePath>../../../../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>keycloak-as7-modules</artifactId>
|
||||||
|
|
||||||
|
<name>Keycloak JBoss AS 7 Modules</name>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<artifactId>keycloak-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<artifactId>keycloak-adapter-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<artifactId>keycloak-jboss-adapter-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<artifactId>keycloak-as7-adapter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<artifactId>keycloak-tomcat-core-adapter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<artifactId>keycloak-as7-subsystem</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
|
<artifactId>httpmime</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
|
<artifactId>httpcore</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.iharder</groupId>
|
||||||
|
<artifactId>base64</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bouncycastle</groupId>
|
||||||
|
<artifactId>bcprov-jdk15on</artifactId>
|
||||||
|
<version>${bouncycastle.crypto.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bouncycastle</groupId>
|
||||||
|
<artifactId>bcpkix-jdk15on</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<inherited>false</inherited>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>build-dist</id>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>compile</phase>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<ant antfile="build.xml" inheritRefs="true">
|
||||||
|
<target name="all"/>
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jboss</groupId>
|
||||||
|
<artifactId>jandex</artifactId>
|
||||||
|
<version>1.0.3.Final</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>ant-contrib</groupId>
|
||||||
|
<artifactId>ant-contrib</artifactId>
|
||||||
|
<version>1.0b3</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>ant</groupId>
|
||||||
|
<artifactId>ant</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.ant</groupId>
|
||||||
|
<artifactId>ant-apache-bsf</artifactId>
|
||||||
|
<version>1.9.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.bsf</groupId>
|
||||||
|
<artifactId>bsf-api</artifactId>
|
||||||
|
<version>3.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>rhino</groupId>
|
||||||
|
<artifactId>js</artifactId>
|
||||||
|
<version>1.7R2</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<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>
|
||||||
|
<outputDirectory>
|
||||||
|
target
|
||||||
|
</outputDirectory>
|
||||||
|
<workDirectory>
|
||||||
|
target/assembly/work
|
||||||
|
</workDirectory>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-resources</id>
|
||||||
|
<!-- here the phase you need -->
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/modules/org/keycloak/keycloak-adapter-subsystem</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources/modules/org/keycloak/keycloak-adapter-subsystem</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<module xmlns="urn:jboss:module:1.1" name="net.iharder.base64">
|
||||||
|
<resources>
|
||||||
|
<!-- Insert resources here -->
|
||||||
|
</resources>
|
||||||
|
<dependencies>
|
||||||
|
<module name="javax.api"/>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</module>
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<module xmlns="urn:jboss:module:1.1" name="org.apache.httpcomponents" slot="4.3">
|
||||||
|
<resources>
|
||||||
|
<!-- Insert resources here -->
|
||||||
|
</resources>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<module name="javax.api"/>
|
||||||
|
<module name="org.apache.commons.codec"/>
|
||||||
|
<module name="org.apache.commons.logging"/>
|
||||||
|
<module name="org.apache.james.mime4j"/>
|
||||||
|
</dependencies>
|
||||||
|
</module>
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<module xmlns="urn:jboss:module:1.1" name="org.bouncycastle">
|
||||||
|
<resources>
|
||||||
|
<!-- Insert resources here -->
|
||||||
|
</resources>
|
||||||
|
<dependencies>
|
||||||
|
<module name="javax.api"/>
|
||||||
|
</dependencies>
|
||||||
|
</module>
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<module xmlns="urn:jboss:module:1.1" name="org.keycloak.keycloak-adapter-core">
|
||||||
|
<resources>
|
||||||
|
<!-- Insert resources here -->
|
||||||
|
</resources>
|
||||||
|
<dependencies>
|
||||||
|
<module name="javax.api"/>
|
||||||
|
<module name="org.codehaus.jackson.jackson-core-asl"/>
|
||||||
|
<module name="org.codehaus.jackson.jackson-mapper-asl"/>
|
||||||
|
<module name="org.codehaus.jackson.jackson-xc"/>
|
||||||
|
<module name="org.apache.httpcomponents" slot="4.3" />
|
||||||
|
<module name="org.jboss.logging"/>
|
||||||
|
<module name="org.keycloak.keycloak-core"/>
|
||||||
|
<module name="net.iharder.base64"/>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</module>
|
|
@ -0,0 +1,38 @@
|
||||||
|
<?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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<module xmlns="urn:jboss:module:1.1" name="org.keycloak.keycloak-adapter-subsystem">
|
||||||
|
<properties>
|
||||||
|
<property name="keycloak-version" value="${project.version}"/>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<resources>
|
||||||
|
<resource-root path="."/>
|
||||||
|
<!-- Insert resources here -->
|
||||||
|
</resources>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<module name="org.keycloak.keycloak-as7-subsystem" export="true" services="export"/>
|
||||||
|
</dependencies>
|
||||||
|
</module>
|
|
@ -0,0 +1,25 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<module xmlns="urn:jboss:module:1.1" name="org.keycloak.keycloak-as7-adapter">
|
||||||
|
<resources>
|
||||||
|
<!-- Insert resources here -->
|
||||||
|
</resources>
|
||||||
|
<dependencies>
|
||||||
|
<module name="javax.api"/>
|
||||||
|
<module name="org.bouncycastle" />
|
||||||
|
<module name="org.codehaus.jackson.jackson-core-asl"/>
|
||||||
|
<module name="org.codehaus.jackson.jackson-mapper-asl"/>
|
||||||
|
<module name="org.codehaus.jackson.jackson-xc"/>
|
||||||
|
<module name="org.apache.httpcomponents" slot="4.3" />
|
||||||
|
<module name="javax.servlet.api"/>
|
||||||
|
<module name="org.jboss.logging"/>
|
||||||
|
<module name="org.jboss.as.security"/>
|
||||||
|
<module name="org.jboss.as.web"/>
|
||||||
|
<module name="org.picketbox"/>
|
||||||
|
<module name="org.keycloak.keycloak-adapter-core"/>
|
||||||
|
<module name="org.keycloak.keycloak-core"/>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</module>
|
|
@ -0,0 +1,23 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<module xmlns="urn:jboss:module:1.1" name="org.keycloak.keycloak-as7-subsystem">
|
||||||
|
<resources>
|
||||||
|
<!-- Insert resources here -->
|
||||||
|
</resources>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<module name="javax.api"/>
|
||||||
|
<module name="org.keycloak.keycloak-as7-adapter"/>
|
||||||
|
<module name="org.jboss.staxmapper"/>
|
||||||
|
<module name="org.jboss.as.controller"/>
|
||||||
|
<module name="org.jboss.as.server"/>
|
||||||
|
<module name="org.jboss.as.web"/>
|
||||||
|
<module name="org.jboss.modules"/>
|
||||||
|
<module name="org.jboss.msc"/>
|
||||||
|
<module name="org.jboss.logging"/>
|
||||||
|
<module name="org.jboss.vfs"/>
|
||||||
|
<module name="org.jboss.metadata"/>
|
||||||
|
</dependencies>
|
||||||
|
</module>
|
|
@ -0,0 +1,21 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<module xmlns="urn:jboss:module:1.1" name="org.keycloak.keycloak-core">
|
||||||
|
<resources>
|
||||||
|
<!-- Insert resources here -->
|
||||||
|
</resources>
|
||||||
|
<dependencies>
|
||||||
|
<module name="org.codehaus.jackson.jackson-core-asl"/>
|
||||||
|
<module name="org.codehaus.jackson.jackson-mapper-asl"/>
|
||||||
|
<module name="org.codehaus.jackson.jackson-xc"/>
|
||||||
|
<module name="org.bouncycastle" />
|
||||||
|
<module name="net.iharder.base64"/>
|
||||||
|
<module name="javax.api"/>
|
||||||
|
<module name="javax.activation.api"/>
|
||||||
|
<module name="sun.jdk" optional="true" />
|
||||||
|
<module name="sun.jdk.jgss" optional="true" />
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</module>
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<module xmlns="urn:jboss:module:1.1" name="org.keycloak.keycloak-jboss-adapter-core">
|
||||||
|
<resources>
|
||||||
|
<!-- Insert resources here -->
|
||||||
|
</resources>
|
||||||
|
<dependencies>
|
||||||
|
<module name="javax.api"/>
|
||||||
|
<module name="org.jboss.logging"/>
|
||||||
|
<module name="org.picketbox"/>
|
||||||
|
<module name="org.keycloak.keycloak-adapter-core"/>
|
||||||
|
<module name="org.keycloak.keycloak-core"/>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</module>
|
20
distribution/adapters/as7-adapter/pom.xml
Normal file
20
distribution/adapters/as7-adapter/pom.xml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<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">
|
||||||
|
<parent>
|
||||||
|
<artifactId>keycloak-parent</artifactId>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<version>1.3.0.Final-SNAPSHOT</version>
|
||||||
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
<name>Keycloak JBoss AS 7 Adapter</name>
|
||||||
|
<description/>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>keycloak-as7-adapter-dist-pom</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>as7-modules</module>
|
||||||
|
<module>as7-adapter-zip</module>
|
||||||
|
</modules>
|
||||||
|
</project>
|
|
@ -27,7 +27,7 @@
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>as7-adapter-zip</module>
|
<module>as7-adapter</module>
|
||||||
<module>eap6-adapter-zip</module>
|
<module>eap6-adapter-zip</module>
|
||||||
<module>jetty81-adapter-zip</module>
|
<module>jetty81-adapter-zip</module>
|
||||||
<module>jetty91-adapter-zip</module>
|
<module>jetty91-adapter-zip</module>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<groupId>org.keycloak</groupId>
|
<groupId>org.keycloak</groupId>
|
||||||
<artifactId>keycloak-parent</artifactId>
|
<artifactId>keycloak-parent</artifactId>
|
||||||
<version>1.3.0.Final-SNAPSHOT</version>
|
<version>1.3.0.Final-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>keycloak-as7-subsystem</artifactId>
|
<artifactId>keycloak-as7-subsystem</artifactId>
|
20
integration/as7-eap6/pom.xml
Normal file
20
integration/as7-eap6/pom.xml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<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">
|
||||||
|
<parent>
|
||||||
|
<artifactId>keycloak-parent</artifactId>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<version>1.3.0.Final-SNAPSHOT</version>
|
||||||
|
<relativePath>../../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
<name>Keycloak AS7 / EAP6 Integration</name>
|
||||||
|
<description/>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>keycloak-as7-integration-pom</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>as7-adapter</module>
|
||||||
|
<module>as7-subsystem</module>
|
||||||
|
</modules>
|
||||||
|
</project>
|
|
@ -19,11 +19,10 @@
|
||||||
<module>servlet-oauth-client</module>
|
<module>servlet-oauth-client</module>
|
||||||
<module>jboss-adapter-core</module>
|
<module>jboss-adapter-core</module>
|
||||||
<module>tomcat</module>
|
<module>tomcat</module>
|
||||||
<module>as7-eap6/adapter</module>
|
<module>as7-eap6</module>
|
||||||
<module>jetty</module>
|
<module>jetty</module>
|
||||||
<module>undertow</module>
|
<module>undertow</module>
|
||||||
<module>wildfly</module>
|
<module>wildfly</module>
|
||||||
<module>as7-subsystem</module>
|
|
||||||
<module>js</module>
|
<module>js</module>
|
||||||
<module>installed</module>
|
<module>installed</module>
|
||||||
<module>admin-client</module>
|
<module>admin-client</module>
|
||||||
|
|
6
pom.xml
6
pom.xml
|
@ -1079,6 +1079,12 @@
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<type>zip</type>
|
<type>zip</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.keycloak</groupId>
|
||||||
|
<artifactId>keycloak-as7-modules</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<type>zip</type>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.keycloak</groupId>
|
<groupId>org.keycloak</groupId>
|
||||||
<artifactId>keycloak-wf8-modules</artifactId>
|
<artifactId>keycloak-wf8-modules</artifactId>
|
||||||
|
|
Loading…
Reference in a new issue