Keycloak

Форк
0
/
pom.xml 
167 строк · 6.4 Кб
1
<?xml version="1.0"?>
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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
21
    <parent>
22
        <artifactId>keycloak-parent</artifactId>
23
        <groupId>org.keycloak</groupId>
24
        <version>999.0.0-SNAPSHOT</version>
25
        <relativePath>../pom.xml</relativePath>
26
    </parent>
27
    <modelVersion>4.0.0</modelVersion>
28

29
    <artifactId>keycloak-core</artifactId>
30
    <name>Keycloak Core</name>
31
    <packaging>jar</packaging>
32
    <description/>
33

34
    <properties>
35
        <timestamp>${maven.build.timestamp}</timestamp>
36
        <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
37
        <keycloak.osgi.export>
38
            org.keycloak.*
39
        </keycloak.osgi.export>
40
        <keycloak.osgi.import>
41
            *;resolution:=optional
42
        </keycloak.osgi.import>
43
    </properties>
44
    <dependencies>
45
        <dependency>
46
            <groupId>org.keycloak</groupId>
47
            <artifactId>keycloak-common</artifactId>
48
        </dependency>
49
        <dependency>
50
            <groupId>com.fasterxml.jackson.core</groupId>
51
            <artifactId>jackson-core</artifactId>
52
        </dependency>
53
        <dependency>
54
            <groupId>com.fasterxml.jackson.core</groupId>
55
            <artifactId>jackson-databind</artifactId>
56
        </dependency>
57
        <dependency>
58
            <groupId>org.jboss.logging</groupId>
59
            <artifactId>jboss-logging</artifactId>
60
            <scope>provided</scope>
61
        </dependency>
62
        <dependency>
63
            <groupId>org.eclipse.microprofile.openapi</groupId>
64
            <artifactId>microprofile-openapi-api</artifactId>
65
        </dependency>
66
        <dependency>
67
            <groupId>junit</groupId>
68
            <artifactId>junit</artifactId>
69
            <scope>test</scope>
70
        </dependency>
71
    </dependencies>
72

73
    <profiles>
74
        <profile>
75
            <id>jdk-16</id>
76
            <activation>
77
                <jdk>[16,)</jdk>
78
            </activation>
79
            <build>
80
                <plugins>
81
                    <plugin>
82
                        <artifactId>maven-compiler-plugin</artifactId>
83
                        <executions>
84
                            <execution>
85
                                <id>compile-java16</id>
86
                                <phase>compile</phase>
87
                                <goals>
88
                                    <goal>compile</goal>
89
                                </goals>
90
                                <configuration>
91
                                    <release>16</release>
92
                                    <compileSourceRoots>
93
                                        <compileSourceRoot>${project.basedir}/src/main/java16</compileSourceRoot>
94
                                    </compileSourceRoots>
95
                                    <multiReleaseOutput>true</multiReleaseOutput>
96
                                </configuration>
97
                            </execution>
98
                        </executions>
99
                    </plugin>
100
                    <plugin>
101
                        <groupId>org.apache.felix</groupId>
102
                        <artifactId>maven-bundle-plugin</artifactId>
103
                        <configuration>
104
                            <instructions>
105
                                <_fixupmessages>"Classes found in the wrong directory";is:=warning</_fixupmessages>
106
                            </instructions>
107
                        </configuration>
108
                    </plugin>
109
                </plugins>
110
            </build>
111
        </profile>
112
    </profiles>
113

114
    <build>
115
        <resources>
116
            <resource>
117
                <directory>src/main/resources</directory>
118
                <filtering>true</filtering>
119
            </resource>
120
        </resources>
121
        <plugins>
122
            <!-- Adding OSGI metadata to the JAR without changing the packaging type. -->
123
            <plugin>
124
                <artifactId>maven-jar-plugin</artifactId>
125
                <configuration>
126
                    <archive>
127
                        <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
128
                        <manifestEntries>
129
                            <Multi-Release>true</Multi-Release>
130
                        </manifestEntries>
131
                    </archive>
132
                </configuration>
133
                <executions>
134
                    <execution>
135
                        <goals>
136
                            <goal>test-jar</goal>
137
                        </goals>
138
                    </execution>
139
                </executions>
140
            </plugin>
141
            <plugin>
142
                <groupId>org.apache.felix</groupId>
143
                <artifactId>maven-bundle-plugin</artifactId>
144
                <extensions>true</extensions>
145
                <executions>
146
                    <execution>
147
                        <id>bundle-manifest</id>
148
                        <phase>process-classes</phase>
149
                        <goals>
150
                            <goal>manifest</goal>
151
                        </goals>
152
                    </execution>
153
                </executions>
154
                <configuration>
155
                    <instructions>
156
                        <Bundle-ClassPath>.</Bundle-ClassPath>
157
                        <Bundle-Name>${project.name}</Bundle-Name>
158
                        <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
159
                        <Import-Package>${keycloak.osgi.import}</Import-Package>
160
                        <Export-Package>${keycloak.osgi.export}</Export-Package>
161
                    </instructions>
162
                </configuration>
163
            </plugin>
164
        </plugins>
165
    </build>
166

167
</project>
168

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

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

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

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