b28b2f60c3fe35ad173a51f1188d4fae0632f662
[ccsdk/features.git] / sdnr / wt / apigateway / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk features
5   ~ ================================================================================
6   ~ Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
7   ~ ================================================================================
8   ~ Licensed under the Apache License, Version 2.0 (the "License");
9   ~ you may not use this file except in compliance with the License.
10   ~ You may obtain a copy of the License at
11   ~
12   ~     http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~ Unless required by applicable law or agreed to in writing, software
15   ~ distributed under the License is distributed on an "AS IS" BASIS,
16   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~ See the License for the specific language governing permissions and
18   ~ limitations under the License.
19   ~ ============LICENSE_END=======================================================
20   ~
21   -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>
24
25     <parent>
26         <groupId>org.onap.ccsdk.parent</groupId>
27         <artifactId>odlparent-lite</artifactId>
28         <version>2.3.3</version>
29         <relativePath/>
30     </parent>
31
32     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
33     <artifactId>sdnr-wt-apigateway-installer</artifactId>
34     <version>1.3.1-SNAPSHOT</version>
35     <packaging>pom</packaging>
36
37     <name>ccsdk-features :: ${project.artifactId}</name>
38
39     <properties>
40         <application.name>sdnr-wt-apigateway</application.name>
41         <include.transitive.dependencies>false</include.transitive.dependencies>
42     </properties>
43
44     <dependencies>
45
46         <dependency>
47             <groupId>${project.groupId}</groupId>
48             <artifactId>${application.name}-feature</artifactId>
49             <version>${project.version}</version>
50             <type>xml</type>
51             <classifier>features</classifier>
52             <exclusions>
53                 <exclusion>
54                     <groupId>*</groupId>
55                     <artifactId>*</artifactId>
56                 </exclusion>
57             </exclusions>
58         </dependency>
59         <dependency>
60             <groupId>${project.groupId}</groupId>
61             <artifactId>${application.name}-provider</artifactId>
62             <version>${project.version}</version>
63         </dependency>
64
65     </dependencies>
66
67     <build>
68         <plugins>
69             <plugin>
70                 <artifactId>maven-assembly-plugin</artifactId>
71                 <executions>
72                     <execution>
73                         <id>maven-repo-zip</id>
74                         <goals>
75                             <goal>single</goal>
76                         </goals>
77                         <phase>package</phase>
78                         <configuration>
79                             <attach>true</attach>
80                             <finalName>stage/${application.name}-${project.version}</finalName>
81                             <descriptors>
82                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
83                             </descriptors>
84                             <appendAssemblyId>true</appendAssemblyId>
85                         </configuration>
86                     </execution>
87                 </executions>
88             </plugin>
89             <plugin>
90                 <groupId>org.apache.maven.plugins</groupId>
91                 <artifactId>maven-dependency-plugin</artifactId>
92                 <executions>
93                     <execution>
94                         <id>copy-nested-dependencies</id>
95                         <goals>
96                             <goal>copy-dependencies</goal>
97                         </goals>
98                         <phase>prepare-package</phase>
99                         <configuration>
100                             <transitive>true</transitive>
101                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
102                             <overWriteReleases>false</overWriteReleases>
103                             <overWriteSnapshots>true</overWriteSnapshots>
104                             <overWriteIfNewer>true</overWriteIfNewer>
105                             <useRepositoryLayout>true</useRepositoryLayout>
106                             <addParentPoms>false</addParentPoms>
107                             <copyPom>false</copyPom>
108                         </configuration>
109                     </execution>
110                 </executions>
111             </plugin>
112         </plugins>
113     </build>
114 </project>