blob: 4bae1013d8c869cbe242b073f049fcaa316549da [file] [log] [blame]
ramverma08b595c2018-07-13 12:32:32 +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">
ramverma08b595c2018-07-13 12:32:32 +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>
ramverma08b595c2018-07-13 12:32:32 +010026 </parent>
27
28 <artifactId>client-editor</artifactId>
29 <name>${project.artifactId}</name>
30 <description>Web client for editing Apex policies</description>
31
32 <dependencies>
33 <dependency>
liamfallonefdaa0d2018-08-03 16:12:01 +010034 <groupId>org.onap.policy.common</groupId>
35 <artifactId>utils</artifactId>
36 </dependency>
37 <dependency>
ramverma08b595c2018-07-13 12:32:32 +010038 <groupId>org.onap.policy.apex-pdp.model</groupId>
39 <artifactId>model-api</artifactId>
40 <version>${project.version}</version>
41 </dependency>
42 <dependency>
43 <groupId>org.onap.policy.apex-pdp.core</groupId>
44 <artifactId>core-infrastructure</artifactId>
45 <version>${project.version}</version>
46 </dependency>
47 <dependency>
48 <groupId>org.onap.policy.apex-pdp.client</groupId>
49 <artifactId>client-common</artifactId>
50 <version>${project.version}</version>
ramverma08b595c2018-07-13 12:32:32 +010051 </dependency>
52 <dependency>
53 <groupId>org.glassfish.jersey.containers</groupId>
54 <artifactId>jersey-container-grizzly2-http</artifactId>
55 <version>${version.jersey}</version>
56 </dependency>
57 <dependency>
58 <groupId>org.glassfish.jersey.media</groupId>
59 <artifactId>jersey-media-moxy</artifactId>
60 <version>${version.jersey}</version>
61 </dependency>
62 <dependency>
63 <groupId>org.glassfish.jersey.containers</groupId>
64 <artifactId>jersey-container-servlet-core</artifactId>
65 <version>${version.jersey}</version>
66 </dependency>
67 <dependency>
68 <groupId>org.glassfish.jersey.inject</groupId>
69 <artifactId>jersey-hk2</artifactId>
70 <version>${version.jersey}</version>
71 </dependency>
72 <dependency>
73 <groupId>commons-cli</groupId>
74 <artifactId>commons-cli</artifactId>
ramverma08b595c2018-07-13 12:32:32 +010075 </dependency>
76 <dependency>
77 <groupId>junit</groupId>
78 <artifactId>junit</artifactId>
79 <scope>test</scope>
80 </dependency>
81 <dependency>
82 <groupId>org.glassfish.jersey.test-framework</groupId>
83 <artifactId>jersey-test-framework-core</artifactId>
84 <version>${version.jersey}</version>
85 <scope>test</scope>
86 </dependency>
87 <dependency>
88 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
89 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
90 <version>${version.jersey}</version>
91 <scope>test</scope>
92 </dependency>
93 </dependencies>
94
95 <build>
96 <defaultGoal>install</defaultGoal>
97 <outputDirectory>${project.build.directory}/classes</outputDirectory>
98 <plugins>
liamfallon32497612018-11-10 00:39:12 +000099 <!-- Copy common resources to this client's webapp directory -->
ramverma08b595c2018-07-13 12:32:32 +0100100 <plugin>
101 <groupId>org.apache.maven.plugins</groupId>
102 <artifactId>maven-dependency-plugin</artifactId>
103 <executions>
104 <execution>
liamfallon32497612018-11-10 00:39:12 +0000105 <id>unpack-examples</id>
liamfallona41c8772018-09-05 15:46:31 +0100106 <phase>validate</phase>
liamfallon32497612018-11-10 00:39:12 +0000107 <goals>
108 <goal>unpack</goal>
109 </goals>
ramverma08b595c2018-07-13 12:32:32 +0100110 <configuration>
liamfallon32497612018-11-10 00:39:12 +0000111 <artifactItems>
112 <artifactItem>
113 <groupId>org.onap.policy.apex-pdp.client</groupId>
114 <artifactId>client-common</artifactId>
115 <version>${project.version}</version>
116 <type>jar</type>
117 <overWrite>false</overWrite>
118 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
119 <excludes>META-INF/</excludes>
120 <excludes>webapp/css/styles.css, webapp/css/interfaceAssets.css</excludes>
121 </artifactItem>
122 </artifactItems>
123 <overWriteReleases>true</overWriteReleases>
124 <overWriteSnapshots>true</overWriteSnapshots>
ramverma08b595c2018-07-13 12:32:32 +0100125 </configuration>
126 </execution>
127 </executions>
128 </plugin>
liamfallon32497612018-11-10 00:39:12 +0000129
liamfallona41c8772018-09-05 15:46:31 +0100130 <plugin>
131 <groupId>org.apache.maven.plugins</groupId>
ramverma08b595c2018-07-13 12:32:32 +0100132 <artifactId>maven-shade-plugin</artifactId>
133 <executions>
134 <execution>
135 <phase>package</phase>
136 <goals>
137 <goal>shade</goal>
138 </goals>
139 </execution>
140 </executions>
141 <configuration>
142 <finalName>${project.artifactId}-uber-${project.version}</finalName>
143 <shadedArtifactAttached>true</shadedArtifactAttached>
144 <shadedClassifierName>editor</shadedClassifierName>
145 <artifactSet>
146 <includes>
147 <include>*:*</include>
148 </includes>
149 </artifactSet>
150 <filters>
151 <filter>
152 <artifact>*:*</artifact>
153 <excludes>
154 <exclude>META-INF/*.SF</exclude>
155 <exclude>META-INF/*.DSA</exclude>
156 <exclude>META-INF/*.RSA</exclude>
157 </excludes>
158 </filter>
159 </filters>
160 <transformers>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000161 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
162 <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
ramverma08b595c2018-07-13 12:32:32 +0100163 <resource>reference.conf</resource>
164 </transformer>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000165 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
ramverma08b595c2018-07-13 12:32:32 +0100166 <resource>log4j.properties</resource>
167 </transformer>
liamfallon3aa7cbe2018-10-31 16:35:54 +0000168 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
ramverma08b595c2018-07-13 12:32:32 +0100169 <mainClass>org.onap.policy.apex.client.editor.rest.ApexEditorMain</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>src/main/resources/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>
244 <goal>unpack</goal>
245 </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>
ramverma08b595c2018-07-13 12:32:32 +0100275</project>