Merge pull request #3811 from mhajas/KEYCLOAK-4286

KEYCLOAK-4286 Use desired version of JS-adapter
This commit is contained in:
Pavel Drozd 2017-02-13 10:39:56 +01:00 committed by GitHub
commit 767b4a2e2a
2 changed files with 29 additions and 2 deletions

View file

@ -30,9 +30,37 @@
<name>JS Console</name> <name>JS Console</name>
<description/> <description/>
<properties>
<js-adapter.version>${project.version}</js-adapter.version>
</properties>
<build> <build>
<finalName>js-console</finalName> <finalName>js-console</finalName>
<plugins> <plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-javascript-adapter</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-js-adapter</artifactId>
<version>${js-adapter.version}</version>
<type>jar</type>
<outputDirectory>${pom.basedir}/target/js-console/js</outputDirectory>
</artifactItem>
</artifactItems>
<includes>**/keycloak.js</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.jboss.as.plugins</groupId> <groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId> <artifactId>jboss-as-maven-plugin</artifactId>

View file

@ -17,8 +17,7 @@
<html> <html>
<head> <head>
<script src="http://localhost:8180/auth/js/keycloak.js"></script> <script src="js/keycloak.js"></script>
<script src="https://localhost:8543/auth/js/keycloak.js"></script>
</head> </head>
<body> <body>