added support for set jdk for adapter container
This commit is contained in:
parent
57ea0a3b42
commit
19471d07b8
2 changed files with 59 additions and 40 deletions
|
@ -127,60 +127,49 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<!-- <profile>
|
<profile>
|
||||||
<id>community</id>
|
<id>adapter-jdk</id>
|
||||||
<properties>
|
<activation>
|
||||||
<adapter.libs.eap6>${containers.home}/keycloak-eap6-adapter-dist</adapter.libs.eap6>
|
<property>
|
||||||
</properties>
|
<name>adapter.jdk</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
<artifactId>xml-maven-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>unpack-as7-and-adapter</id>
|
<id>add-java-home-to-arquillian-xml</id>
|
||||||
<phase>generate-resources</phase>
|
<phase>process-resources</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>unpack</goal>
|
<goal>transform</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<artifactItems>
|
<transformationSets>
|
||||||
<artifactItem>
|
<transformationSet>
|
||||||
<groupId>org.jboss.as</groupId>
|
<dir>${project.build.directory}/dependency</dir>
|
||||||
<artifactId>jboss-as-dist</artifactId>
|
<includes>
|
||||||
<version>${jboss.version}</version>
|
<include>arquillian.xml</include>
|
||||||
<type>zip</type>
|
</includes>
|
||||||
<outputDirectory>${containers.home}</outputDirectory>
|
<stylesheet>src/main/xslt/arquillian_jdk.xsl</stylesheet>
|
||||||
</artifactItem>
|
<parameters>
|
||||||
<artifactItem>
|
<parameter>
|
||||||
<groupId>org.keycloak</groupId>
|
<name>javaHome</name>
|
||||||
<artifactId>keycloak-eap6-adapter-dist</artifactId>
|
<value>${adapter.jdk}</value>
|
||||||
<version>${project.version}</version>
|
</parameter>
|
||||||
<type>zip</type>
|
</parameters>
|
||||||
<outputDirectory>${adapter.libs.eap6}</outputDirectory>
|
<outputDir>${project.build.directory}/dependency</outputDir>
|
||||||
</artifactItem>
|
</transformationSet>
|
||||||
</artifactItems>
|
</transformationSets>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
</profile>
|
||||||
<dependency>
|
|
||||||
<groupId>org.jboss.as</groupId>
|
|
||||||
<artifactId>jboss-as-dist</artifactId>
|
|
||||||
<version>${jboss.version}</version>
|
|
||||||
<type>zip</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.keycloak</groupId>
|
|
||||||
<artifactId>keycloak-eap6-adapter-dist</artifactId>
|
|
||||||
<type>zip</type>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</profile>-->
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>adapter-libs-provided</id>
|
<id>adapter-libs-provided</id>
|
||||||
<activation>
|
<activation>
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:xalan="http://xml.apache.org/xalan"
|
||||||
|
xmlns:a="http://jboss.org/schema/arquillian"
|
||||||
|
version="2.0"
|
||||||
|
exclude-result-prefixes="xalan a">
|
||||||
|
|
||||||
|
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" xalan:indent-amount="4" standalone="no"/>
|
||||||
|
<xsl:strip-space elements="*"/>
|
||||||
|
|
||||||
|
<xsl:param name="javaHome"/>
|
||||||
|
|
||||||
|
<xsl:template match="//*[local-name()='container' and @qualifier='app-server-eap6']/*[local-name()='configuration']">
|
||||||
|
<xsl:copy>
|
||||||
|
<xsl:apply-templates select="node()|@*"/>
|
||||||
|
|
||||||
|
<property name="javaHome">
|
||||||
|
<xsl:value-of select="$javaHome"/>
|
||||||
|
</property>
|
||||||
|
</xsl:copy>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
|
<xsl:template match="@*|node()">
|
||||||
|
<xsl:copy>
|
||||||
|
<xsl:apply-templates select="@*|node()" />
|
||||||
|
</xsl:copy>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
Loading…
Reference in a new issue