blob: dfcc55fdce20654cdcdfab49d007ca319ef7d596 [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-->
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>
ramverma79e5ede2018-10-24 20:14:02 +010026 <version>2.0.1-SNAPSHOT</version>
ramverma08b595c2018-07-13 12:32:32 +010027 </parent>
28
29 <artifactId>client-editor</artifactId>
30 <name>${project.artifactId}</name>
31 <description>Web client for editing Apex policies</description>
32
33 <dependencies>
34 <dependency>
liamfallonefdaa0d2018-08-03 16:12:01 +010035 <groupId>org.onap.policy.common</groupId>
36 <artifactId>utils</artifactId>
37 </dependency>
38 <dependency>
ramverma08b595c2018-07-13 12:32:32 +010039 <groupId>org.onap.policy.apex-pdp.model</groupId>
40 <artifactId>model-api</artifactId>
41 <version>${project.version}</version>
42 </dependency>
43 <dependency>
44 <groupId>org.onap.policy.apex-pdp.core</groupId>
45 <artifactId>core-infrastructure</artifactId>
46 <version>${project.version}</version>
47 </dependency>
48 <dependency>
49 <groupId>org.onap.policy.apex-pdp.client</groupId>
50 <artifactId>client-common</artifactId>
51 <version>${project.version}</version>
52 <classifier>resources</classifier>
53 <type>zip</type>
54 <scope>provided</scope>
55 </dependency>
56 <dependency>
57 <groupId>org.glassfish.jersey.containers</groupId>
58 <artifactId>jersey-container-grizzly2-http</artifactId>
59 <version>${version.jersey}</version>
60 </dependency>
61 <dependency>
62 <groupId>org.glassfish.jersey.media</groupId>
63 <artifactId>jersey-media-moxy</artifactId>
64 <version>${version.jersey}</version>
65 </dependency>
66 <dependency>
67 <groupId>org.glassfish.jersey.containers</groupId>
68 <artifactId>jersey-container-servlet-core</artifactId>
69 <version>${version.jersey}</version>
70 </dependency>
71 <dependency>
72 <groupId>org.glassfish.jersey.inject</groupId>
73 <artifactId>jersey-hk2</artifactId>
74 <version>${version.jersey}</version>
75 </dependency>
76 <dependency>
77 <groupId>commons-cli</groupId>
78 <artifactId>commons-cli</artifactId>
ramverma08b595c2018-07-13 12:32:32 +010079 </dependency>
80 <dependency>
81 <groupId>junit</groupId>
82 <artifactId>junit</artifactId>
83 <scope>test</scope>
84 </dependency>
85 <dependency>
86 <groupId>org.glassfish.jersey.test-framework</groupId>
87 <artifactId>jersey-test-framework-core</artifactId>
88 <version>${version.jersey}</version>
89 <scope>test</scope>
90 </dependency>
91 <dependency>
92 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
93 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
94 <version>${version.jersey}</version>
95 <scope>test</scope>
96 </dependency>
97 </dependencies>
98
99 <build>
100 <defaultGoal>install</defaultGoal>
101 <outputDirectory>${project.build.directory}/classes</outputDirectory>
102 <plugins>
103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-dependency-plugin</artifactId>
106 <executions>
107 <execution>
108 <id>unpack-client-editor-shared-resources</id>
109 <goals>
110 <goal>unpack-dependencies</goal>
111 </goals>
liamfallona41c8772018-09-05 15:46:31 +0100112 <phase>validate</phase>
ramverma08b595c2018-07-13 12:32:32 +0100113 <configuration>
114 <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
115 <includeArtifacIds>client-common</includeArtifacIds>
116 <includeGroupIds>${project.groupId}</includeGroupIds>
117 <excludeTransitive>true</excludeTransitive>
118 </configuration>
119 </execution>
120 </executions>
121 </plugin>
122 <plugin>
123 <groupId>org.apache.maven.plugins</groupId>
liamfallona41c8772018-09-05 15:46:31 +0100124 <artifactId>maven-resources-plugin</artifactId>
liamfallona41c8772018-09-05 15:46:31 +0100125 <executions>
126 <execution>
127 <id>copy-common-resources-to-jar</id>
128 <phase>initialize</phase>
129 <goals>
130 <goal>copy-resources</goal>
131 </goals>
132 <configuration>
133 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
134 <filtering>false</filtering>
135 <resources>
136 <resource>
137 <directory>../client-common/src/main/resources</directory>
138 </resource>
139 </resources>
140 <overwrite>true</overwrite>
141 </configuration>
142 </execution>
143 <execution>
144 <id>copy-local-resources-to-jar</id>
145 <phase>generate-sources</phase>
146 <goals>
147 <goal>copy-resources</goal>
148 </goals>
149 <configuration>
150 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
151 <filtering>false</filtering>
152 <resources>
153 <resource>
154 <directory>src/main/resources/webapp</directory>
155 </resource>
156 </resources>
157 <overwrite>true</overwrite>
158 </configuration>
159 </execution>
160 </executions>
161 </plugin>
162 <plugin>
163 <groupId>org.apache.maven.plugins</groupId>
ramverma08b595c2018-07-13 12:32:32 +0100164 <artifactId>maven-shade-plugin</artifactId>
165 <executions>
166 <execution>
167 <phase>package</phase>
168 <goals>
169 <goal>shade</goal>
170 </goals>
171 </execution>
172 </executions>
173 <configuration>
174 <finalName>${project.artifactId}-uber-${project.version}</finalName>
175 <shadedArtifactAttached>true</shadedArtifactAttached>
176 <shadedClassifierName>editor</shadedClassifierName>
177 <artifactSet>
178 <includes>
179 <include>*:*</include>
180 </includes>
181 </artifactSet>
182 <filters>
183 <filter>
184 <artifact>*:*</artifact>
185 <excludes>
186 <exclude>META-INF/*.SF</exclude>
187 <exclude>META-INF/*.DSA</exclude>
188 <exclude>META-INF/*.RSA</exclude>
189 </excludes>
190 </filter>
191 </filters>
192 <transformers>
193 <transformer
194 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
195 <transformer
196 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
197 <resource>reference.conf</resource>
198 </transformer>
199 <transformer
200 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
201 <resource>log4j.properties</resource>
202 </transformer>
203 <transformer
204 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
205 <mainClass>org.onap.policy.apex.client.editor.rest.ApexEditorMain</mainClass>
206 </transformer>
207 </transformers>
208 </configuration>
209 </plugin>
210 <plugin>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-war-plugin</artifactId>
213 <configuration>
214 <classifier>ui</classifier>
215 <warSourceDirectory>src/main/resources/webapp</warSourceDirectory>
216 <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
217 </configuration>
218 <executions>
219 <execution>
220 <phase>prepare-package</phase>
221 <goals>
222 <goal>war</goal>
223 </goals>
224 </execution>
225 </executions>
226 </plugin>
227 <plugin>
228 <groupId>org.codehaus.mojo</groupId>
229 <artifactId>build-helper-maven-plugin</artifactId>
230 <version>3.0.0</version>
231 <executions>
232 <execution>
233 <id>attach-artifacts</id>
234 <phase>package</phase>
235 <goals>
236 <goal>attach-artifact</goal>
237 </goals>
238 <configuration>
239 <artifacts>
240 <artifact>
241 <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
242 <type>war</type>
243 </artifact>
244 <artifact>
245 <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
246 <type>uber.jar</type>
247 </artifact>
248 </artifacts>
249 </configuration>
250 </execution>
251 </executions>
252 </plugin>
253 </plugins>
254 </build>
Dinh Danh Leba229772018-08-22 18:02:01 +0100255
256 <profiles>
257 <profile>
258 <id>apexSite</id>
259 <activation>
260 <property>
261 <name>apexSite</name>
262 </property>
263 </activation>
264 <distributionManagement>
265 <site>
266 <id>${project.artifactId}-site</id>
267 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
268 </site>
269 </distributionManagement>
270 </profile>
271 </profiles>
ramverma08b595c2018-07-13 12:32:32 +0100272</project>