blob: 5dd505b9a92280f7807767e2e885448ddfe455c7 [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>
80
81
82
83
ramverma773cff12018-07-14 19:05:57 +010084 </dependencies>
85
86 <build>
ramvermaea736d02018-11-29 13:47:30 +000087<!--
ramverma773cff12018-07-14 19:05:57 +010088 <resources>
89 <resource>
90 <directory>src/main/resources</directory>
91 <includes>
92 <include>webapp/**/*.*</include>
93 </includes>
94 </resource>
ramverma773cff12018-07-14 19:05:57 +010095 </resources>
ramvermaea736d02018-11-29 13:47:30 +000096-->
ramverma773cff12018-07-14 19:05:57 +010097 <defaultGoal>install</defaultGoal>
98 <outputDirectory>${project.build.directory}/classes</outputDirectory>
99 <plugins>
ramvermaea736d02018-11-29 13:47:30 +0000100
101<!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ -->
ramverma773cff12018-07-14 19:05:57 +0100102 <plugin>
103 <groupId>org.apache.maven.plugins</groupId>
liamfallona41c8772018-09-05 15:46:31 +0100104 <artifactId>maven-dependency-plugin</artifactId>
105 <executions>
106 <execution>
ramvermaea736d02018-11-29 13:47:30 +0000107 <id>unpack-MONITOR-resources</id>
liamfallona41c8772018-09-05 15:46:31 +0100108 <goals>
ramvermaea736d02018-11-29 13:47:30 +0000109 <goal>unpack-dependencies</goal>
liamfallona41c8772018-09-05 15:46:31 +0100110 </goals>
ramvermaea736d02018-11-29 13:47:30 +0000111 <phase>generate-resources</phase>
liamfallona41c8772018-09-05 15:46:31 +0100112 <configuration>
ramvermaea736d02018-11-29 13:47:30 +0000113 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
114 <!--use as much as needed to be specific...also scope,type,classifier etc-->
115 <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds>
116 <includeArtifacIds>client-monitoring, client-deployment, client-editor</includeArtifacIds>
117 <excludeTransitive>true</excludeTransitive>
118 <excludeTypes>jar</excludeTypes>
119 <includeTypes>zip</includeTypes>
120 <scope>provided</scope>
liamfallona41c8772018-09-05 15:46:31 +0100121 </configuration>
122 </execution>
123 </executions>
124 </plugin>
liamfallon32497612018-11-10 00:39:12 +0000125
126 <plugin>
127 <groupId>org.apache.maven.plugins</groupId>
ramverma773cff12018-07-14 19:05:57 +0100128 <artifactId>maven-shade-plugin</artifactId>
129 <executions>
130 <execution>
131 <phase>package</phase>
132 <goals>
133 <goal>shade</goal>
134 </goals>
135 </execution>
136 </executions>
137 <configuration>
138 <finalName>${project.artifactId}-uber-${project.version}</finalName>
139 <shadedArtifactAttached>true</shadedArtifactAttached>
140 <shadedClassifierName>full</shadedClassifierName>
141 <artifactSet>
142 <includes>
143 <include>*:*</include>
144 </includes>
145 </artifactSet>
146 <filters>
147 <filter>
148 <artifact>*:*</artifact>
149 <excludes>
150 <exclude>META-INF/*.SF</exclude>
151 <exclude>META-INF/*.DSA</exclude>
152 <exclude>META-INF/*.RSA</exclude>
153 </excludes>
154 </filter>
155 </filters>
156 <transformers>
liamfallon32497612018-11-10 00:39:12 +0000157 <transformer
158 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
159 <transformer
160 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
ramverma773cff12018-07-14 19:05:57 +0100161 <resource>reference.conf</resource>
162 </transformer>
liamfallon32497612018-11-10 00:39:12 +0000163 <transformer
164 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
ramverma773cff12018-07-14 19:05:57 +0100165 <resource>log4j.properties</resource>
166 </transformer>
liamfallon32497612018-11-10 00:39:12 +0000167 <transformer
168 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
ramverma773cff12018-07-14 19:05:57 +0100169 <mainClass>org.onap.policy.apex.client.full.rest.ApexServicesRestMain</mainClass>
170 </transformer>
171 </transformers>
172 </configuration>
173 </plugin>
174 <plugin>
175 <groupId>org.apache.maven.plugins</groupId>
176 <artifactId>maven-war-plugin</artifactId>
177 <configuration>
178 <classifier>ui</classifier>
179 <warSourceDirectory>target/classes/webapp</warSourceDirectory>
180 <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
181 </configuration>
182 <executions>
183 <execution>
184 <phase>prepare-package</phase>
185 <goals>
186 <goal>war</goal>
187 </goals>
188 </execution>
189 </executions>
190 </plugin>
191 <plugin>
192 <groupId>org.codehaus.mojo</groupId>
193 <artifactId>build-helper-maven-plugin</artifactId>
194 <version>3.0.0</version>
195 <executions>
196 <execution>
197 <id>attach-artifacts</id>
198 <phase>package</phase>
199 <goals>
200 <goal>attach-artifact</goal>
201 </goals>
202 <configuration>
203 <artifacts>
204 <artifact>
205 <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
206 <type>war</type>
207 </artifact>
208 <artifact>
209 <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
210 <type>uber.jar</type>
211 </artifact>
212 </artifacts>
213 </configuration>
214 </execution>
215 </executions>
216 </plugin>
217 </plugins>
218 </build>
Dinh Danh Leba229772018-08-22 18:02:01 +0100219
220 <profiles>
221 <profile>
liamfallon32497612018-11-10 00:39:12 +0000222 <id>only-eclipse</id>
223 <activation>
224 <property>
225 <name>m2e.version</name>
226 </property>
227 </activation>
228 <build>
229 <pluginManagement>
230 <plugins>
231 <plugin>
232 <groupId>org.eclipse.m2e</groupId>
233 <artifactId>lifecycle-mapping</artifactId>
234 <version>1.0.0</version>
235 <configuration>
236 <lifecycleMappingMetadata>
237 <pluginExecutions>
238 <pluginExecution>
239 <pluginExecutionFilter>
240 <groupId>org.apache.maven.plugins</groupId>
241 <artifactId>maven-dependency-plugin</artifactId>
242 <versionRange>[2.0,)</versionRange>
243 <goals>
ramvermaea736d02018-11-29 13:47:30 +0000244 <goal>unpack-dependencies</goal>
liamfallon32497612018-11-10 00:39:12 +0000245 </goals>
246 </pluginExecutionFilter>
247 <action>
248 <ignore />
249 </action>
250 </pluginExecution>
251 </pluginExecutions>
252 </lifecycleMappingMetadata>
253 </configuration>
254 </plugin>
255 </plugins>
256 </pluginManagement>
257 </build>
258 </profile>
259
260 <profile>
Dinh Danh Leba229772018-08-22 18:02:01 +0100261 <id>apexSite</id>
262 <activation>
263 <property>
264 <name>apexSite</name>
265 </property>
266 </activation>
267 <distributionManagement>
268 <site>
269 <id>${project.artifactId}-site</id>
270 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
271 </site>
272 </distributionManagement>
273 </profile>
274 </profiles>
ramverma773cff12018-07-14 19:05:57 +0100275</project>