-
Notifications
You must be signed in to change notification settings - Fork 31
/
pom.xml
230 lines (220 loc) · 9.64 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020-2023 ForgeRock. All rights reserved.
This software may be modified and distributed under the terms
of the MIT license. See the LICENSE file for details.
-->
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.forgerock</groupId>
<artifactId>forgerock-parent</artifactId>
<version>3.1.8</version>
</parent>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-ui-mirai</artifactId>
<version>7.6.0-SNAPSHOT</version>
<name>Mirai UI</name>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<frontendMavenPlugin.version>1.6</frontendMavenPlugin.version>
<node.version>v14.18.1</node.version>
<npm.version>8.1.1</npm.version>
<!-- ForgeRock Release Engineering Maven Plugin
https://wikis.forgerock.org/confluence/display/REPLAN/ForgeRock+Release+Engineering+Maven+Plugin -->
<forgerockReleaseEngineeringMavenPluginVersion>2.0.1</forgerockReleaseEngineeringMavenPluginVersion>
<!-- properties read by docker-maven-plugin -->
<docker.push.registry>gcr.io</docker.push.registry>
<docker.promotion.folder>docker-build</docker.promotion.folder>
<docker.tag>${project.version}</docker.tag>
<docker.imagePropertyConfiguration>override</docker.imagePropertyConfiguration>
<docker.source.dir>./</docker.source.dir>
</properties>
<repositories>
<repository>
<id>forgerock-internal-releases</id>
<name>ForgeRock Internal Releases Repository</name>
<url>https://maven.forgerock.org/artifactory/internal-releases</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>forgerock-internal-snapshots</id>
<name>ForgeRock Internal Snapshots Repository</name>
<url>https://maven.forgerock.org/artifactory/internal-snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<scm>
<connection>scm:git:ssh://git@stash.forgerock.org:7999/openidm/openidm-enduser.git</connection>
<developerConnection>scm:git:ssh://git@stash.forgerock.org:7999/openidm/openidm-enduser.git</developerConnection>
<url>https://stash.forgerock.org/projects/OPENIDM/repos/openidm-enduser/browse</url>
<tag>HEAD</tag>
</scm>
<profiles>
<profile>
<id>thirdpartylicensing</id>
<build>
<plugins>
<plugin>
<inherited>false</inherited>
<groupId>com.forgerock.release</groupId>
<artifactId>release-engineering-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-third-party-licensing-report</id>
<goals>
<goal>generate-third-party-licensing-report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontendMavenPlugin.version}</version>
<configuration>
<installDirectory>${node.install.directory}</installDirectory>
</configuration>
<executions>
<execution>
<id>install-node-and-npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>initialize</phase>
<configuration>
<nodeVersion>${node.version}</nodeVersion>
<npmVersion>${npm.version}</npmVersion>
<downloadRoot>https://maven.forgerock.org/artifactory/forgerock-third-party-virtual/</downloadRoot>
<npmDownloadRoot>https://maven.forgerock.org/artifactory/api/npm/npm-virtual/npm/-/
</npmDownloadRoot>
</configuration>
</execution>
<execution>
<id>npm-install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>initialize</phase>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm rebuild node-sass</id>
<goals>
<goal>npm</goal>
</goals>
<phase>initialize</phase>
<configuration>
<arguments>rebuild node-sass</arguments>
</configuration>
</execution>
<execution>
<id>npm run test</id>
<goals>
<goal>npm</goal>
</goals>
<phase>test</phase>
<configuration>
<arguments>run test:unit</arguments>
</configuration>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>package</phase>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<!--
! Build Docker image for IDM End-User UI.
! (1) mvn clean install
! (2) start Docker environment
! (3) mvn docker:build
!
! Run it locally to quickly test:
! docker run -t -i -p 8080:8080 forgerock/end-user-ui:7.0.0-SNAPSHOT
!
! Open shell prompt in the running container:
! docker ps
! docker exec -it cd731efbd4a3 bash
!
! Example of building and pushing the Docker image with a custom image name and registry:
! mvn docker:build docker:push \
! -Ddocker.name=custom/end-user-ui -Ddocker.push.registry=custom.bintray.io
!-->
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.28.0</version>
<configuration>
<images>
<image>
<name>${docker.push.registry}/forgerock-io/end-user-ui/${docker.promotion.folder}:${docker.tag}</name>
<build>
<dockerFile>Dockerfile</dockerFile>
<!--
! Tags can be added during docker:build where .0 is index 0 in the array:
!
! -Ddocker.tags.0=my-custom-tag
!-->
<tags>
<tag>${project.version}</tag>
</tags>
</build>
</image>
</images>
</configuration>
</plugin>
<plugin>
<groupId>com.forgerock.release</groupId>
<artifactId>release-engineering-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-source-copyright-report</id>
<configuration>
<repoCopyrightReportCoordinates>org.forgerock.openidm:openidm-ui-mirai:source-copyright:${project.version}</repoCopyrightReportCoordinates>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>