ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
liamfallon | 4171256 | 2019-11-01 11:47:21 +0000 | [diff] [blame] | 4 | Modifications Copyright (C) 2019 Nordix Foundation. |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 5 | Modifications Copyright (C) 2020 Bell Canada. |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [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 | --> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | <parent> |
| 26 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 27 | <artifactId>apex-client</artifactId> |
jrh3 | d7d9df6 | 2019-09-12 10:07:06 -0400 | [diff] [blame] | 28 | <version>2.3.0-SNAPSHOT</version> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 29 | </parent> |
| 30 | |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 31 | <artifactId>apex-client-full</artifactId> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 32 | <name>${project.artifactId}</name> |
| 33 | <description>Web clients for managing Apex engines</description> |
| 34 | |
| 35 | <dependencies> |
| 36 | <dependency> |
| 37 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 38 | <artifactId>apex-client-editor</artifactId> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 39 | <version>${project.version}</version> |
| 40 | </dependency> |
| 41 | <dependency> |
| 42 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 43 | <artifactId>apex-client-monitoring</artifactId> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 44 | <version>${project.version}</version> |
| 45 | </dependency> |
| 46 | <dependency> |
| 47 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 48 | <artifactId>apex-client-deployment</artifactId> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 49 | <version>${project.version}</version> |
| 50 | </dependency> |
| 51 | <dependency> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 52 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 53 | <artifactId>apex-client-monitoring</artifactId> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 54 | <version>${project.version}</version> |
| 55 | <classifier>resources</classifier> |
| 56 | <type>zip</type> |
| 57 | <scope>provided</scope> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 61 | <artifactId>apex-client-deployment</artifactId> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 62 | <version>${project.version}</version> |
| 63 | <classifier>resources</classifier> |
| 64 | <type>zip</type> |
| 65 | <scope>provided</scope> |
| 66 | </dependency> |
| 67 | <dependency> |
| 68 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 69 | <artifactId>apex-client-editor</artifactId> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 70 | <version>${project.version}</version> |
| 71 | <classifier>resources</classifier> |
| 72 | <type>zip</type> |
| 73 | <scope>provided</scope> |
| 74 | </dependency> |
ning.xi | c678c3a | 2019-08-13 05:20:20 +0000 | [diff] [blame] | 75 | <dependency> |
| 76 | <groupId>org.assertj</groupId> |
| 77 | <artifactId>assertj-core</artifactId> |
ning.xi | c678c3a | 2019-08-13 05:20:20 +0000 | [diff] [blame] | 78 | <scope>test</scope> |
| 79 | </dependency> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 80 | </dependencies> |
| 81 | |
| 82 | <build> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 83 | <!-- |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 84 | <resources> |
| 85 | <resource> |
| 86 | <directory>src/main/resources</directory> |
| 87 | <includes> |
| 88 | <include>webapp/**/*.*</include> |
| 89 | </includes> |
| 90 | </resource> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 91 | </resources> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 92 | --> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 93 | <defaultGoal>install</defaultGoal> |
| 94 | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| 95 | <plugins> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 96 | |
| 97 | <!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ --> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 98 | <plugin> |
| 99 | <groupId>org.apache.maven.plugins</groupId> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 100 | <artifactId>maven-dependency-plugin</artifactId> |
| 101 | <executions> |
| 102 | <execution> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 103 | <id>unpack-MONITOR-resources</id> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 104 | <goals> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 105 | <goal>unpack-dependencies</goal> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 106 | </goals> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 107 | <phase>generate-resources</phase> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 108 | <configuration> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 109 | <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory> |
| 110 | <!--use as much as needed to be specific...also scope,type,classifier etc--> |
| 111 | <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 112 | <includeArtifacIds>apex-client-monitoring, apex-client-deployment, apex-client-editor</includeArtifacIds> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 113 | <excludeTransitive>true</excludeTransitive> |
| 114 | <excludeTypes>jar</excludeTypes> |
| 115 | <includeTypes>zip</includeTypes> |
| 116 | <scope>provided</scope> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 117 | </configuration> |
| 118 | </execution> |
| 119 | </executions> |
| 120 | </plugin> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 121 | |
| 122 | <plugin> |
| 123 | <groupId>org.apache.maven.plugins</groupId> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 124 | <artifactId>maven-shade-plugin</artifactId> |
| 125 | <executions> |
| 126 | <execution> |
| 127 | <phase>package</phase> |
| 128 | <goals> |
| 129 | <goal>shade</goal> |
| 130 | </goals> |
| 131 | </execution> |
| 132 | </executions> |
| 133 | <configuration> |
| 134 | <finalName>${project.artifactId}-uber-${project.version}</finalName> |
| 135 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 136 | <shadedClassifierName>full</shadedClassifierName> |
| 137 | <artifactSet> |
| 138 | <includes> |
| 139 | <include>*:*</include> |
| 140 | </includes> |
| 141 | </artifactSet> |
| 142 | <filters> |
| 143 | <filter> |
| 144 | <artifact>*:*</artifact> |
| 145 | <excludes> |
| 146 | <exclude>META-INF/*.SF</exclude> |
| 147 | <exclude>META-INF/*.DSA</exclude> |
| 148 | <exclude>META-INF/*.RSA</exclude> |
| 149 | </excludes> |
| 150 | </filter> |
| 151 | </filters> |
| 152 | <transformers> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 153 | <transformer |
| 154 | implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 155 | <transformer |
| 156 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 157 | <resource>reference.conf</resource> |
| 158 | </transformer> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 159 | <transformer |
| 160 | implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 161 | <resource>log4j.properties</resource> |
| 162 | </transformer> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 163 | <transformer |
| 164 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 165 | <mainClass>org.onap.policy.apex.client.full.rest.ApexServicesRestMain</mainClass> |
| 166 | </transformer> |
| 167 | </transformers> |
| 168 | </configuration> |
| 169 | </plugin> |
| 170 | <plugin> |
| 171 | <groupId>org.apache.maven.plugins</groupId> |
| 172 | <artifactId>maven-war-plugin</artifactId> |
| 173 | <configuration> |
| 174 | <classifier>ui</classifier> |
| 175 | <warSourceDirectory>target/classes/webapp</warSourceDirectory> |
| 176 | <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml> |
| 177 | </configuration> |
| 178 | <executions> |
| 179 | <execution> |
| 180 | <phase>prepare-package</phase> |
| 181 | <goals> |
| 182 | <goal>war</goal> |
| 183 | </goals> |
| 184 | </execution> |
| 185 | </executions> |
| 186 | </plugin> |
| 187 | <plugin> |
| 188 | <groupId>org.codehaus.mojo</groupId> |
| 189 | <artifactId>build-helper-maven-plugin</artifactId> |
| 190 | <version>3.0.0</version> |
| 191 | <executions> |
| 192 | <execution> |
| 193 | <id>attach-artifacts</id> |
| 194 | <phase>package</phase> |
| 195 | <goals> |
| 196 | <goal>attach-artifact</goal> |
| 197 | </goals> |
| 198 | <configuration> |
| 199 | <artifacts> |
| 200 | <artifact> |
| 201 | <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file> |
| 202 | <type>war</type> |
| 203 | </artifact> |
| 204 | <artifact> |
| 205 | <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file> |
| 206 | <type>uber.jar</type> |
| 207 | </artifact> |
| 208 | </artifacts> |
| 209 | </configuration> |
| 210 | </execution> |
| 211 | </executions> |
| 212 | </plugin> |
| 213 | </plugins> |
| 214 | </build> |
Dinh Danh Le | ba22977 | 2018-08-22 18:02:01 +0100 | [diff] [blame] | 215 | |
| 216 | <profiles> |
| 217 | <profile> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 218 | <id>only-eclipse</id> |
| 219 | <activation> |
| 220 | <property> |
| 221 | <name>m2e.version</name> |
| 222 | </property> |
| 223 | </activation> |
| 224 | <build> |
| 225 | <pluginManagement> |
| 226 | <plugins> |
| 227 | <plugin> |
| 228 | <groupId>org.eclipse.m2e</groupId> |
| 229 | <artifactId>lifecycle-mapping</artifactId> |
| 230 | <version>1.0.0</version> |
| 231 | <configuration> |
| 232 | <lifecycleMappingMetadata> |
| 233 | <pluginExecutions> |
| 234 | <pluginExecution> |
| 235 | <pluginExecutionFilter> |
| 236 | <groupId>org.apache.maven.plugins</groupId> |
| 237 | <artifactId>maven-dependency-plugin</artifactId> |
| 238 | <versionRange>[2.0,)</versionRange> |
| 239 | <goals> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 240 | <goal>unpack-dependencies</goal> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 241 | </goals> |
| 242 | </pluginExecutionFilter> |
| 243 | <action> |
| 244 | <ignore /> |
| 245 | </action> |
| 246 | </pluginExecution> |
| 247 | </pluginExecutions> |
| 248 | </lifecycleMappingMetadata> |
| 249 | </configuration> |
| 250 | </plugin> |
| 251 | </plugins> |
| 252 | </pluginManagement> |
| 253 | </build> |
| 254 | </profile> |
| 255 | |
| 256 | <profile> |
Dinh Danh Le | ba22977 | 2018-08-22 18:02:01 +0100 | [diff] [blame] | 257 | <id>apexSite</id> |
| 258 | <activation> |
| 259 | <property> |
| 260 | <name>apexSite</name> |
| 261 | </property> |
| 262 | </activation> |
| 263 | <distributionManagement> |
| 264 | <site> |
| 265 | <id>${project.artifactId}-site</id> |
| 266 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
| 267 | </site> |
| 268 | </distributionManagement> |
| 269 | </profile> |
| 270 | </profiles> |
liamfallon | 4171256 | 2019-11-01 11:47:21 +0000 | [diff] [blame] | 271 | </project> |