blob: 518000b19f875226339d16f6de1ba58a0864f22e [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-->
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">
22 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.onap.policy.apex-pdp.client</groupId>
25 <artifactId>client</artifactId>
26 <version>2.0.0-SNAPSHOT</version>
27 </parent>
28
29 <artifactId>client-monitoring</artifactId>
30 <name>${project.artifactId}</name>
31 <description>Web client for monitoring Apex engines</description>
32
33 <dependencies>
34 <dependency>
35 <groupId>org.onap.policy.apex-pdp.core</groupId>
36 <artifactId>core-deployment</artifactId>
37 <version>${project.version}</version>
38 </dependency>
39 <dependency>
ramvermac6d74e62018-07-11 14:21:13 +010040 <groupId>org.onap.policy.apex-pdp.client</groupId>
41 <artifactId>client-common</artifactId>
42 <version>${project.version}</version>
43 <classifier>resources</classifier>
44 <type>zip</type>
45 <scope>provided</scope>
46 </dependency>
47 <dependency>
ramverma0ba66782018-07-06 16:29:16 +010048 <groupId>org.glassfish.jersey.containers</groupId>
49 <artifactId>jersey-container-grizzly2-http</artifactId>
50 <version>${version.jersey}</version>
51 </dependency>
52 <dependency>
53 <groupId>org.glassfish.jersey.containers</groupId>
54 <artifactId>jersey-container-servlet-core</artifactId>
55 <version>${version.jersey}</version>
56 </dependency>
57 <dependency>
58 <groupId>org.glassfish.jersey.inject</groupId>
59 <artifactId>jersey-hk2</artifactId>
60 <version>${version.jersey}</version>
61 </dependency>
62 <dependency>
63 <groupId>commons-cli</groupId>
64 <artifactId>commons-cli</artifactId>
ramverma0ba66782018-07-06 16:29:16 +010065 </dependency>
66 </dependencies>
67
68 <build>
69 <defaultGoal>install</defaultGoal>
70 <outputDirectory>${project.build.directory}/classes</outputDirectory>
71 <plugins>
72 <plugin>
73 <groupId>org.apache.maven.plugins</groupId>
ramvermac6d74e62018-07-11 14:21:13 +010074 <artifactId>maven-dependency-plugin</artifactId>
75 <executions>
76 <execution>
77 <id>unpack-client-monitoring-shared-resources</id>
78 <goals>
79 <goal>unpack-dependencies</goal>
80 </goals>
81 <phase>generate-resources</phase>
82 <configuration>
83 <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
84 <includeArtifacIds>client-common</includeArtifacIds>
85 <includeGroupIds>${project.groupId}</includeGroupIds>
86 <excludeTransitive>true</excludeTransitive>
87 </configuration>
88 </execution>
89 </executions>
90 </plugin>
91 <plugin>
92 <groupId>org.apache.maven.plugins</groupId>
ramverma0ba66782018-07-06 16:29:16 +010093 <artifactId>maven-shade-plugin</artifactId>
94 <executions>
95 <execution>
96 <phase>package</phase>
97 <goals>
98 <goal>shade</goal>
99 </goals>
100 </execution>
101 </executions>
102 <configuration>
103 <finalName>${project.artifactId}-uber-${project.version}</finalName>
104 <shadedArtifactAttached>true</shadedArtifactAttached>
105 <shadedClassifierName>monitoring</shadedClassifierName>
106 <artifactSet>
107 <includes>
108 <include>*:*</include>
109 </includes>
110 </artifactSet>
111 <filters>
112 <filter>
113 <artifact>*:*</artifact>
114 <excludes>
115 <exclude>META-INF/*.SF</exclude>
116 <exclude>META-INF/*.DSA</exclude>
117 <exclude>META-INF/*.RSA</exclude>
118 </excludes>
119 </filter>
120 </filters>
121 <transformers>
122 <transformer
123 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
124 <transformer
125 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
126 <resource>reference.conf</resource>
127 </transformer>
128 <transformer
129 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
130 <resource>log4j.properties</resource>
131 </transformer>
132 <transformer
133 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
134 <mainClass>org.onap.policy.apex.client.monitoring.rest.ApexMonitoringRestMain</mainClass>
135 </transformer>
136 </transformers>
137 </configuration>
138 </plugin>
139 <plugin>
140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-war-plugin</artifactId>
ramverma0ba66782018-07-06 16:29:16 +0100142 <configuration>
143 <classifier>ui</classifier>
144 <warSourceDirectory>src/main/resources/webapp</warSourceDirectory>
145 <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
146 </configuration>
147 <executions>
148 <execution>
149 <phase>prepare-package</phase>
150 <goals>
151 <goal>war</goal>
152 </goals>
153 </execution>
154 </executions>
155 </plugin>
156 <plugin>
157 <groupId>org.codehaus.mojo</groupId>
158 <artifactId>build-helper-maven-plugin</artifactId>
159 <version>3.0.0</version>
160 <executions>
161 <execution>
162 <id>attach-artifacts</id>
163 <phase>package</phase>
164 <goals>
165 <goal>attach-artifact</goal>
166 </goals>
167 <configuration>
168 <artifacts>
169 <artifact>
170 <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
171 <type>war</type>
172 </artifact>
173 <artifact>
174 <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
175 <type>uber.jar</type>
176 </artifact>
177 </artifacts>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
182 </plugins>
183 </build>
184</project>