Bump version in apex-pdp master
[policy/apex-pdp.git] / client / client-full / pom.xml
1 <!--
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.3.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
55
56         <dependency>
57             <groupId>org.onap.policy.apex-pdp.client</groupId>
58             <artifactId>client-monitoring</artifactId>
59             <version>${project.version}</version>
60             <classifier>resources</classifier>
61             <type>zip</type>
62             <scope>provided</scope>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.policy.apex-pdp.client</groupId>
66             <artifactId>client-deployment</artifactId>
67             <version>${project.version}</version>
68             <classifier>resources</classifier>
69             <type>zip</type>
70             <scope>provided</scope>
71         </dependency>
72         <dependency>
73             <groupId>org.onap.policy.apex-pdp.client</groupId>
74             <artifactId>client-editor</artifactId>
75             <version>${project.version}</version>
76             <classifier>resources</classifier>
77             <type>zip</type>
78             <scope>provided</scope>
79         </dependency>
80         <dependency>
81             <groupId>org.assertj</groupId>
82             <artifactId>assertj-core</artifactId>
83             <scope>test</scope>
84         </dependency>
85
86
87
88     </dependencies>
89
90     <build>
91 <!--
92         <resources>
93             <resource>
94                 <directory>src/main/resources</directory>
95                 <includes>
96                     <include>webapp/**/*.*</include>
97                 </includes>
98             </resource>
99         </resources>
100 -->
101         <defaultGoal>install</defaultGoal>
102         <outputDirectory>${project.build.directory}/classes</outputDirectory>
103         <plugins>
104
105 <!-- https://blog.sonatype.com/2008/04/how-to-share-resources-across-projects-in-maven/ -->
106             <plugin>
107                 <groupId>org.apache.maven.plugins</groupId>
108                 <artifactId>maven-dependency-plugin</artifactId>
109                 <executions>
110                     <execution>
111                         <id>unpack-MONITOR-resources</id>
112                         <goals>
113                             <goal>unpack-dependencies</goal>
114                         </goals>
115                         <phase>generate-resources</phase>
116                         <configuration>
117                             <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
118        <!--use as much as needed to be specific...also scope,type,classifier etc-->
119                             <includeGroupIds>org.onap.policy.apex-pdp.client</includeGroupIds>
120                             <includeArtifacIds>client-monitoring, client-deployment, client-editor</includeArtifacIds>
121                             <excludeTransitive>true</excludeTransitive>
122                             <excludeTypes>jar</excludeTypes>
123                             <includeTypes>zip</includeTypes>
124                             <scope>provided</scope>
125                         </configuration>
126                     </execution>
127                 </executions>
128             </plugin>
129
130             <plugin>
131                 <groupId>org.apache.maven.plugins</groupId>
132                 <artifactId>maven-shade-plugin</artifactId>
133                 <executions>
134                     <execution>
135                         <phase>package</phase>
136                         <goals>
137                             <goal>shade</goal>
138                         </goals>
139                     </execution>
140                 </executions>
141                 <configuration>
142                     <finalName>${project.artifactId}-uber-${project.version}</finalName>
143                     <shadedArtifactAttached>true</shadedArtifactAttached>
144                     <shadedClassifierName>full</shadedClassifierName>
145                     <artifactSet>
146                         <includes>
147                             <include>*:*</include>
148                         </includes>
149                     </artifactSet>
150                     <filters>
151                         <filter>
152                             <artifact>*:*</artifact>
153                             <excludes>
154                                 <exclude>META-INF/*.SF</exclude>
155                                 <exclude>META-INF/*.DSA</exclude>
156                                 <exclude>META-INF/*.RSA</exclude>
157                             </excludes>
158                         </filter>
159                     </filters>
160                     <transformers>
161                         <transformer
162                             implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
163                         <transformer
164                             implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
165                             <resource>reference.conf</resource>
166                         </transformer>
167                         <transformer
168                             implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
169                             <resource>log4j.properties</resource>
170                         </transformer>
171                         <transformer
172                             implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
173                             <mainClass>org.onap.policy.apex.client.full.rest.ApexServicesRestMain</mainClass>
174                         </transformer>
175                     </transformers>
176                 </configuration>
177             </plugin>
178             <plugin>
179                 <groupId>org.apache.maven.plugins</groupId>
180                 <artifactId>maven-war-plugin</artifactId>
181                 <configuration>
182                     <classifier>ui</classifier>
183                     <warSourceDirectory>target/classes/webapp</warSourceDirectory>
184                     <webXml>src/main/resources/webapp/WEB-INF/web.xml</webXml>
185                 </configuration>
186                 <executions>
187                     <execution>
188                         <phase>prepare-package</phase>
189                         <goals>
190                             <goal>war</goal>
191                         </goals>
192                     </execution>
193                 </executions>
194             </plugin>
195             <plugin>
196                 <groupId>org.codehaus.mojo</groupId>
197                 <artifactId>build-helper-maven-plugin</artifactId>
198                 <version>3.0.0</version>
199                 <executions>
200                     <execution>
201                         <id>attach-artifacts</id>
202                         <phase>package</phase>
203                         <goals>
204                             <goal>attach-artifact</goal>
205                         </goals>
206                         <configuration>
207                             <artifacts>
208                                 <artifact>
209                                     <file>${project.build.directory}/${project.artifactId}-${project.version}-ui.war</file>
210                                     <type>war</type>
211                                 </artifact>
212                                 <artifact>
213                                     <file>${project.build.directory}/${project.artifactId}-uber-${project.version}.jar</file>
214                                     <type>uber.jar</type>
215                                 </artifact>
216                             </artifacts>
217                         </configuration>
218                     </execution>
219                 </executions>
220             </plugin>
221         </plugins>
222     </build>
223
224     <profiles>
225         <profile>
226             <id>only-eclipse</id>
227             <activation>
228                 <property>
229                     <name>m2e.version</name>
230                 </property>
231             </activation>
232             <build>
233                 <pluginManagement>
234                     <plugins>
235                         <plugin>
236                             <groupId>org.eclipse.m2e</groupId>
237                             <artifactId>lifecycle-mapping</artifactId>
238                             <version>1.0.0</version>
239                             <configuration>
240                                 <lifecycleMappingMetadata>
241                                     <pluginExecutions>
242                                         <pluginExecution>
243                                             <pluginExecutionFilter>
244                                                 <groupId>org.apache.maven.plugins</groupId>
245                                                 <artifactId>maven-dependency-plugin</artifactId>
246                                                 <versionRange>[2.0,)</versionRange>
247                                                 <goals>
248                                                     <goal>unpack-dependencies</goal>
249                                                 </goals>
250                                             </pluginExecutionFilter>
251                                             <action>
252                                                 <ignore />
253                                             </action>
254                                         </pluginExecution>
255                                     </pluginExecutions>
256                                 </lifecycleMappingMetadata>
257                             </configuration>
258                         </plugin>
259                     </plugins>
260                 </pluginManagement>
261             </build>
262         </profile>
263
264         <profile>
265             <id>apexSite</id>
266             <activation>
267                 <property>
268                     <name>apexSite</name>
269                 </property>
270             </activation>
271             <distributionManagement>
272                 <site>
273                     <id>${project.artifactId}-site</id>
274                     <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
275                 </site>
276             </distributionManagement>
277         </profile>
278     </profiles>
279 </project>