Add new feature to register cmhandle in CPS
[ccsdk/features.git] / sdnr / northbound / addCMHandle / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk features
5   ~ ================================================================================
6   ~ Copyright (C) 2021 Wipro Limited.
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
23 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.ccsdk.parent</groupId>
28         <artifactId>odlparent-lite</artifactId>
29         <version>2.2.0-SNAPSHOT</version>
30         <relativePath/>
31     </parent>
32
33     <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
34     <artifactId>addCMHandle-installer</artifactId>
35     <version>1.0.0-SNAPSHOT</version>
36     <packaging>pom</packaging>
37
38     <name>ccsdk-features :: sdnr-northbound :: ${project.artifactId}</name>
39
40     <properties>
41         <application.name>addCMHandle</application.name>
42         <include.transitive.dependencies>false</include.transitive.dependencies>
43     </properties>
44
45     <dependencies>
46         <dependency>
47             <groupId>org.opendaylight.controller</groupId>
48             <artifactId>sal-binding-broker-impl</artifactId>
49             <version>1.11.3</version>
50             <scope>test</scope>
51         </dependency>
52         <dependency>
53             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
54             <artifactId>addCMHandle-feature</artifactId>
55             <version>${project.version}</version>
56             <type>xml</type>
57             <classifier>features</classifier>
58             <exclusions>
59                 <exclusion>
60                     <groupId>*</groupId>
61                     <artifactId>*</artifactId>
62                 </exclusion>
63             </exclusions>
64         </dependency>
65         <dependency>
66             <groupId>${project.groupId}</groupId>
67             <artifactId>addCMHandle-provider</artifactId>
68             <version>${project.version}</version>
69         </dependency>
70     </dependencies>
71
72     <build>
73         <plugins>
74             <plugin>
75                 <artifactId>maven-assembly-plugin</artifactId>
76                 <executions>
77                     <execution>
78                         <id>maven-repo-zip</id>
79                         <goals>
80                             <goal>single</goal>
81                         </goals>
82                         <phase>package</phase>
83                         <configuration>
84                             <attach>true</attach>
85                             <finalName>stage/${application.name}-${project.version}</finalName>
86                             <descriptors>
87                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
88                             </descriptors>
89                             <appendAssemblyId>true</appendAssemblyId>
90                         </configuration>
91                     </execution>
92                 </executions>
93             </plugin>
94             <plugin>
95                 <groupId>org.apache.maven.plugins</groupId>
96                 <artifactId>maven-dependency-plugin</artifactId>
97                 <executions>
98                     <execution>
99                         <id>copy-dependencies</id>
100                         <goals>
101                             <goal>copy-dependencies</goal>
102                         </goals>
103                         <phase>prepare-package</phase>
104                         <configuration>
105                             <transitive>false</transitive>
106                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
107                             <overWriteReleases>false</overWriteReleases>
108                             <overWriteSnapshots>true</overWriteSnapshots>
109                             <overWriteIfNewer>true</overWriteIfNewer>
110                             <useRepositoryLayout>true</useRepositoryLayout>
111                             <addParentPoms>false</addParentPoms>
112                             <copyPom>false</copyPom>
113                             <includeArtifactIds>addCMHandle-model,addCMHandle-provider,addCMHandle-feature</includeArtifactIds>
114                             <scope>provided</scope>
115                         </configuration>
116                     </execution>
117                 </executions>
118             </plugin>
119         </plugins>
120     </build>
121 </project>