Keycloak

Форк
0
/
pom.xml 
223 строки · 9.9 Кб
1
<!--
2
  ~ Copyright 2023 Red Hat, Inc. and/or its affiliates
3
  ~ and other contributors as indicated by the @author tags.
4
  ~
5
  ~ Licensed under the Apache License, Version 2.0 (the "License");
6
  ~ you may not use this file except in compliance with the License.
7
  ~ You may obtain a copy of the License at
8
  ~
9
  ~ http://www.apache.org/licenses/LICENSE-2.0
10
  ~
11
  ~ Unless required by applicable law or agreed to in writing, software
12
  ~ distributed under the License is distributed on an "AS IS" BASIS,
13
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
  ~ See the License for the specific language governing permissions and
15
  ~ limitations under the License.
16
  -->
17
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19
    <parent>
20
        <artifactId>keycloak-docs-parent</artifactId>
21
        <groupId>org.keycloak</groupId>
22
        <version>999.0.0-SNAPSHOT</version>
23
        <relativePath>../pom.xml</relativePath>
24
    </parent>
25

26
    <modelVersion>4.0.0</modelVersion>
27

28
    <name>Keycloak Guides</name>
29
    <artifactId>keycloak-guides</artifactId>
30
    <description>Keycloak Guides</description>
31
    <!-- although this doesn't provide a JAR, this is necessary to call the DocsBuildDebugUtil class from an IDE for debugging -->
32
    <packaging>jar</packaging>
33

34
    <dependencies>
35
        <dependency>
36
            <groupId>org.keycloak</groupId>
37
            <artifactId>keycloak-guides-maven-plugin</artifactId>
38
            <version>${project.version}</version>
39
        </dependency>
40
    </dependencies>
41

42
    <build>
43
        <plugins>
44
            <plugin>
45
                <artifactId>maven-compiler-plugin</artifactId>
46
            </plugin>
47
            <plugin>
48
                <artifactId>maven-resources-plugin</artifactId>
49
                <version>3.3.0</version>
50
                <executions>
51
                    <execution>
52
                        <id>copy-images</id>
53
                        <phase>validate</phase>
54
                        <goals>
55
                            <goal>copy-resources</goal>
56
                        </goals>
57
                        <configuration>
58
                            <outputDirectory>${basedir}/target/generated-docs/images</outputDirectory>
59
                            <resources>
60
                                <resource>
61
                                    <directory>${basedir}/images</directory>
62
                                </resource>
63
                            </resources>
64
                        </configuration>
65
                    </execution>
66
                    <execution>
67
                        <id>copy-attributes</id>
68
                        <phase>validate</phase>
69
                        <goals>
70
                            <goal>copy-resources</goal>
71
                        </goals>
72
                        <configuration>
73
                            <outputDirectory>${basedir}/target/generated-guides/</outputDirectory>
74
                            <resources>
75
                                <resource>
76
                                    <directory>${basedir}/</directory>
77
                                    <includes>
78
                                        <include>attributes.adoc</include>
79
                                    </includes>
80
                                </resource>
81
                            </resources>
82
                        </configuration>
83
                    </execution>
84
                    <execution>
85
                        <id>copy-included-files</id>
86
                        <phase>validate</phase>
87
                        <goals>
88
                            <goal>copy-resources</goal>
89
                        </goals>
90
                        <configuration>
91
                            <outputDirectory>${basedir}/target/generated-guides/</outputDirectory>
92
                            <resources>
93
                                <resource>
94
                                    <directory>${basedir}/</directory>
95
                                    <includes>
96
                                        <include>**/examples/**/*.*</include>
97
                                        <include>**/partials/**/*.*</include>
98
                                    </includes>
99
                                </resource>
100
                            </resources>
101
                        </configuration>
102
                    </execution>
103
                </executions>
104
            </plugin>
105
            <plugin>
106
                <groupId>org.keycloak</groupId>
107
                <artifactId>keycloak-guides-maven-plugin</artifactId>
108
                <version>${project.version}</version>
109
                <executions>
110
                    <execution>
111
                        <id>generate-asciidoc</id>
112
                        <goals>
113
                            <goal>keycloak-guide</goal>
114
                        </goals>
115
                        <configuration>
116
                            <sourceDir>${project.basedir}</sourceDir>
117
                        </configuration>
118
                    </execution>
119
                </executions>
120
            </plugin>
121
            <plugin>
122
                <groupId>org.asciidoctor</groupId>
123
                <artifactId>asciidoctor-maven-plugin</artifactId>
124
                <configuration>
125
                    <sourceDocumentName>index.adoc</sourceDocumentName>
126
                    <backend>html5</backend>
127
                    <sourceHighlighter>coderay</sourceHighlighter>
128
                    <attributes>
129
                        <toc>left</toc>
130
                        <toc>left</toc>
131
                        <icons>font</icons>
132
                        <sectanchors>true</sectanchors>
133
                        <idprefix/>
134
                        <idseparator>-</idseparator>
135
                        <docinfo1>true</docinfo1>
136
                        <imagesdir>../images</imagesdir>
137
                        <attribute-missing>warn</attribute-missing>
138
                    </attributes>
139
                    <logHandler>
140
                        <failIf>
141
                            <severity>ERROR</severity>
142
                        </failIf>
143
                    </logHandler>
144
                </configuration>
145
                <executions>
146
                    <execution>
147
                        <id>server-asciidoc-to-html</id>
148
                        <phase>generate-resources</phase>
149
                        <goals>
150
                            <goal>process-asciidoc</goal>
151
                        </goals>
152
                        <configuration>
153
                            <sourceDirectory>${basedir}/target/generated-guides/server</sourceDirectory>
154
                            <outputDirectory>${project.build.directory}/generated-docs/server</outputDirectory>
155
                        </configuration>
156
                    </execution>
157
                    <execution>
158
                        <id>operator-asciidoc-to-html</id>
159
                        <phase>generate-resources</phase>
160
                        <goals>
161
                            <goal>process-asciidoc</goal>
162
                        </goals>
163
                        <configuration>
164
                            <sourceDirectory>${basedir}/target/generated-guides/operator</sourceDirectory>
165
                            <outputDirectory>${project.build.directory}/generated-docs/operator</outputDirectory>
166
                        </configuration>
167
                    </execution>
168
                    <execution>
169
                        <id>migration-asciidoc-to-html</id>
170
                        <phase>generate-resources</phase>
171
                        <goals>
172
                            <goal>process-asciidoc</goal>
173
                        </goals>
174
                        <configuration>
175
                            <sourceDirectory>${basedir}/target/generated-guides/migration</sourceDirectory>
176
                            <outputDirectory>${project.build.directory}/generated-docs/migration</outputDirectory>
177
                        </configuration>
178
                    </execution>
179
                    <execution>
180
                        <id>getting-started-asciidoc-to-html</id>
181
                        <phase>generate-resources</phase>
182
                        <goals>
183
                            <goal>process-asciidoc</goal>
184
                        </goals>
185
                        <configuration>
186
                            <sourceDirectory>${basedir}/target/generated-guides/getting-started</sourceDirectory>
187
                            <outputDirectory>${project.build.directory}/generated-docs/getting-started</outputDirectory>
188
                        </configuration>
189
                    </execution>
190
                    <execution>
191
                        <id>high-availability-asciidoc-to-html</id>
192
                        <phase>generate-resources</phase>
193
                        <goals>
194
                            <goal>process-asciidoc</goal>
195
                        </goals>
196
                        <configuration>
197
                            <sourceDirectory>${basedir}/target/generated-guides/high-availability</sourceDirectory>
198
                            <outputDirectory>${project.build.directory}/generated-docs/high-availability</outputDirectory>
199
                        </configuration>
200
                    </execution>
201
                </executions>
202
            </plugin>
203
            <plugin>
204
                <artifactId>maven-assembly-plugin</artifactId>
205
                <configuration>
206
                    <descriptors>
207
                        <descriptor>assembly.xml</descriptor>
208
                    </descriptors>
209
                </configuration>
210
                <executions>
211
                    <execution>
212
                        <id>create-archive</id>
213
                        <phase>package</phase>
214
                        <goals>
215
                            <goal>single</goal>
216
                        </goals>
217
                    </execution>
218
                </executions>
219
            </plugin>
220
        </plugins>
221
    </build>
222

223
</project>

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

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

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

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