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