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