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.1.1-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.glassfish.jersey.containers</groupId>
50 <artifactId>jersey-container-grizzly2-http</artifactId>
51 <version>${version.jersey}</version>
54 <groupId>org.glassfish.jersey.media</groupId>
55 <artifactId>jersey-media-moxy</artifactId>
56 <version>${version.jersey}</version>
59 <groupId>org.glassfish.jersey.containers</groupId>
60 <artifactId>jersey-container-servlet-core</artifactId>
61 <version>${version.jersey}</version>
64 <groupId>org.glassfish.jersey.inject</groupId>
65 <artifactId>jersey-hk2</artifactId>
66 <version>${version.jersey}</version>
69 <groupId>commons-cli</groupId>
70 <artifactId>commons-cli</artifactId>
73 <groupId>junit</groupId>
74 <artifactId>junit</artifactId>
78 <groupId>org.glassfish.jersey.test-framework</groupId>
79 <artifactId>jersey-test-framework-core</artifactId>
80 <version>${version.jersey}</version>
84 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
85 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
86 <version>${version.jersey}</version>
91 <groupId>org.onap.policy.apex-pdp.client</groupId>
92 <artifactId>client-common</artifactId>
93 <version>${project.version}</version>
94 <classifier>resources</classifier>
96 <scope>provided</scope>
102 <defaultGoal>install</defaultGoal>
103 <outputDirectory>${project.build.directory}/classes</outputDirectory>
106 <!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ -->
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-dependency-plugin</artifactId>
112 <id>unpack-shared-resources</id>
114 <goal>unpack-dependencies</goal>
116 <phase>generate-resources</phase>
118 <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
119 <!--use as much as needed to be specific...also scope,type,classifier etc-->
120 <includeArtifacIds>client-common</includeArtifacIds>
121 <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds>
122 <excludeTransitive>true</excludeTransitive>
123 <excludeTransitive>true</excludeTransitive>
124 <excludeTypes>jar</excludeTypes>
125 <includeTypes>zip</includeTypes>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-assembly-plugin</artifactId>
135 <id>make shared resources</id>
139 <phase>package</phase>
142 <descriptor>src/main/assembly/resources.xml</descriptor>
151 <groupId>org.apache.maven.plugins</groupId>
152 <artifactId>maven-shade-plugin</artifactId>
155 <phase>package</phase>
162 <finalName>${project.artifactId}-uber-${project.version}</finalName>
163 <shadedArtifactAttached>true</shadedArtifactAttached>
164 <shadedClassifierName>editor</shadedClassifierName>
167 <include>*:*</include>
172 <artifact>*:*</artifact>
174 <exclude>META-INF/*.SF</exclude>
175 <exclude>META-INF/*.DSA</exclude>
176 <exclude>META-INF/*.RSA</exclude>
182 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
184 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
185 <resource>reference.conf</resource>
188 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
189 <resource>log4j.properties</resource>
192 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
193 <mainClass>org.onap.policy.apex.client.editor.rest.ApexEditorMain</mainClass>
199 <groupId>org.apache.maven.plugins</groupId>
200 <artifactId>maven-war-plugin</artifactId>
202 <classifier>ui</classifier>
203 <warSourceDirectory>src/main/resources/webapp</warSourceDirectory>
204 <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
208 <phase>prepare-package</phase>
216 <groupId>org.codehaus.mojo</groupId>
217 <artifactId>build-helper-maven-plugin</artifactId>
218 <version>3.0.0</version>
221 <id>attach-artifacts</id>
222 <phase>package</phase>
224 <goal>attach-artifact</goal>
229 <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
233 <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
234 <type>uber.jar</type>
249 <name>apexSite</name>
252 <distributionManagement>
254 <id>${project.artifactId}-site</id>
255 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
257 </distributionManagement>