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
9 http://www.apache.org/licenses/LICENSE-2.0
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.
17 SPDX-License-Identifier: Apache-2.0
18 ============LICENSE_END=========================================================
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>
24 <groupId>org.onap.policy.apex-pdp.client</groupId>
25 <artifactId>client</artifactId>
26 <version>2.0.0-SNAPSHOT</version>
29 <artifactId>client-editor</artifactId>
30 <name>${project.artifactId}</name>
31 <description>Web client for editing Apex policies</description>
35 <groupId>org.onap.policy.common</groupId>
36 <artifactId>utils</artifactId>
39 <groupId>org.onap.policy.apex-pdp.model</groupId>
40 <artifactId>model-api</artifactId>
41 <version>${project.version}</version>
44 <groupId>org.onap.policy.apex-pdp.core</groupId>
45 <artifactId>core-infrastructure</artifactId>
46 <version>${project.version}</version>
49 <groupId>org.onap.policy.apex-pdp.client</groupId>
50 <artifactId>client-common</artifactId>
51 <version>${project.version}</version>
52 <classifier>resources</classifier>
54 <scope>provided</scope>
57 <groupId>org.glassfish.jersey.containers</groupId>
58 <artifactId>jersey-container-grizzly2-http</artifactId>
59 <version>${version.jersey}</version>
62 <groupId>org.glassfish.jersey.media</groupId>
63 <artifactId>jersey-media-moxy</artifactId>
64 <version>${version.jersey}</version>
67 <groupId>org.glassfish.jersey.containers</groupId>
68 <artifactId>jersey-container-servlet-core</artifactId>
69 <version>${version.jersey}</version>
72 <groupId>org.glassfish.jersey.inject</groupId>
73 <artifactId>jersey-hk2</artifactId>
74 <version>${version.jersey}</version>
77 <groupId>commons-cli</groupId>
78 <artifactId>commons-cli</artifactId>
81 <groupId>junit</groupId>
82 <artifactId>junit</artifactId>
86 <groupId>org.glassfish.jersey.test-framework</groupId>
87 <artifactId>jersey-test-framework-core</artifactId>
88 <version>${version.jersey}</version>
92 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
93 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
94 <version>${version.jersey}</version>
100 <defaultGoal>install</defaultGoal>
101 <outputDirectory>${project.build.directory}/classes</outputDirectory>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-dependency-plugin</artifactId>
108 <id>unpack-client-editor-shared-resources</id>
110 <goal>unpack-dependencies</goal>
112 <phase>validate</phase>
114 <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
115 <includeArtifacIds>client-common</includeArtifacIds>
116 <includeGroupIds>${project.groupId}</includeGroupIds>
117 <excludeTransitive>true</excludeTransitive>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-resources-plugin</artifactId>
125 <version>3.1.0</version>
128 <id>copy-common-resources-to-jar</id>
129 <phase>initialize</phase>
131 <goal>copy-resources</goal>
134 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
135 <filtering>false</filtering>
138 <directory>../client-common/src/main/resources</directory>
141 <overwrite>true</overwrite>
145 <id>copy-local-resources-to-jar</id>
146 <phase>generate-sources</phase>
148 <goal>copy-resources</goal>
151 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
152 <filtering>false</filtering>
155 <directory>src/main/resources/webapp</directory>
158 <overwrite>true</overwrite>
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-shade-plugin</artifactId>
166 <version>2.4.3</version>
169 <phase>package</phase>
176 <finalName>${project.artifactId}-uber-${project.version}</finalName>
177 <shadedArtifactAttached>true</shadedArtifactAttached>
178 <shadedClassifierName>editor</shadedClassifierName>
181 <include>*:*</include>
186 <artifact>*:*</artifact>
188 <exclude>META-INF/*.SF</exclude>
189 <exclude>META-INF/*.DSA</exclude>
190 <exclude>META-INF/*.RSA</exclude>
196 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
198 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
199 <resource>reference.conf</resource>
202 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
203 <resource>log4j.properties</resource>
206 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
207 <mainClass>org.onap.policy.apex.client.editor.rest.ApexEditorMain</mainClass>
213 <groupId>org.apache.maven.plugins</groupId>
214 <artifactId>maven-war-plugin</artifactId>
215 <version>2.6</version>
217 <classifier>ui</classifier>
218 <warSourceDirectory>src/main/resources/webapp</warSourceDirectory>
219 <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
223 <phase>prepare-package</phase>
231 <groupId>org.codehaus.mojo</groupId>
232 <artifactId>build-helper-maven-plugin</artifactId>
233 <version>3.0.0</version>
236 <id>attach-artifacts</id>
237 <phase>package</phase>
239 <goal>attach-artifact</goal>
244 <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
248 <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
249 <type>uber.jar</type>
264 <name>apexSite</name>
267 <distributionManagement>
269 <id>${project.artifactId}-site</id>
270 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
272 </distributionManagement>