2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
4 Modifications Copyright (C) 2019 Nordix Foundation.
5 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.policy.apex-pdp.client</groupId>
26 <artifactId>client</artifactId>
27 <version>2.3.0-SNAPSHOT</version>
30 <artifactId>client-editor</artifactId>
31 <name>${project.artifactId}</name>
32 <description>Web client for editing Apex policies</description>
36 <groupId>org.onap.policy.common</groupId>
37 <artifactId>policy-endpoints</artifactId>
40 <groupId>org.onap.policy.common</groupId>
41 <artifactId>utils</artifactId>
44 <groupId>org.onap.policy.apex-pdp.model</groupId>
45 <artifactId>model-api</artifactId>
46 <version>${project.version}</version>
49 <groupId>org.onap.policy.apex-pdp.core</groupId>
50 <artifactId>core-infrastructure</artifactId>
51 <version>${project.version}</version>
54 <groupId>org.glassfish.jersey.containers</groupId>
55 <artifactId>jersey-container-grizzly2-http</artifactId>
58 <groupId>org.glassfish.jersey.media</groupId>
59 <artifactId>jersey-media-moxy</artifactId>
62 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
63 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
67 <groupId>commons-cli</groupId>
68 <artifactId>commons-cli</artifactId>
71 <groupId>junit</groupId>
72 <artifactId>junit</artifactId>
76 <groupId>org.onap.policy.apex-pdp.client</groupId>
77 <artifactId>client-common</artifactId>
78 <version>${project.version}</version>
79 <classifier>resources</classifier>
81 <scope>provided</scope>
87 <defaultGoal>install</defaultGoal>
88 <outputDirectory>${project.build.directory}/classes</outputDirectory>
91 <!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ -->
93 <groupId>org.apache.maven.plugins</groupId>
94 <artifactId>maven-dependency-plugin</artifactId>
97 <id>unpack-shared-resources</id>
99 <goal>unpack-dependencies</goal>
101 <phase>generate-resources</phase>
103 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
104 <!--use as much as needed to be specific...also scope,type,classifier etc-->
105 <includeArtifacIds>client-common</includeArtifacIds>
106 <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds>
107 <excludeTransitive>true</excludeTransitive>
108 <excludeTransitive>true</excludeTransitive>
109 <excludeTypes>jar</excludeTypes>
110 <includeTypes>zip</includeTypes>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-assembly-plugin</artifactId>
120 <id>make shared resources</id>
124 <phase>package</phase>
127 <descriptor>src/main/assembly/resources.xml</descriptor>
136 <groupId>org.apache.maven.plugins</groupId>
137 <artifactId>maven-shade-plugin</artifactId>
140 <phase>package</phase>
147 <finalName>${project.artifactId}-uber-${project.version}</finalName>
148 <shadedArtifactAttached>true</shadedArtifactAttached>
149 <shadedClassifierName>editor</shadedClassifierName>
152 <include>*:*</include>
157 <artifact>*:*</artifact>
159 <exclude>META-INF/*.SF</exclude>
160 <exclude>META-INF/*.DSA</exclude>
161 <exclude>META-INF/*.RSA</exclude>
167 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
169 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
170 <resource>reference.conf</resource>
173 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
174 <resource>log4j.properties</resource>
177 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
178 <mainClass>org.onap.policy.apex.client.editor.rest.ApexEditorMain</mainClass>
184 <groupId>org.apache.maven.plugins</groupId>
185 <artifactId>maven-war-plugin</artifactId>
187 <classifier>ui</classifier>
188 <warSourceDirectory>src/main/resources/webapp</warSourceDirectory>
189 <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
193 <phase>prepare-package</phase>
201 <groupId>org.codehaus.mojo</groupId>
202 <artifactId>build-helper-maven-plugin</artifactId>
203 <version>3.0.0</version>
206 <id>attach-artifacts</id>
207 <phase>package</phase>
209 <goal>attach-artifact</goal>
214 <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
218 <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
219 <type>uber.jar</type>
234 <name>apexSite</name>
237 <distributionManagement>
239 <id>${project.artifactId}-site</id>
240 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
242 </distributionManagement>