blob: 68a4862ca02196a4dae1d16e27977e099688cf71 [file] [log] [blame]
danielhanrahane56f1272022-01-28 11:41:38 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 Copyright (C) 2022 Nordix Foundation.
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 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
20-->
21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
24 <parent>
25 <artifactId>policy-gui</artifactId>
26 <groupId>org.onap.policy.gui</groupId>
liamfallonfb973ac2022-09-08 16:25:24 +010027 <version>2.2.5-SNAPSHOT</version>
danielhanrahane56f1272022-01-28 11:41:38 +000028 </parent>
29 <artifactId>gui-server</artifactId>
30 <name>${project.artifactId}</name>
31 <description>Server for all the Policy GUI's.</description>
32
33 <properties>
34 <start-class>org.onap.policy.gui.server.GuiServerApplication</start-class>
35 </properties>
36
37 <dependencies>
38 <dependency>
39 <groupId>org.springframework.boot</groupId>
40 <artifactId>spring-boot-starter-web</artifactId>
41 </dependency>
42 <dependency>
43 <groupId>org.springframework.boot</groupId>
44 <artifactId>spring-boot-starter-test</artifactId>
45 <scope>test</scope>
46 </dependency>
47 <dependency>
48 <groupId>org.apache.httpcomponents</groupId>
49 <artifactId>httpclient</artifactId>
50 </dependency>
51 <dependency>
52 <groupId>org.apache.commons</groupId>
53 <artifactId>commons-collections4</artifactId>
54 <version>4.4</version>
55 </dependency>
56 <dependency>
57 <groupId>org.onap.policy.gui</groupId>
58 <artifactId>gui-clamp</artifactId>
59 <version>${project.version}</version>
60 <type>pom</type>
61 </dependency>
62 <dependency>
63 <groupId>org.onap.policy.gui.editors</groupId>
64 <artifactId>gui-editor-apex</artifactId>
65 <version>${project.version}</version>
66 </dependency>
67 </dependencies>
68
69 <build>
70 <defaultGoal>install</defaultGoal>
71
72 <resources>
73 <resource>
74 <directory>${basedir}/src/main/resources</directory>
75 <filtering>true</filtering>
76 <includes>
77 <include>**/application*.yml</include>
78 <include>**/application*.yaml</include>
79 <include>**/application*.properties</include>
80 </includes>
81 </resource>
82 <resource>
83 <directory>${basedir}/src/main/resources</directory>
84 <filtering>false</filtering>
85 <excludes>
86 <exclude>**/application*.yml</exclude>
87 <exclude>**/application*.yaml</exclude>
88 <exclude>**/application*.properties</exclude>
89 </excludes>
90 </resource>
91 </resources>
92
93 <plugins>
94 <plugin>
95 <artifactId>maven-dependency-plugin</artifactId>
96 <executions>
97 <execution>
98 <id>unpack-gui-html</id>
99 <goals>
100 <goal>unpack</goal>
101 </goals>
102 <phase>generate-resources</phase>
103 </execution>
104 </executions>
105 <configuration>
106 <artifactItems>
107 <!-- copy static resources from clamp tar.gz into static/clamp/ -->
108 <artifactItem>
109 <groupId>org.onap.policy.gui</groupId>
110 <artifactId>gui-clamp</artifactId>
111 <version>${project.version}</version>
112 <classifier>clamp-build</classifier>
113 <type>tar.gz</type>
114 <overWrite>true</overWrite>
115 <outputDirectory>${project.build.directory}/classes/static</outputDirectory>
116 </artifactItem>
117 <!-- copy static resources from apex editor jar into static/apex-editor/ -->
118 <artifactItem>
119 <groupId>org.onap.policy.gui.editors</groupId>
120 <artifactId>gui-editor-apex</artifactId>
121 <version>${project.version}</version>
122 <type>jar</type>
123 <overWrite>true</overWrite>
124 <outputDirectory>${project.build.directory}/classes/static/apex-editor</outputDirectory>
125 <includes>static/**</includes>
126 <fileMappers>
127 <org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
128 <pattern>^static/</pattern>
129 <replacement>./</replacement>
130 </org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
131 </fileMappers>
132 </artifactItem>
133 </artifactItems>
134 </configuration>
135 </plugin>
136
137 <plugin>
138 <groupId>org.springframework.boot</groupId>
139 <artifactId>spring-boot-maven-plugin</artifactId>
140 <executions>
141 <execution>
142 <goals>
143 <goal>repackage</goal>
144 </goals>
145 <phase>package</phase>
146 </execution>
147 </executions>
148 </plugin>
149 </plugins>
150 </build>
151
152</project>