ramverma | 0ba6678 | 2018-07-06 16:29:16 +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 | 3aa7cbe | 2018-10-31 16:35:54 +0000 | [diff] [blame] | 20 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | <parent> |
| 23 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 24 | <artifactId>client</artifactId> |
liamfallon | 3aa7cbe | 2018-10-31 16:35:54 +0000 | [diff] [blame] | 25 | <version>2.1.0-SNAPSHOT</version> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 26 | </parent> |
| 27 | |
| 28 | <artifactId>client-monitoring</artifactId> |
| 29 | <name>${project.artifactId}</name> |
| 30 | <description>Web client for monitoring Apex engines</description> |
| 31 | |
| 32 | <dependencies> |
| 33 | <dependency> |
| 34 | <groupId>org.onap.policy.apex-pdp.core</groupId> |
| 35 | <artifactId>core-deployment</artifactId> |
| 36 | <version>${project.version}</version> |
| 37 | </dependency> |
| 38 | <dependency> |
ramverma | c6d74e6 | 2018-07-11 14:21:13 +0100 | [diff] [blame] | 39 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 40 | <artifactId>client-common</artifactId> |
| 41 | <version>${project.version}</version> |
ramverma | c6d74e6 | 2018-07-11 14:21:13 +0100 | [diff] [blame] | 42 | </dependency> |
| 43 | <dependency> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 44 | <groupId>org.glassfish.jersey.containers</groupId> |
| 45 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 46 | <version>${version.jersey}</version> |
| 47 | </dependency> |
| 48 | <dependency> |
| 49 | <groupId>org.glassfish.jersey.containers</groupId> |
| 50 | <artifactId>jersey-container-servlet-core</artifactId> |
| 51 | <version>${version.jersey}</version> |
| 52 | </dependency> |
| 53 | <dependency> |
| 54 | <groupId>org.glassfish.jersey.inject</groupId> |
| 55 | <artifactId>jersey-hk2</artifactId> |
| 56 | <version>${version.jersey}</version> |
| 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>commons-cli</groupId> |
| 60 | <artifactId>commons-cli</artifactId> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 61 | </dependency> |
liamfallon | acb59c7 | 2018-09-28 22:48:30 +0100 | [diff] [blame] | 62 | <dependency> |
liamfallon | 0bfa9b4 | 2018-10-01 15:05:58 +0100 | [diff] [blame] | 63 | <groupId>org.mockito</groupId> |
| 64 | <artifactId>mockito-all</artifactId> |
liamfallon | acb59c7 | 2018-09-28 22:48:30 +0100 | [diff] [blame] | 65 | <scope>test</scope> |
| 66 | </dependency> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 67 | </dependencies> |
| 68 | |
| 69 | <build> |
| 70 | <defaultGoal>install</defaultGoal> |
| 71 | <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| 72 | <plugins> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 73 | <!-- Copy common resources to this client's webapp directory --> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 74 | <plugin> |
| 75 | <groupId>org.apache.maven.plugins</groupId> |
ramverma | c6d74e6 | 2018-07-11 14:21:13 +0100 | [diff] [blame] | 76 | <artifactId>maven-dependency-plugin</artifactId> |
| 77 | <executions> |
| 78 | <execution> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 79 | <id>unpack-examples</id> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 80 | <phase>validate</phase> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 81 | <goals> |
| 82 | <goal>unpack</goal> |
| 83 | </goals> |
ramverma | c6d74e6 | 2018-07-11 14:21:13 +0100 | [diff] [blame] | 84 | <configuration> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 85 | <artifactItems> |
| 86 | <artifactItem> |
| 87 | <groupId>org.onap.policy.apex-pdp.client</groupId> |
| 88 | <artifactId>client-common</artifactId> |
| 89 | <version>${project.version}</version> |
| 90 | <type>jar</type> |
| 91 | <overWrite>false</overWrite> |
| 92 | <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory> |
| 93 | <excludes>META-INF/</excludes> |
| 94 | </artifactItem> |
| 95 | </artifactItems> |
| 96 | <overWriteReleases>true</overWriteReleases> |
| 97 | <overWriteSnapshots>true</overWriteSnapshots> |
ramverma | c6d74e6 | 2018-07-11 14:21:13 +0100 | [diff] [blame] | 98 | </configuration> |
| 99 | </execution> |
| 100 | </executions> |
| 101 | </plugin> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 102 | |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 103 | <plugin> |
| 104 | <groupId>org.apache.maven.plugins</groupId> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 105 | <artifactId>maven-shade-plugin</artifactId> |
| 106 | <executions> |
| 107 | <execution> |
| 108 | <phase>package</phase> |
| 109 | <goals> |
| 110 | <goal>shade</goal> |
| 111 | </goals> |
| 112 | </execution> |
| 113 | </executions> |
| 114 | <configuration> |
| 115 | <finalName>${project.artifactId}-uber-${project.version}</finalName> |
| 116 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 117 | <shadedClassifierName>monitoring</shadedClassifierName> |
| 118 | <artifactSet> |
| 119 | <includes> |
| 120 | <include>*:*</include> |
| 121 | </includes> |
| 122 | </artifactSet> |
| 123 | <filters> |
| 124 | <filter> |
| 125 | <artifact>*:*</artifact> |
| 126 | <excludes> |
| 127 | <exclude>META-INF/*.SF</exclude> |
| 128 | <exclude>META-INF/*.DSA</exclude> |
| 129 | <exclude>META-INF/*.RSA</exclude> |
| 130 | </excludes> |
| 131 | </filter> |
| 132 | </filters> |
| 133 | <transformers> |
liamfallon | 3aa7cbe | 2018-10-31 16:35:54 +0000 | [diff] [blame] | 134 | <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 135 | <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 136 | <resource>reference.conf</resource> |
| 137 | </transformer> |
liamfallon | 3aa7cbe | 2018-10-31 16:35:54 +0000 | [diff] [blame] | 138 | <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 139 | <resource>log4j.properties</resource> |
| 140 | </transformer> |
liamfallon | 3aa7cbe | 2018-10-31 16:35:54 +0000 | [diff] [blame] | 141 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 142 | <mainClass>org.onap.policy.apex.client.monitoring.rest.ApexMonitoringRestMain</mainClass> |
| 143 | </transformer> |
| 144 | </transformers> |
| 145 | </configuration> |
| 146 | </plugin> |
| 147 | <plugin> |
| 148 | <groupId>org.apache.maven.plugins</groupId> |
| 149 | <artifactId>maven-war-plugin</artifactId> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 150 | <configuration> |
| 151 | <classifier>ui</classifier> |
| 152 | <warSourceDirectory>src/main/resources/webapp</warSourceDirectory> |
| 153 | <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml> |
| 154 | </configuration> |
| 155 | <executions> |
| 156 | <execution> |
| 157 | <phase>prepare-package</phase> |
| 158 | <goals> |
| 159 | <goal>war</goal> |
| 160 | </goals> |
| 161 | </execution> |
| 162 | </executions> |
| 163 | </plugin> |
| 164 | <plugin> |
| 165 | <groupId>org.codehaus.mojo</groupId> |
| 166 | <artifactId>build-helper-maven-plugin</artifactId> |
| 167 | <version>3.0.0</version> |
| 168 | <executions> |
| 169 | <execution> |
| 170 | <id>attach-artifacts</id> |
| 171 | <phase>package</phase> |
| 172 | <goals> |
| 173 | <goal>attach-artifact</goal> |
| 174 | </goals> |
| 175 | <configuration> |
| 176 | <artifacts> |
| 177 | <artifact> |
| 178 | <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file> |
| 179 | <type>war</type> |
| 180 | </artifact> |
| 181 | <artifact> |
| 182 | <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file> |
| 183 | <type>uber.jar</type> |
| 184 | </artifact> |
| 185 | </artifacts> |
| 186 | </configuration> |
| 187 | </execution> |
| 188 | </executions> |
| 189 | </plugin> |
| 190 | </plugins> |
| 191 | </build> |
Dinh Danh Le | ba22977 | 2018-08-22 18:02:01 +0100 | [diff] [blame] | 192 | |
| 193 | <profiles> |
| 194 | <profile> |
liamfallon | 3249761 | 2018-11-10 00:39:12 +0000 | [diff] [blame] | 195 | <id>only-eclipse</id> |
| 196 | <activation> |
| 197 | <property> |
| 198 | <name>m2e.version</name> |
| 199 | </property> |
| 200 | </activation> |
| 201 | <build> |
| 202 | <pluginManagement> |
| 203 | <plugins> |
| 204 | <plugin> |
| 205 | <groupId>org.eclipse.m2e</groupId> |
| 206 | <artifactId>lifecycle-mapping</artifactId> |
| 207 | <version>1.0.0</version> |
| 208 | <configuration> |
| 209 | <lifecycleMappingMetadata> |
| 210 | <pluginExecutions> |
| 211 | <pluginExecution> |
| 212 | <pluginExecutionFilter> |
| 213 | <groupId>org.apache.maven.plugins</groupId> |
| 214 | <artifactId>maven-dependency-plugin</artifactId> |
| 215 | <versionRange>[2.0,)</versionRange> |
| 216 | <goals> |
| 217 | <goal>unpack</goal> |
| 218 | </goals> |
| 219 | </pluginExecutionFilter> |
| 220 | <action> |
| 221 | <ignore /> |
| 222 | </action> |
| 223 | </pluginExecution> |
| 224 | </pluginExecutions> |
| 225 | </lifecycleMappingMetadata> |
| 226 | </configuration> |
| 227 | </plugin> |
| 228 | </plugins> |
| 229 | </pluginManagement> |
| 230 | </build> |
| 231 | </profile> |
| 232 | |
| 233 | <profile> |
Dinh Danh Le | ba22977 | 2018-08-22 18:02:01 +0100 | [diff] [blame] | 234 | <id>apexSite</id> |
| 235 | <activation> |
| 236 | <property> |
| 237 | <name>apexSite</name> |
| 238 | </property> |
| 239 | </activation> |
| 240 | <distributionManagement> |
| 241 | <site> |
| 242 | <id>${project.artifactId}-site</id> |
| 243 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
| 244 | </site> |
| 245 | </distributionManagement> |
| 246 | </profile> |
| 247 | </profiles> |
ramverma | 0ba6678 | 2018-07-06 16:29:16 +0100 | [diff] [blame] | 248 | </project> |