blob: c4591af859337fecc20cd9bb6393ff7d18078243 [file] [log] [blame]
ramverma773cff12018-07-14 19:05:57 +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-->
liamfallon32497612018-11-10 00:39:12 +000020<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">
ramverma773cff12018-07-14 19:05:57 +010022 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.onap.policy.apex-pdp.client</groupId>
25 <artifactId>client</artifactId>
jrh3d7a0af72019-08-07 15:27:11 -040026 <version>2.2.2-SNAPSHOT</version>
ramverma773cff12018-07-14 19:05:57 +010027 </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>
ramvermaea736d02018-11-29 13:47:30 +000054
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.xic678c3a2019-08-13 05:20:20 +000080 <dependency>
81 <groupId>org.assertj</groupId>
82 <artifactId>assertj-core</artifactId>
83 <version>3.13.2</version>
84 <scope>test</scope>
85 </dependency>
ramvermaea736d02018-11-29 13:47:30 +000086
87
88
ramverma773cff12018-07-14 19:05:57 +010089 </dependencies>
90
91 <build>
ramvermaea736d02018-11-29 13:47:30 +000092<!--
ramverma773cff12018-07-14 19:05:57 +010093 <resources>
94 <resource>
95 <directory>src/main/resources</directory>
96 <includes>
97 <include>webapp/**/*.*</include>
98 </includes>
99 </resource>
ramverma773cff12018-07-14 19:05:57 +0100100 </resources>
ramvermaea736d02018-11-29 13:47:30 +0000101-->
ramverma773cff12018-07-14 19:05:57 +0100102 <defaultGoal>install</defaultGoal>
103 <outputDirectory>${project.build.directory}/classes</outputDirectory>
104 <plugins>
ramvermaea736d02018-11-29 13:47:30 +0000105
106<!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ -->
ramverma773cff12018-07-14 19:05:57 +0100107 <plugin>
108 <groupId>org.apache.maven.plugins</groupId>
liamfallona41c8772018-09-05 15:46:31 +0100109 <artifactId>maven-dependency-plugin</artifactId>
110 <executions>
111 <execution>
ramvermaea736d02018-11-29 13:47:30 +0000112 <id>unpack-MONITOR-resources</id>
liamfallona41c8772018-09-05 15:46:31 +0100113 <goals>
ramvermaea736d02018-11-29 13:47:30 +0000114 <goal>unpack-dependencies</goal>
liamfallona41c8772018-09-05 15:46:31 +0100115 </goals>
ramvermaea736d02018-11-29 13:47:30 +0000116 <phase>generate-resources</phase>
liamfallona41c8772018-09-05 15:46:31 +0100117 <configuration>
ramvermaea736d02018-11-29 13:47:30 +0000118 <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>
liamfallona41c8772018-09-05 15:46:31 +0100126 </configuration>
127 </execution>
128 </executions>
129 </plugin>
liamfallon32497612018-11-10 00:39:12 +0000130
131 <plugin>
132 <groupId>org.apache.maven.plugins</groupId>
ramverma773cff12018-07-14 19:05:57 +0100133 <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>
liamfallon32497612018-11-10 00:39:12 +0000162 <transformer
163 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
164 <transformer
165 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
ramverma773cff12018-07-14 19:05:57 +0100166 <resource>reference.conf</resource>
167 </transformer>
liamfallon32497612018-11-10 00:39:12 +0000168 <transformer
169 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
ramverma773cff12018-07-14 19:05:57 +0100170 <resource>log4j.properties</resource>
171 </transformer>
liamfallon32497612018-11-10 00:39:12 +0000172 <transformer
173 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
ramverma773cff12018-07-14 19:05:57 +0100174 <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 Leba229772018-08-22 18:02:01 +0100224
225 <profiles>
226 <profile>
liamfallon32497612018-11-10 00:39:12 +0000227 <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>
ramvermaea736d02018-11-29 13:47:30 +0000249 <goal>unpack-dependencies</goal>
liamfallon32497612018-11-10 00:39:12 +0000250 </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 Leba229772018-08-22 18:02:01 +0100266 <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>
ramverma773cff12018-07-14 19:05:57 +0100280</project>