blob: dd9d78cb78a8889ab3b44cf905d1493efb981075 [file] [log] [blame]
ramverma773cff12018-07-14 19:05:57 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallon41712562019-11-01 11:47:21 +00004 Modifications Copyright (C) 2019 Nordix Foundation.
Ram Krishna Verma8d228522020-02-05 16:31:01 -05005 Modifications Copyright (C) 2020 Bell Canada.
ramverma773cff12018-07-14 19:05:57 +01006 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
21-->
liamfallon32497612018-11-10 00:39:12 +000022<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 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 +010024 <modelVersion>4.0.0</modelVersion>
25 <parent>
26 <groupId>org.onap.policy.apex-pdp.client</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050027 <artifactId>apex-client</artifactId>
jrh3d7d9df62019-09-12 10:07:06 -040028 <version>2.3.0-SNAPSHOT</version>
ramverma773cff12018-07-14 19:05:57 +010029 </parent>
30
Ram Krishna Verma8d228522020-02-05 16:31:01 -050031 <artifactId>apex-client-full</artifactId>
ramverma773cff12018-07-14 19:05:57 +010032 <name>${project.artifactId}</name>
33 <description>Web clients for managing Apex engines</description>
34
35 <dependencies>
36 <dependency>
37 <groupId>org.onap.policy.apex-pdp.client</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050038 <artifactId>apex-client-editor</artifactId>
ramverma773cff12018-07-14 19:05:57 +010039 <version>${project.version}</version>
40 </dependency>
41 <dependency>
42 <groupId>org.onap.policy.apex-pdp.client</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050043 <artifactId>apex-client-monitoring</artifactId>
ramverma773cff12018-07-14 19:05:57 +010044 <version>${project.version}</version>
45 </dependency>
46 <dependency>
47 <groupId>org.onap.policy.apex-pdp.client</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050048 <artifactId>apex-client-deployment</artifactId>
ramverma773cff12018-07-14 19:05:57 +010049 <version>${project.version}</version>
50 </dependency>
51 <dependency>
ramvermaea736d02018-11-29 13:47:30 +000052 <groupId>org.onap.policy.apex-pdp.client</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050053 <artifactId>apex-client-monitoring</artifactId>
ramvermaea736d02018-11-29 13:47:30 +000054 <version>${project.version}</version>
55 <classifier>resources</classifier>
56 <type>zip</type>
57 <scope>provided</scope>
58 </dependency>
59 <dependency>
60 <groupId>org.onap.policy.apex-pdp.client</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050061 <artifactId>apex-client-deployment</artifactId>
ramvermaea736d02018-11-29 13:47:30 +000062 <version>${project.version}</version>
63 <classifier>resources</classifier>
64 <type>zip</type>
65 <scope>provided</scope>
66 </dependency>
67 <dependency>
68 <groupId>org.onap.policy.apex-pdp.client</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050069 <artifactId>apex-client-editor</artifactId>
ramvermaea736d02018-11-29 13:47:30 +000070 <version>${project.version}</version>
71 <classifier>resources</classifier>
72 <type>zip</type>
73 <scope>provided</scope>
74 </dependency>
ning.xic678c3a2019-08-13 05:20:20 +000075 <dependency>
76 <groupId>org.assertj</groupId>
77 <artifactId>assertj-core</artifactId>
ning.xic678c3a2019-08-13 05:20:20 +000078 <scope>test</scope>
79 </dependency>
ramverma773cff12018-07-14 19:05:57 +010080 </dependencies>
81
82 <build>
ramvermaea736d02018-11-29 13:47:30 +000083<!--
ramverma773cff12018-07-14 19:05:57 +010084 <resources>
85 <resource>
86 <directory>src/main/resources</directory>
87 <includes>
88 <include>webapp/**/*.*</include>
89 </includes>
90 </resource>
ramverma773cff12018-07-14 19:05:57 +010091 </resources>
ramvermaea736d02018-11-29 13:47:30 +000092-->
ramverma773cff12018-07-14 19:05:57 +010093 <defaultGoal>install</defaultGoal>
94 <outputDirectory>${project.build.directory}/classes</outputDirectory>
95 <plugins>
ramvermaea736d02018-11-29 13:47:30 +000096
97<!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ -->
ramverma773cff12018-07-14 19:05:57 +010098 <plugin>
99 <groupId>org.apache.maven.plugins</groupId>
liamfallona41c8772018-09-05 15:46:31 +0100100 <artifactId>maven-dependency-plugin</artifactId>
101 <executions>
102 <execution>
ramvermaea736d02018-11-29 13:47:30 +0000103 <id>unpack-MONITOR-resources</id>
liamfallona41c8772018-09-05 15:46:31 +0100104 <goals>
ramvermaea736d02018-11-29 13:47:30 +0000105 <goal>unpack-dependencies</goal>
liamfallona41c8772018-09-05 15:46:31 +0100106 </goals>
ramvermaea736d02018-11-29 13:47:30 +0000107 <phase>generate-resources</phase>
liamfallona41c8772018-09-05 15:46:31 +0100108 <configuration>
ramvermaea736d02018-11-29 13:47:30 +0000109 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
110 <!--use as much as needed to be specific...also scope,type,classifier etc-->
111 <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds>
Ram Krishna Verma8d228522020-02-05 16:31:01 -0500112 <includeArtifacIds>apex-client-monitoring, apex-client-deployment, apex-client-editor</includeArtifacIds>
ramvermaea736d02018-11-29 13:47:30 +0000113 <excludeTransitive>true</excludeTransitive>
114 <excludeTypes>jar</excludeTypes>
115 <includeTypes>zip</includeTypes>
116 <scope>provided</scope>
liamfallona41c8772018-09-05 15:46:31 +0100117 </configuration>
118 </execution>
119 </executions>
120 </plugin>
liamfallon32497612018-11-10 00:39:12 +0000121
122 <plugin>
123 <groupId>org.apache.maven.plugins</groupId>
ramverma773cff12018-07-14 19:05:57 +0100124 <artifactId>maven-shade-plugin</artifactId>
125 <executions>
126 <execution>
127 <phase>package</phase>
128 <goals>
129 <goal>shade</goal>
130 </goals>
131 </execution>
132 </executions>
133 <configuration>
134 <finalName>${project.artifactId}-uber-${project.version}</finalName>
135 <shadedArtifactAttached>true</shadedArtifactAttached>
136 <shadedClassifierName>full</shadedClassifierName>
137 <artifactSet>
138 <includes>
139 <include>*:*</include>
140 </includes>
141 </artifactSet>
142 <filters>
143 <filter>
144 <artifact>*:*</artifact>
145 <excludes>
146 <exclude>META-INF/*.SF</exclude>
147 <exclude>META-INF/*.DSA</exclude>
148 <exclude>META-INF/*.RSA</exclude>
149 </excludes>
150 </filter>
151 </filters>
152 <transformers>
liamfallon32497612018-11-10 00:39:12 +0000153 <transformer
154 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
155 <transformer
156 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
ramverma773cff12018-07-14 19:05:57 +0100157 <resource>reference.conf</resource>
158 </transformer>
liamfallon32497612018-11-10 00:39:12 +0000159 <transformer
160 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
ramverma773cff12018-07-14 19:05:57 +0100161 <resource>log4j.properties</resource>
162 </transformer>
liamfallon32497612018-11-10 00:39:12 +0000163 <transformer
164 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
ramverma773cff12018-07-14 19:05:57 +0100165 <mainClass>org.onap.policy.apex.client.full.rest.ApexServicesRestMain</mainClass>
166 </transformer>
167 </transformers>
168 </configuration>
169 </plugin>
170 <plugin>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-war-plugin</artifactId>
173 <configuration>
174 <classifier>ui</classifier>
175 <warSourceDirectory>target/classes/webapp</warSourceDirectory>
176 <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
177 </configuration>
178 <executions>
179 <execution>
180 <phase>prepare-package</phase>
181 <goals>
182 <goal>war</goal>
183 </goals>
184 </execution>
185 </executions>
186 </plugin>
187 <plugin>
188 <groupId>org.codehaus.mojo</groupId>
189 <artifactId>build-helper-maven-plugin</artifactId>
190 <version>3.0.0</version>
191 <executions>
192 <execution>
193 <id>attach-artifacts</id>
194 <phase>package</phase>
195 <goals>
196 <goal>attach-artifact</goal>
197 </goals>
198 <configuration>
199 <artifacts>
200 <artifact>
201 <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
202 <type>war</type>
203 </artifact>
204 <artifact>
205 <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
206 <type>uber.jar</type>
207 </artifact>
208 </artifacts>
209 </configuration>
210 </execution>
211 </executions>
212 </plugin>
213 </plugins>
214 </build>
Dinh Danh Leba229772018-08-22 18:02:01 +0100215
216 <profiles>
217 <profile>
liamfallon32497612018-11-10 00:39:12 +0000218 <id>only-eclipse</id>
219 <activation>
220 <property>
221 <name>m2e.version</name>
222 </property>
223 </activation>
224 <build>
225 <pluginManagement>
226 <plugins>
227 <plugin>
228 <groupId>org.eclipse.m2e</groupId>
229 <artifactId>lifecycle-mapping</artifactId>
230 <version>1.0.0</version>
231 <configuration>
232 <lifecycleMappingMetadata>
233 <pluginExecutions>
234 <pluginExecution>
235 <pluginExecutionFilter>
236 <groupId>org.apache.maven.plugins</groupId>
237 <artifactId>maven-dependency-plugin</artifactId>
238 <versionRange>[2.0,)</versionRange>
239 <goals>
ramvermaea736d02018-11-29 13:47:30 +0000240 <goal>unpack-dependencies</goal>
liamfallon32497612018-11-10 00:39:12 +0000241 </goals>
242 </pluginExecutionFilter>
243 <action>
244 <ignore />
245 </action>
246 </pluginExecution>
247 </pluginExecutions>
248 </lifecycleMappingMetadata>
249 </configuration>
250 </plugin>
251 </plugins>
252 </pluginManagement>
253 </build>
254 </profile>
255
256 <profile>
Dinh Danh Leba229772018-08-22 18:02:01 +0100257 <id>apexSite</id>
258 <activation>
259 <property>
260 <name>apexSite</name>
261 </property>
262 </activation>
263 <distributionManagement>
264 <site>
265 <id>${project.artifactId}-site</id>
266 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
267 </site>
268 </distributionManagement>
269 </profile>
270 </profiles>
liamfallon41712562019-11-01 11:47:21 +0000271</project>