danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (C) 2022 Nordix Foundation. |
waynedunican | 5729173 | 2023-09-29 08:30:25 +0100 | [diff] [blame] | 5 | Modifications Copyright (C) 2023 Nordix Foundation. |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | |
| 19 | SPDX-License-Identifier: Apache-2.0 |
| 20 | ============LICENSE_END========================================================= |
| 21 | --> |
| 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 23 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | <parent> |
| 26 | <artifactId>policy-gui</artifactId> |
| 27 | <groupId>org.onap.policy.gui</groupId> |
waynedunican | b84171a | 2024-02-19 13:56:03 +0000 | [diff] [blame^] | 28 | <version>3.1.2-SNAPSHOT</version> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 29 | </parent> |
| 30 | <artifactId>gui-server</artifactId> |
| 31 | <name>${project.artifactId}</name> |
| 32 | <description>Server for all the Policy GUI's.</description> |
| 33 | |
| 34 | <properties> |
| 35 | <start-class>org.onap.policy.gui.server.GuiServerApplication</start-class> |
| 36 | </properties> |
| 37 | |
| 38 | <dependencies> |
| 39 | <dependency> |
| 40 | <groupId>org.springframework.boot</groupId> |
| 41 | <artifactId>spring-boot-starter-web</artifactId> |
| 42 | </dependency> |
| 43 | <dependency> |
| 44 | <groupId>org.springframework.boot</groupId> |
liamfallon | 7a7c904 | 2022-11-09 18:06:09 +0000 | [diff] [blame] | 45 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 46 | </dependency> |
| 47 | <dependency> |
| 48 | <groupId>org.springframework.boot</groupId> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 49 | <artifactId>spring-boot-starter-test</artifactId> |
| 50 | <scope>test</scope> |
| 51 | </dependency> |
| 52 | <dependency> |
liamfallon | 7a7c904 | 2022-11-09 18:06:09 +0000 | [diff] [blame] | 53 | <groupId>io.micrometer</groupId> |
| 54 | <artifactId>micrometer-registry-prometheus</artifactId> |
liamfallon | 7a7c904 | 2022-11-09 18:06:09 +0000 | [diff] [blame] | 55 | <scope>runtime</scope> |
| 56 | </dependency> |
| 57 | <dependency> |
waynedunican | 5729173 | 2023-09-29 08:30:25 +0100 | [diff] [blame] | 58 | <groupId>org.apache.httpcomponents.client5</groupId> |
| 59 | <artifactId>httpclient5</artifactId> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 60 | </dependency> |
| 61 | <dependency> |
| 62 | <groupId>org.apache.commons</groupId> |
| 63 | <artifactId>commons-collections4</artifactId> |
| 64 | <version>4.4</version> |
| 65 | </dependency> |
| 66 | <dependency> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 67 | <groupId>org.onap.policy.gui.editors</groupId> |
| 68 | <artifactId>gui-editor-apex</artifactId> |
| 69 | <version>${project.version}</version> |
| 70 | </dependency> |
waynedunican | 5729173 | 2023-09-29 08:30:25 +0100 | [diff] [blame] | 71 | <dependency> |
| 72 | <groupId>jakarta.annotation</groupId> |
| 73 | <artifactId>jakarta.annotation-api</artifactId> |
| 74 | <version>2.1.1</version> |
| 75 | </dependency> |
| 76 | <dependency> |
| 77 | <groupId>jakarta.servlet</groupId> |
| 78 | <artifactId>jakarta.servlet-api</artifactId> |
| 79 | <scope>provided</scope> |
| 80 | </dependency> |
| 81 | <dependency> |
| 82 | <groupId>org.junit.jupiter</groupId> |
| 83 | <artifactId>junit-jupiter-engine</artifactId> |
| 84 | <scope>test</scope> |
| 85 | </dependency> |
| 86 | <dependency> |
| 87 | <groupId>org.mockito</groupId> |
| 88 | <artifactId>mockito-junit-jupiter</artifactId> |
| 89 | </dependency> |
| 90 | <dependency> |
| 91 | <groupId>org.apache.tomcat.embed</groupId> |
| 92 | <artifactId>tomcat-embed-core</artifactId> |
| 93 | </dependency> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 94 | </dependencies> |
| 95 | |
| 96 | <build> |
| 97 | <defaultGoal>install</defaultGoal> |
| 98 | |
| 99 | <resources> |
| 100 | <resource> |
| 101 | <directory>${basedir}/src/main/resources</directory> |
| 102 | <filtering>true</filtering> |
| 103 | <includes> |
| 104 | <include>**/application*.yml</include> |
| 105 | <include>**/application*.yaml</include> |
| 106 | <include>**/application*.properties</include> |
| 107 | </includes> |
| 108 | </resource> |
| 109 | <resource> |
| 110 | <directory>${basedir}/src/main/resources</directory> |
| 111 | <filtering>false</filtering> |
| 112 | <excludes> |
| 113 | <exclude>**/application*.yml</exclude> |
| 114 | <exclude>**/application*.yaml</exclude> |
| 115 | <exclude>**/application*.properties</exclude> |
| 116 | </excludes> |
| 117 | </resource> |
| 118 | </resources> |
| 119 | |
| 120 | <plugins> |
| 121 | <plugin> |
| 122 | <artifactId>maven-dependency-plugin</artifactId> |
| 123 | <executions> |
| 124 | <execution> |
| 125 | <id>unpack-gui-html</id> |
| 126 | <goals> |
| 127 | <goal>unpack</goal> |
| 128 | </goals> |
| 129 | <phase>generate-resources</phase> |
| 130 | </execution> |
| 131 | </executions> |
| 132 | <configuration> |
| 133 | <artifactItems> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 134 | <!-- copy static resources from apex editor jar into static/apex-editor/ --> |
| 135 | <artifactItem> |
| 136 | <groupId>org.onap.policy.gui.editors</groupId> |
| 137 | <artifactId>gui-editor-apex</artifactId> |
| 138 | <version>${project.version}</version> |
| 139 | <type>jar</type> |
| 140 | <overWrite>true</overWrite> |
liamfallon | 4d04e56 | 2022-11-07 13:53:29 +0000 | [diff] [blame] | 141 | <outputDirectory>${project.build.directory}/classes/static/designtime-ui/apex-editor</outputDirectory> |
danielhanrahan | e56f127 | 2022-01-28 11:41:38 +0000 | [diff] [blame] | 142 | <includes>static/**</includes> |
| 143 | <fileMappers> |
| 144 | <org.codehaus.plexus.components.io.filemappers.RegExpFileMapper> |
| 145 | <pattern>^static/</pattern> |
| 146 | <replacement>./</replacement> |
| 147 | </org.codehaus.plexus.components.io.filemappers.RegExpFileMapper> |
| 148 | </fileMappers> |
| 149 | </artifactItem> |
| 150 | </artifactItems> |
| 151 | </configuration> |
| 152 | </plugin> |
| 153 | |
| 154 | <plugin> |
| 155 | <groupId>org.springframework.boot</groupId> |
| 156 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 157 | <executions> |
| 158 | <execution> |
| 159 | <goals> |
| 160 | <goal>repackage</goal> |
| 161 | </goals> |
| 162 | <phase>package</phase> |
| 163 | </execution> |
| 164 | </executions> |
| 165 | </plugin> |
| 166 | </plugins> |
| 167 | </build> |
| 168 | |
| 169 | </project> |