2015-07-17 11:45:43 +00:00
|
|
|
<?xml version="1.0"?>
|
2016-02-03 10:20:22 +00:00
|
|
|
<!--
|
|
|
|
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
|
|
|
|
~ and other contributors as indicated by the @author tags.
|
|
|
|
~
|
|
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
~ you may not use this file except in compliance with the License.
|
|
|
|
~ You may obtain a copy of the License at
|
|
|
|
~
|
|
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
~
|
|
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
~ See the License for the specific language governing permissions and
|
|
|
|
~ limitations under the License.
|
|
|
|
-->
|
|
|
|
|
2015-07-17 11:45:43 +00:00
|
|
|
<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>
|
2019-04-17 08:46:21 +00:00
|
|
|
<version>7.0.0-SNAPSHOT</version>
|
2015-07-17 11:45:43 +00:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>keycloak-services</artifactId>
|
|
|
|
<name>Keycloak REST Services</name>
|
|
|
|
<description />
|
|
|
|
|
2015-09-02 11:19:32 +00:00
|
|
|
<properties>
|
2017-01-10 15:53:49 +00:00
|
|
|
<version.swagger.doclet>1.1.2</version.swagger.doclet>
|
2015-09-02 11:19:32 +00:00
|
|
|
</properties>
|
|
|
|
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcprov-jdk15on</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcpkix-jdk15on</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2016-01-19 16:33:59 +00:00
|
|
|
<groupId>org.freemarker</groupId>
|
|
|
|
<artifactId>freemarker</artifactId>
|
|
|
|
<scope>provided</scope>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependency>
|
2015-12-01 12:44:11 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.mail</groupId>
|
2016-02-09 19:15:23 +00:00
|
|
|
<artifactId>javax.mail-api</artifactId>
|
2015-12-01 12:44:11 +00:00
|
|
|
</dependency>
|
2017-09-14 17:53:02 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.glassfish</groupId>
|
|
|
|
<artifactId>javax.json</artifactId>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
2016-01-15 23:44:17 +00:00
|
|
|
<artifactId>keycloak-server-spi</artifactId>
|
|
|
|
<scope>provided</scope>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependency>
|
2016-11-09 08:40:31 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-server-spi-private</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2016-11-09 22:34:07 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
2016-11-14 20:06:17 +00:00
|
|
|
<artifactId>keycloak-ldap-federation</artifactId>
|
2016-11-09 22:34:07 +00:00
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.spec.javax.servlet</groupId>
|
2018-09-24 08:49:47 +00:00
|
|
|
<artifactId>jboss-servlet-api_4.0_spec</artifactId>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependency>
|
2016-01-20 21:46:38 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.twitter4j</groupId>
|
|
|
|
<artifactId>twitter4j-core</artifactId>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
|
2016-08-12 19:04:42 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.wildfly.core</groupId>
|
|
|
|
<artifactId>wildfly-controller</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.logging</groupId>
|
|
|
|
<artifactId>jboss-logging</artifactId>
|
|
|
|
</dependency>
|
2016-01-15 20:29:45 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.logging</groupId>
|
|
|
|
<artifactId>jboss-logging-annotations</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.logging</groupId>
|
|
|
|
<artifactId>jboss-logging-processor</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-jaxrs</artifactId>
|
2018-09-24 08:49:47 +00:00
|
|
|
<scope>provided</scope>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2016-01-13 20:03:32 +00:00
|
|
|
<groupId>org.jboss.spec.javax.ws.rs</groupId>
|
2018-08-09 13:01:54 +00:00
|
|
|
<artifactId>jboss-jaxrs-api_2.1_spec</artifactId>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependency>
|
2016-08-07 15:41:52 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.spec.javax.transaction</groupId>
|
|
|
|
<artifactId>jboss-transaction-api_1.2_spec</artifactId>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-multipart-provider</artifactId>
|
|
|
|
</dependency>
|
2018-07-31 18:51:42 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
|
|
|
|
<artifactId>owasp-java-html-sanitizer</artifactId>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
2016-01-13 20:03:32 +00:00
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-core</artifactId>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2016-01-13 20:03:32 +00:00
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2016-01-13 20:03:32 +00:00
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-annotations</artifactId>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependency>
|
2017-07-19 11:47:03 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.woodstox</groupId>
|
|
|
|
<artifactId>woodstox-core</artifactId>
|
|
|
|
<version>${woodstox.version}</version> <!-- this version has to match that of used in Wildfly -->
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.zxing</groupId>
|
|
|
|
<artifactId>javase</artifactId>
|
|
|
|
</dependency>
|
2016-04-12 19:19:46 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-saml-core-public</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2016-01-20 21:46:38 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-saml-core</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2018-07-16 16:53:32 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-all</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.icegreen</groupId>
|
|
|
|
<artifactId>greenmail</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2018-12-05 11:32:53 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.openshift</groupId>
|
|
|
|
<artifactId>openshift-restclient-java</artifactId>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
2016-01-15 20:29:45 +00:00
|
|
|
<compilerArgument>
|
|
|
|
-AgeneratedTranslationFilesPath=${project.build.directory}/generated-translation-files
|
|
|
|
</compilerArgument>
|
2015-07-17 11:45:43 +00:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2015-09-02 11:19:32 +00:00
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>jboss-release</id>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2017-03-27 18:46:38 +00:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-resources</id>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>target/docs</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/docs</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2015-09-16 09:53:53 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
2018-09-24 08:49:47 +00:00
|
|
|
<!-- Reverted version as the new version of maven-javadoc-plugin is not compatible with swagger doclet -->
|
|
|
|
<version>2.10.3</version>
|
2015-09-16 09:53:53 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>generate-service-docs</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<configuration>
|
|
|
|
<doclet>com.carma.swagger.doclet.ServiceDoclet</doclet>
|
|
|
|
<docletArtifact>
|
|
|
|
<groupId>com.carma</groupId>
|
|
|
|
<artifactId>swagger-doclet</artifactId>
|
|
|
|
<version>${version.swagger.doclet}</version>
|
|
|
|
</docletArtifact>
|
|
|
|
|
|
|
|
<subpackages>org.keycloak.services.resources.admin:org.keycloak.protocol.oidc</subpackages>
|
|
|
|
<detectOfflineLinks>false</detectOfflineLinks>
|
|
|
|
<offlineLinks>
|
|
|
|
<offlineLink>
|
|
|
|
<url>../javadocs</url>
|
|
|
|
<location>${project.basedir}/../target/site/apidocs</location>
|
|
|
|
</offlineLink>
|
|
|
|
</offlineLinks>
|
|
|
|
|
|
|
|
<reportOutputDirectory>${project.basedir}/target/apidocs-rest/swagger</reportOutputDirectory>
|
|
|
|
<useStandardDocletOptions>false</useStandardDocletOptions>
|
2017-03-27 18:46:38 +00:00
|
|
|
<additionalparam> -skipUiFiles -apiVersion 1 -includeResourcePrefixes org.keycloak.services.resources.admin,org.keycloak.protocol.oidc -docBasePath /apidocs -apiBasePath http://localhost:8080/auth -apiInfoFile ${project.basedir}/target/docs/swagger/apiinfo.json</additionalparam>
|
2015-09-16 09:53:53 +00:00
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>javadoc</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2015-09-02 11:19:32 +00:00
|
|
|
<plugin>
|
2017-01-10 15:53:49 +00:00
|
|
|
<groupId>io.github.swagger2markup</groupId>
|
2015-09-02 11:19:32 +00:00
|
|
|
<artifactId>swagger2markup-maven-plugin</artifactId>
|
2017-01-10 15:53:49 +00:00
|
|
|
<version>1.1.0</version>
|
2015-09-02 11:19:32 +00:00
|
|
|
|
2018-03-10 02:47:11 +00:00
|
|
|
<!-- Replace the dependencies that aren't in Maven Central -->
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>ca.szc.thirdparty.nl.jworks.markdown_to_asciidoc</groupId>
|
|
|
|
<artifactId>markdown_to_asciidoc</artifactId>
|
|
|
|
<!-- Keep in sync with markup-document-builder's dependency -->
|
|
|
|
<version>1.0</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.github.swagger2markup</groupId>
|
|
|
|
<artifactId>swagger2markup</artifactId>
|
|
|
|
<!-- Keep in sync with swagger2markup-maven-plugin's dependency -->
|
|
|
|
<version>1.1.0</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>nl.jworks.markdown_to_asciidoc</groupId>
|
|
|
|
<artifactId>markdown_to_asciidoc</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
2015-09-02 11:19:32 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>gen-asciidoc</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
2017-01-10 15:53:49 +00:00
|
|
|
<goal>convertSwagger2markup</goal>
|
2015-09-02 11:19:32 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-01-10 15:53:49 +00:00
|
|
|
<swaggerInput>${project.build.directory}/apidocs-rest/swagger/apidocs/service.json</swaggerInput>
|
|
|
|
<outputDir>${project.build.directory}/apidocs-rest/asciidoc/</outputDir>
|
|
|
|
<config>
|
|
|
|
<swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
|
2017-01-10 15:56:03 +00:00
|
|
|
<swagger2markup.pathsGroupedBy>TAGS</swagger2markup.pathsGroupedBy>
|
2017-01-10 15:53:49 +00:00
|
|
|
</config>
|
2015-09-02 11:19:32 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.asciidoctor</groupId>
|
|
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
2017-01-10 15:53:49 +00:00
|
|
|
<version>1.5.3</version>
|
2015-09-02 11:19:32 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>generate-docs</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>process-asciidoc</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-03-27 18:46:38 +00:00
|
|
|
<sourceDirectory>${project.basedir}/target/docs/asciidoc</sourceDirectory>
|
2015-09-02 11:19:32 +00:00
|
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
|
|
<outputDirectory>${project.basedir}/target/apidocs-rest/output</outputDirectory>
|
|
|
|
<backend>html5</backend>
|
|
|
|
<attributes>
|
|
|
|
<!-- List of attributes:
|
|
|
|
https://github.com/asciidoctor/asciidoctorj/blob/master/asciidoctorj-core/src/main/java/org/asciidoctor/Attributes.java
|
|
|
|
-->
|
2015-09-15 19:22:06 +00:00
|
|
|
<toc/>
|
2017-01-10 16:00:07 +00:00
|
|
|
<toc-position>left</toc-position>
|
2015-09-02 11:19:32 +00:00
|
|
|
<generated>${project.basedir}/target/apidocs-rest/asciidoc</generated>
|
|
|
|
</attributes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2015-07-17 11:45:43 +00:00
|
|
|
</project>
|