Keycloak

Форк
0
/
pom.xml 
237 строк · 10.8 Кб
1
<?xml version="1.0"?>
2
<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">
3
    <parent>
4
        <artifactId>keycloak-parent</artifactId>
5
        <groupId>org.keycloak</groupId>
6
        <version>999.0.0-SNAPSHOT</version>
7
    </parent>
8
    <modelVersion>4.0.0</modelVersion>
9

10
    <artifactId>keycloak-themes</artifactId>
11
    <name>Keycloak Themes</name>
12
    <description />
13
    <packaging>jar</packaging>
14

15
    <properties>
16
        <dir.common>src/main/resources/theme/keycloak/common/resources</dir.common>
17
        <dir.account2>src/main/resources/theme/keycloak.v2/account/src</dir.account2>
18
        <!-- ignore folders for incremental builds by the maven build cache plugin -->
19
        <maven.build.cache.exclude.value.1>src/main/resources/theme/keycloak/common/resources/node_modules</maven.build.cache.exclude.value.1>
20
        <maven.build.cache.exclude.value.2>src/main/resources/theme/keycloak/common/resources/vendor</maven.build.cache.exclude.value.2>
21
        <maven.build.cache.exclude.value.3>src/main/resources/theme/keycloak.v2/account/src/node_modules</maven.build.cache.exclude.value.3>
22
        <maven.build.cache.exclude.value.4>src/main/resources/theme/keycloak.v2/account/src/web_modules</maven.build.cache.exclude.value.4>
23
        <maven.build.cache.exclude.value.6>src/main/resources/theme/keycloak.v2/account/resources</maven.build.cache.exclude.value.6>
24
        <maven.build.cache.exclude.glob.6>*.js</maven.build.cache.exclude.glob.6>
25
        <maven.build.cache.exclude.value.7>src/main/resources/theme/keycloak.v2/account/resources</maven.build.cache.exclude.value.7>
26
        <maven.build.cache.exclude.glob.7>*.js.map</maven.build.cache.exclude.glob.7>
27
        <maven.build.cache.exclude.value.8>src/main/resources/theme/keycloak.v2/account/resources/public/app.css</maven.build.cache.exclude.value.8>
28
        <maven.build.cache.exclude.value.9>src/main/resources/theme/keycloak.v2/account/web_modules</maven.build.cache.exclude.value.9>
29
        <maven.build.cache.exclude.value.10>src/main/resources/theme/keycloak.v2/welcome/node_modules</maven.build.cache.exclude.value.10>
30
        <maven.build.cache.exclude.value.11>src/main/resources/theme/keycloak.v2/welcome/resources/vendor</maven.build.cache.exclude.value.11>
31
    </properties>
32

33
    <dependencies>
34
        <dependency>
35
            <groupId>org.keycloak</groupId>
36
            <artifactId>keycloak-admin-ui</artifactId>
37
        </dependency>
38
        <dependency>
39
            <groupId>org.keycloak</groupId>
40
            <artifactId>keycloak-account-ui</artifactId>
41
        </dependency>
42
    </dependencies>
43

44
    <build>
45
        <resources>
46
            <resource>
47
                <directory>src/main/resources</directory>
48
                <excludes>
49
                    <exclude>**/node_modules/**/node_modules/**</exclude>
50
                    <exclude>**/minimist/**</exclude>
51
                    <exclude>**/mkdirp/**</exclude>
52
                    <exclude>**/package.json</exclude>
53
                    <exclude>**/package-lock.json</exclude>
54
                    <exclude>**/pnpm-lock.yaml</exclude>
55
                    <exclude>**/pnpm-workspace.yaml</exclude>
56
                    <exclude>**/component.json</exclude>
57
                    <exclude>**/composer.json</exclude>
58
                    <exclude>**/npm-shrinkwrap.json</exclude>
59
                    <exclude>**/select2.jquery.json</exclude>
60
                    <exclude>**/*.markdown</exclude>
61
                    <exclude>**/*.swf</exclude>
62
                    <exclude>**/*.sh</exclude>
63
                    <exclude>**/.bin/**</exclude>
64
                    <exclude>**/bin/**</exclude>
65
                    <exclude>**/build/**</exclude>
66
                    <exclude>**/docs/**</exclude>
67
                    <exclude>**/demo/**</exclude>
68
                    <exclude>**/devtools/**</exclude>
69
                    <exclude>**/example/**</exclude>
70
                    <exclude>**/examples/**</exclude>
71
                    <exclude>**/grunt/**</exclude>
72
                    <exclude>**/less/**</exclude>
73
                    <exclude>**/sass/**</exclude>
74
                    <exclude>**/scss/**</exclude>
75
                    <exclude>**/jquery/src/**</exclude>
76
                    <exclude>**/angular-treeview/src/**</exclude>
77
                    <exclude>**/test/**</exclude>
78
                    <exclude>**/tests/**</exclude>
79
                    <exclude>**/_config.yml</exclude>
80
                    <exclude>**/api.md</exclude>
81
                    <exclude>**/AUTHORS.txt</exclude>
82
                    <exclude>**/CHANGELOG.md</exclude>
83
                    <exclude>**/CONTRIBUTING.md</exclude>
84
                    <exclude>**/HELP-US-OUT.txt</exclude>
85
                    <exclude>**/README.md</exclude>
86
                    <exclude>**/Gruntfile.js</exclude>
87
                    <exclude>**/Gemfile*</exclude>
88
                    <exclude>**/.*</exclude>
89

90
                    <exclude>**/keycloak.v2/account/src/**</exclude>
91
                </excludes>
92
            </resource>
93
        </resources>
94
        <plugins>
95
            <plugin>
96
                <artifactId>maven-source-plugin</artifactId>
97
                <configuration>
98
                    <excludes>
99
                        <exclude>**/node_modules/**/*</exclude>
100
                        <exclude>**/web_modules/**/*</exclude>
101
                        <exclude>**/*.js.map</exclude>
102
                        <exclude>**/account/resources/*.js</exclude>
103
                    </excludes>
104
                </configuration>
105
            </plugin>
106
        </plugins>
107
    </build>
108

109
    <profiles>
110
        <profile>
111
            <id>communityTranslations</id>
112
            <activation>
113
                <property>
114
                    <name>!skipCommunityTranslations</name>
115
                </property>
116
            </activation>
117
            <build>
118
                <resources>
119
                    <resource>
120
                        <directory>src/main/resources-community</directory>
121
                    </resource>
122
                </resources>
123
            </build>
124
        </profile>
125

126
        <profile>
127
            <id>account2</id>
128
            <activation>
129
                <property>
130
                    <name>!skipAccount2</name>
131
                </property>
132
            </activation>
133
            <build>
134
                <plugins>
135
                    <plugin>
136
                        <artifactId>maven-clean-plugin</artifactId>
137
                        <configuration>
138
                            <filesets>
139
                                <fileset>
140
                                    <directory>${dir.account2}/web_modules</directory>
141
                                </fileset>
142
                            </filesets>
143
                        </configuration>
144
                    </plugin>
145
                    <plugin>
146
                        <groupId>com.github.eirslett</groupId>
147
                        <artifactId>frontend-maven-plugin</artifactId>
148
                        <executions>
149
                            <execution>
150
                                <id>install-node-and-pnpm-account2</id>
151
                                <goals>
152
                                    <goal>install-node-and-pnpm</goal>
153
                                </goals>
154
                            </execution>
155
                            <execution>
156
                                <id>pnpm-install-account2</id>
157
                                <goals>
158
                                    <goal>pnpm</goal>
159
                                </goals>
160
                                <configuration>
161
                                    <arguments>${pnpm.args.install}</arguments>
162
                                    <workingDirectory>${dir.account2}</workingDirectory>
163
                                </configuration>
164
                            </execution>
165
                            <execution>
166
                                <id>run-build-account2</id>
167
                                <goals>
168
                                    <goal>pnpm</goal>
169
                                </goals>
170
                                <configuration>
171
                                    <arguments>run build</arguments>
172
                                    <workingDirectory>${dir.account2}</workingDirectory>
173
                                </configuration>
174
                            </execution>
175
                        </executions>
176
                    </plugin>
177
                </plugins>
178
            </build>
179
        </profile>
180

181
        <profile>
182
            <id>common</id>
183
            <activation>
184
                <property>
185
                    <name>!skipCommon</name>
186
                </property>
187
            </activation>
188
            <build>
189
                <plugins>
190
                    <plugin>
191
                        <artifactId>maven-clean-plugin</artifactId>
192
                        <configuration>
193
                            <filesets>
194
                                <fileset>
195
                                    <directory>${dir.common}/web_modules</directory>
196
                                </fileset>
197
                            </filesets>
198
                        </configuration>
199
                    </plugin>
200
                    <plugin>
201
                        <groupId>com.github.eirslett</groupId>
202
                        <artifactId>frontend-maven-plugin</artifactId>
203
                        <executions>
204
                            <execution>
205
                                <id>install-node-and-pnpm-common</id>
206
                                <goals>
207
                                    <goal>install-node-and-pnpm</goal>
208
                                </goals>
209
                            </execution>
210
                            <execution>
211
                                <id>pnpm-install-common</id>
212
                                <goals>
213
                                    <goal>pnpm</goal>
214
                                </goals>
215
                                <configuration>
216
                                    <arguments>${pnpm.args.install}</arguments>
217
                                    <workingDirectory>${dir.common}</workingDirectory>
218
                                </configuration>
219
                            </execution>
220
                            <execution>
221
                                <id>pnpm-build-common</id>
222
                                <goals>
223
                                    <goal>pnpm</goal>
224
                                </goals>
225
                                <configuration>
226
                                    <arguments>run build</arguments>
227
                                    <workingDirectory>${dir.common}</workingDirectory>
228
                                </configuration>
229
                            </execution>
230
                        </executions>
231
                    </plugin>
232
                </plugins>
233
            </build>
234
        </profile>
235
    </profiles>
236

237
</project>
238

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

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

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

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