blob: 17f2cc1781d7ac92ade48194fbe29cb2aebd0207 [file] [log] [blame]
ramverma0ba66782018-07-06 16:29:16 +01001<!--
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-->
liamfallon3aa7cbe2018-10-31 16:35:54 +000020<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">
ramverma0ba66782018-07-06 16:29:16 +010021 <modelVersion>4.0.0</modelVersion>
22 <parent>
23 <groupId>org.onap.policy.apex-pdp.client</groupId>
24 <artifactId>client</artifactId>
liamfallon3aa7cbe2018-10-31 16:35:54 +000025 <version>2.1.0-SNAPSHOT</version>
ramverma0ba66782018-07-06 16:29:16 +010026 </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>
ramvermac6d74e62018-07-11 14:21:13 +010039 <groupId>org.onap.policy.apex-pdp.client</groupId>
40 <artifactId>client-common</artifactId>
41 <version>${project.version}</version>
ramvermac6d74e62018-07-11 14:21:13 +010042 </dependency>
43 <dependency>
ramverma0ba66782018-07-06 16:29:16 +010044 <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>
ramverma0ba66782018-07-06 16:29:16 +010061 </dependency>
liamfallonacb59c72018-09-28 22:48:30 +010062 <dependency>
liamfallon0bfa9b42018-10-01 15:05:58 +010063 <groupId>org.mockito</groupId>
64 <artifactId>mockito-all</artifactId>
liamfallonacb59c72018-09-28 22:48:30 +010065 <scope>test</scope>
66 </dependency>
ramverma0ba66782018-07-06 16:29:16 +010067 </dependencies>
68
69 <build>
70 <defaultGoal>install</defaultGoal>
71 <outputDirectory>${project.build.directory}/classes</outputDirectory>
72 <plugins>
liamfallon32497612018-11-10 00:39:12 +000073 <!-- Copy common resources to this client's webapp directory -->
ramverma0ba66782018-07-06 16:29:16 +010074 <plugin>
75 <groupId>org.apache.maven.plugins</groupId>
ramvermac6d74e62018-07-11 14:21:13 +010076 <artifactId>maven-dependency-plugin</artifactId>
77 <executions>
78 <execution>
liamfallon32497612018-11-10 00:39:12 +000079 <id>unpack-examples</id>
liamfallona41c8772018-09-05 15:46:31 +010080 <phase>validate</phase>
liamfallon32497612018-11-10 00:39:12 +000081 <goals>
82 <goal>unpack</goal>
83 </goals>
ramvermac6d74e62018-07-11 14:21:13 +010084 <configuration>
liamfallon32497612018-11-10 00:39:12 +000085 <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>
ramvermac6d74e62018-07-11 14:21:13 +010098 </configuration>
99 </execution>
100 </executions>
101 </plugin>
liamfallon32497612018-11-10 00:39:12 +0000102
liamfallona41c8772018-09-05 15:46:31 +0100103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
ramverma0ba66782018-07-06 16:29:16 +0100105 <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>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000134 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
135 <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
ramverma0ba66782018-07-06 16:29:16 +0100136 <resource>reference.conf</resource>
137 </transformer>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000138 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
ramverma0ba66782018-07-06 16:29:16 +0100139 <resource>log4j.properties</resource>
140 </transformer>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000141 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
ramverma0ba66782018-07-06 16:29:16 +0100142 <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>
ramverma0ba66782018-07-06 16:29:16 +0100150 <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 Leba229772018-08-22 18:02:01 +0100192
193 <profiles>
194 <profile>
liamfallon32497612018-11-10 00:39:12 +0000195 <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 Leba229772018-08-22 18:02:01 +0100234 <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>
ramverma0ba66782018-07-06 16:29:16 +0100248</project>