Keycloak

Форк
0
96 строк · 3.4 Кб
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
4
  ~ and other contributors as indicated by the @author tags.
5
  ~
6
  ~ Licensed under the Apache License, Version 2.0 (the "License");
7
  ~ you may not use this file except in compliance with the License.
8
  ~ You may obtain a copy of the License at
9
  ~
10
  ~ http://www.apache.org/licenses/LICENSE-2.0
11
  ~
12
  ~ Unless required by applicable law or agreed to in writing, software
13
  ~ distributed under the License is distributed on an "AS IS" BASIS,
14
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
  ~ See the License for the specific language governing permissions and
16
  ~ limitations under the License.
17
  -->
18

19
<project xmlns="http://maven.apache.org/POM/4.0.0"
20
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22
    <parent>
23
        <artifactId>keycloak-examples-parent</artifactId>
24
        <groupId>org.keycloak</groupId>
25
        <version>999.0.0-SNAPSHOT</version>
26
    </parent>
27

28
    <modelVersion>4.0.0</modelVersion>
29
    <groupId>org.keycloak.example.demo</groupId>
30
    <artifactId>keycloak-examples-ldap</artifactId>
31
    <packaging>war</packaging>
32
    <name>LDAP Demo Application</name>
33

34
    <dependencies>
35
        <dependency>
36
            <groupId>jakarta.servlet</groupId>
37
            <artifactId>jakarta.servlet-api</artifactId>
38
            <scope>provided</scope>
39
        </dependency>
40
        <dependency>
41
            <groupId>org.keycloak</groupId>
42
            <artifactId>keycloak-core</artifactId>
43
            <scope>provided</scope>
44
        </dependency>
45
        <dependency>
46
            <groupId>org.keycloak</groupId>
47
            <artifactId>keycloak-util-embedded-ldap</artifactId>
48
            <scope>test</scope>
49
        </dependency>
50
    </dependencies>
51

52
    <build>
53
        <finalName>ldap-portal</finalName>
54
        <plugins>
55
            <plugin>
56
                <groupId>org.jboss.as.plugins</groupId>
57
                <artifactId>jboss-as-maven-plugin</artifactId>
58
                <configuration>
59
                    <skip>false</skip>
60
                </configuration>
61
            </plugin>
62
            <plugin>
63
                <groupId>org.wildfly.plugins</groupId>
64
                <artifactId>wildfly-maven-plugin</artifactId>
65
                <configuration>
66
                    <skip>false</skip>
67
                </configuration>
68
            </plugin>
69
        </plugins>
70
    </build>
71

72
    <profiles>
73
        <profile>
74
            <id>ldap</id>
75
            <build>
76
                <plugins>
77
                    <plugin>
78
                        <groupId>org.codehaus.mojo</groupId>
79
                        <artifactId>exec-maven-plugin</artifactId>
80
                        <configuration>
81
                            <mainClass>org.keycloak.util.ldap.LDAPEmbeddedServer</mainClass>
82
                            <classpathScope>test</classpathScope>
83
                            <systemProperties>
84
                                <systemProperty>
85
                                    <key>ldap.ldif</key>
86
                                    <value>ldap-example-users.ldif</value>
87
                                </systemProperty>
88
                            </systemProperties>
89
                        </configuration>
90
                    </plugin>
91
                </plugins>
92
            </build>
93
        </profile>
94
    </profiles>
95

96
</project>
97

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.