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