ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
liamfallon | 9aa62b7 | 2020-03-25 12:09:54 +0000 | [diff] [blame] | 4 | Modifications Copyright (C) 2019-2020 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> |
RossC | 7535f83 | 2020-05-20 15:12:22 +0100 | [diff] [blame^] | 28 | <version>2.3.3-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 | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 83 | <defaultGoal>install</defaultGoal> |
| 84 | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| 85 | <plugins> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 86 | |
| 87 | <!-- 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] | 88 | <plugin> |
| 89 | <groupId>org.apache.maven.plugins</groupId> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 90 | <artifactId>maven-dependency-plugin</artifactId> |
| 91 | <executions> |
| 92 | <execution> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 93 | <id>unpack-MONITOR-resources</id> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 94 | <goals> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 95 | <goal>unpack-dependencies</goal> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 96 | </goals> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 97 | <phase>generate-resources</phase> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 98 | <configuration> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 99 | <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory> |
| 100 | <!--use as much as needed to be specific...also scope,type,classifier etc--> |
| 101 | <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 102 | <includeArtifacIds>apex-client-monitoring, apex-client-deployment, apex-client-editor</includeArtifacIds> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 103 | <excludeTransitive>true</excludeTransitive> |
| 104 | <excludeTypes>jar</excludeTypes> |
| 105 | <includeTypes>zip</includeTypes> |
| 106 | <scope>provided</scope> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 107 | </configuration> |
| 108 | </execution> |
| 109 | </executions> |
| 110 | </plugin> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 111 | |
| 112 | <plugin> |
| 113 | <groupId>org.apache.maven.plugins</groupId> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 114 | <artifactId>maven-shade-plugin</artifactId> |
| 115 | <executions> |
| 116 | <execution> |
| 117 | <phase>package</phase> |
| 118 | <goals> |
| 119 | <goal>shade</goal> |
| 120 | </goals> |
| 121 | </execution> |
| 122 | </executions> |
| 123 | <configuration> |
| 124 | <finalName>${project.artifactId}-uber-${project.version}</finalName> |
| 125 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 126 | <shadedClassifierName>full</shadedClassifierName> |
| 127 | <artifactSet> |
| 128 | <includes> |
| 129 | <include>*:*</include> |
| 130 | </includes> |
| 131 | </artifactSet> |
| 132 | <filters> |
| 133 | <filter> |
| 134 | <artifact>*:*</artifact> |
| 135 | <excludes> |
| 136 | <exclude>META-INF/*.SF</exclude> |
| 137 | <exclude>META-INF/*.DSA</exclude> |
| 138 | <exclude>META-INF/*.RSA</exclude> |
| 139 | </excludes> |
| 140 | </filter> |
| 141 | </filters> |
| 142 | <transformers> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 143 | <transformer |
| 144 | implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 145 | <transformer |
| 146 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 147 | <resource>reference.conf</resource> |
| 148 | </transformer> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 149 | <transformer |
| 150 | implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 151 | <resource>log4j.properties</resource> |
| 152 | </transformer> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 153 | <transformer |
| 154 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
ramverma | 773cff1 | 2018-07-14 19:05:57 +0100 | [diff] [blame] | 155 | <mainClass>org.onap.policy.apex.client.full.rest.ApexServicesRestMain</mainClass> |
| 156 | </transformer> |
| 157 | </transformers> |
| 158 | </configuration> |
| 159 | </plugin> |
| 160 | <plugin> |
| 161 | <groupId>org.apache.maven.plugins</groupId> |
| 162 | <artifactId>maven-war-plugin</artifactId> |
| 163 | <configuration> |
| 164 | <classifier>ui</classifier> |
| 165 | <warSourceDirectory>target/classes/webapp</warSourceDirectory> |
| 166 | <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml> |
| 167 | </configuration> |
| 168 | <executions> |
| 169 | <execution> |
| 170 | <phase>prepare-package</phase> |
| 171 | <goals> |
| 172 | <goal>war</goal> |
| 173 | </goals> |
| 174 | </execution> |
| 175 | </executions> |
| 176 | </plugin> |
| 177 | <plugin> |
| 178 | <groupId>org.codehaus.mojo</groupId> |
| 179 | <artifactId>build-helper-maven-plugin</artifactId> |
| 180 | <version>3.0.0</version> |
| 181 | <executions> |
| 182 | <execution> |
| 183 | <id>attach-artifacts</id> |
| 184 | <phase>package</phase> |
| 185 | <goals> |
| 186 | <goal>attach-artifact</goal> |
| 187 | </goals> |
| 188 | <configuration> |
| 189 | <artifacts> |
| 190 | <artifact> |
| 191 | <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file> |
| 192 | <type>war</type> |
| 193 | </artifact> |
| 194 | <artifact> |
| 195 | <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file> |
| 196 | <type>uber.jar</type> |
| 197 | </artifact> |
| 198 | </artifacts> |
| 199 | </configuration> |
| 200 | </execution> |
| 201 | </executions> |
| 202 | </plugin> |
| 203 | </plugins> |
| 204 | </build> |
Dinh Danh Le | ba22977 | 2018-08-22 18:02:01 +0100 | [diff] [blame] | 205 | |
| 206 | <profiles> |
| 207 | <profile> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 208 | <id>only-eclipse</id> |
| 209 | <activation> |
| 210 | <property> |
| 211 | <name>m2e.version</name> |
| 212 | </property> |
| 213 | </activation> |
| 214 | <build> |
| 215 | <pluginManagement> |
| 216 | <plugins> |
| 217 | <plugin> |
| 218 | <groupId>org.eclipse.m2e</groupId> |
| 219 | <artifactId>lifecycle-mapping</artifactId> |
| 220 | <version>1.0.0</version> |
| 221 | <configuration> |
| 222 | <lifecycleMappingMetadata> |
| 223 | <pluginExecutions> |
| 224 | <pluginExecution> |
| 225 | <pluginExecutionFilter> |
| 226 | <groupId>org.apache.maven.plugins</groupId> |
| 227 | <artifactId>maven-dependency-plugin</artifactId> |
| 228 | <versionRange>[2.0,)</versionRange> |
| 229 | <goals> |
ramverma | ea736d0 | 2018-11-29 13:47:30 +0000 | [diff] [blame] | 230 | <goal>unpack-dependencies</goal> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 231 | </goals> |
| 232 | </pluginExecutionFilter> |
| 233 | <action> |
| 234 | <ignore /> |
| 235 | </action> |
| 236 | </pluginExecution> |
| 237 | </pluginExecutions> |
| 238 | </lifecycleMappingMetadata> |
| 239 | </configuration> |
| 240 | </plugin> |
| 241 | </plugins> |
| 242 | </pluginManagement> |
| 243 | </build> |
| 244 | </profile> |
| 245 | |
| 246 | <profile> |
Dinh Danh Le | ba22977 | 2018-08-22 18:02:01 +0100 | [diff] [blame] | 247 | <id>apexSite</id> |
| 248 | <activation> |
| 249 | <property> |
| 250 | <name>apexSite</name> |
| 251 | </property> |
| 252 | </activation> |
| 253 | <distributionManagement> |
| 254 | <site> |
| 255 | <id>${project.artifactId}-site</id> |
| 256 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
| 257 | </site> |
| 258 | </distributionManagement> |
| 259 | </profile> |
| 260 | </profiles> |
liamfallon | 4171256 | 2019-11-01 11:47:21 +0000 | [diff] [blame] | 261 | </project> |