blob: 33d534993480f73df30f3abdc19a3d18ae1a68c8 [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>
26 <version>2.0.0-SNAPSHOT</version>
27 </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>
112 <phase>generate-resources</phase>
113 <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>
124 <artifactId>maven-shade-plugin</artifactId>
125 <executions>
126 <execution>
127 <phase>package</phase>
128 <goals>
129 <goal>shade</goal>
130 </goals>
131 </execution>
132 </executions>
133 <configuration>
134 <finalName>${project.artifactId}-uber-${project.version}</finalName>
135 <shadedArtifactAttached>true</shadedArtifactAttached>
136 <shadedClassifierName>editor</shadedClassifierName>
137 <artifactSet>
138 <includes>
139 <include>*:*</include>
140 </includes>
141 </artifactSet>
142 <filters>
143 <filter>
144 <artifact>*:*</artifact>
145 <excludes>
146 <exclude>META-INF/*.SF</exclude>
147 <exclude>META-INF/*.DSA</exclude>
148 <exclude>META-INF/*.RSA</exclude>
149 </excludes>
150 </filter>
151 </filters>
152 <transformers>
153 <transformer
154 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
155 <transformer
156 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
157 <resource>reference.conf</resource>
158 </transformer>
159 <transformer
160 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
161 <resource>log4j.properties</resource>
162 </transformer>
163 <transformer
164 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
165 <mainClass>org.onap.policy.apex.client.editor.rest.ApexEditorMain</mainClass>
166 </transformer>
167 </transformers>
168 </configuration>
169 </plugin>
170 <plugin>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-war-plugin</artifactId>
173 <configuration>
174 <classifier>ui</classifier>
175 <warSourceDirectory>src/main/resources/webapp</warSourceDirectory>
176 <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
177 </configuration>
178 <executions>
179 <execution>
180 <phase>prepare-package</phase>
181 <goals>
182 <goal>war</goal>
183 </goals>
184 </execution>
185 </executions>
186 </plugin>
187 <plugin>
188 <groupId>org.codehaus.mojo</groupId>
189 <artifactId>build-helper-maven-plugin</artifactId>
190 <version>3.0.0</version>
191 <executions>
192 <execution>
193 <id>attach-artifacts</id>
194 <phase>package</phase>
195 <goals>
196 <goal>attach-artifact</goal>
197 </goals>
198 <configuration>
199 <artifacts>
200 <artifact>
201 <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
202 <type>war</type>
203 </artifact>
204 <artifact>
205 <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
206 <type>uber.jar</type>
207 </artifact>
208 </artifacts>
209 </configuration>
210 </execution>
211 </executions>
212 </plugin>
213 </plugins>
214 </build>
Dinh Danh Leba229772018-08-22 18:02:01 +0100215
216 <profiles>
217 <profile>
218 <id>apexSite</id>
219 <activation>
220 <property>
221 <name>apexSite</name>
222 </property>
223 </activation>
224 <distributionManagement>
225 <site>
226 <id>${project.artifactId}-site</id>
227 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
228 </site>
229 </distributionManagement>
230 </profile>
231 </profiles>
ramverma08b595c2018-07-13 12:32:32 +0100232</project>