blob: e2605766ef2ef5a142915773e4a3e562cb401583 [file] [log] [blame]
ramverma773cff12018-07-14 19:05:57 +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-full</artifactId>
30 <name>${project.artifactId}</name>
31 <description>Web clients for managing Apex engines</description>
32
33 <dependencies>
34 <dependency>
35 <groupId>org.onap.policy.apex-pdp.client</groupId>
36 <artifactId>client-editor</artifactId>
37 <version>${project.version}</version>
38 </dependency>
39 <dependency>
40 <groupId>org.onap.policy.apex-pdp.client</groupId>
41 <artifactId>client-monitoring</artifactId>
42 <version>${project.version}</version>
43 </dependency>
44 <dependency>
45 <groupId>org.onap.policy.apex-pdp.client</groupId>
46 <artifactId>client-deployment</artifactId>
47 <version>${project.version}</version>
48 </dependency>
49 <dependency>
50 <groupId>org.glassfish.jersey.containers</groupId>
51 <artifactId>jersey-container-grizzly2-http</artifactId>
52 <version>${version.jersey}</version>
53 </dependency>
54 </dependencies>
55
56 <build>
57 <resources>
58 <resource>
59 <directory>src/main/resources</directory>
60 <includes>
61 <include>webapp/**/*.*</include>
62 </includes>
63 </resource>
64 <resource>
liamfallona41c8772018-09-05 15:46:31 +010065 <directory>../client-monitoring/target/classes/webapp</directory>
ramverma773cff12018-07-14 19:05:57 +010066 <includes>
67 <include>**/*.*</include>
68 </includes>
69 <targetPath>webapp/monitoring</targetPath>
70 </resource>
71 <resource>
liamfallona41c8772018-09-05 15:46:31 +010072 <directory>../client-editor/target/classes/webapp</directory>
ramverma773cff12018-07-14 19:05:57 +010073 <includes>
74 <include>**/*.*</include>
75 </includes>
76 <targetPath>webapp/editor</targetPath>
77 </resource>
78 <resource>
liamfallona41c8772018-09-05 15:46:31 +010079 <directory>../client-deployment/target/classes/webapp</directory>
ramverma773cff12018-07-14 19:05:57 +010080 <includes>
81 <include>**/*.*</include>
82 </includes>
83 <targetPath>webapp/deployment</targetPath>
84 </resource>
85 </resources>
86
87 <defaultGoal>install</defaultGoal>
88 <outputDirectory>${project.build.directory}/classes</outputDirectory>
89 <plugins>
90 <plugin>
91 <groupId>org.apache.maven.plugins</groupId>
liamfallona41c8772018-09-05 15:46:31 +010092 <artifactId>maven-dependency-plugin</artifactId>
93 <executions>
94 <execution>
95 <id>unpack-client-editor-shared-resources</id>
96 <goals>
97 <goal>unpack-dependencies</goal>
98 </goals>
99 <phase>generate-resources</phase>
100 <configuration>
101 <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
102 <includeArtifacIds>client-common</includeArtifacIds>
103 <includeGroupIds>${project.groupId}</includeGroupIds>
104 <excludeTransitive>true</excludeTransitive>
105 </configuration>
106 </execution>
107 </executions>
108 </plugin>
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
ramverma773cff12018-07-14 19:05:57 +0100111 <artifactId>maven-shade-plugin</artifactId>
112 <executions>
113 <execution>
114 <phase>package</phase>
115 <goals>
116 <goal>shade</goal>
117 </goals>
118 </execution>
119 </executions>
120 <configuration>
121 <finalName>${project.artifactId}-uber-${project.version}</finalName>
122 <shadedArtifactAttached>true</shadedArtifactAttached>
123 <shadedClassifierName>full</shadedClassifierName>
124 <artifactSet>
125 <includes>
126 <include>*:*</include>
127 </includes>
128 </artifactSet>
129 <filters>
130 <filter>
131 <artifact>*:*</artifact>
132 <excludes>
133 <exclude>META-INF/*.SF</exclude>
134 <exclude>META-INF/*.DSA</exclude>
135 <exclude>META-INF/*.RSA</exclude>
136 </excludes>
137 </filter>
138 </filters>
139 <transformers>
140 <transformer
141 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
142 <transformer
143 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
144 <resource>reference.conf</resource>
145 </transformer>
146 <transformer
147 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
148 <resource>log4j.properties</resource>
149 </transformer>
150 <transformer
151 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
152 <mainClass>org.onap.policy.apex.client.full.rest.ApexServicesRestMain</mainClass>
153 </transformer>
154 </transformers>
155 </configuration>
156 </plugin>
157 <plugin>
158 <groupId>org.apache.maven.plugins</groupId>
159 <artifactId>maven-war-plugin</artifactId>
160 <configuration>
161 <classifier>ui</classifier>
162 <warSourceDirectory>target/classes/webapp</warSourceDirectory>
163 <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
164 </configuration>
165 <executions>
166 <execution>
167 <phase>prepare-package</phase>
168 <goals>
169 <goal>war</goal>
170 </goals>
171 </execution>
172 </executions>
173 </plugin>
174 <plugin>
175 <groupId>org.codehaus.mojo</groupId>
176 <artifactId>build-helper-maven-plugin</artifactId>
177 <version>3.0.0</version>
178 <executions>
179 <execution>
180 <id>attach-artifacts</id>
181 <phase>package</phase>
182 <goals>
183 <goal>attach-artifact</goal>
184 </goals>
185 <configuration>
186 <artifacts>
187 <artifact>
188 <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
189 <type>war</type>
190 </artifact>
191 <artifact>
192 <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
193 <type>uber.jar</type>
194 </artifact>
195 </artifacts>
196 </configuration>
197 </execution>
198 </executions>
199 </plugin>
200 </plugins>
201 </build>
Dinh Danh Leba229772018-08-22 18:02:01 +0100202
203 <profiles>
204 <profile>
205 <id>apexSite</id>
206 <activation>
207 <property>
208 <name>apexSite</name>
209 </property>
210 </activation>
211 <distributionManagement>
212 <site>
213 <id>${project.artifactId}-site</id>
214 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
215 </site>
216 </distributionManagement>
217 </profile>
218 </profiles>
ramverma773cff12018-07-14 19:05:57 +0100219</project>