Use phosphorus version of parents
[ccsdk/oran.git] / a1-adapter / features / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk oran
5   ~ ================================================================================
6   ~ Copyright (C) 2020 Nordix Foundation. 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-SNAPSHOT</version>
29         <relativePath/>
30     </parent>
31
32     <groupId>org.onap.ccsdk.oran</groupId>
33     <artifactId>a1-adapter-northbound-installer</artifactId>
34     <version>1.3.0-SNAPSHOT</version>
35     <packaging>pom</packaging>
36
37     <name>ccsdk-oran :: ${project.artifactId}</name>
38
39     <properties>
40         <application.name>a1-adapter-northbound</application.name>
41         <features.boot>${application.name}</features.boot>
42         <features.repositories>mvn:org.onap.ccsdk.oran/${features.boot}/${project.version}/xml/features</features.repositories>
43         <include.transitive.dependencies>false</include.transitive.dependencies>
44     </properties>
45
46     <dependencies>
47         <dependency>
48             <groupId>org.onap.ccsdk.oran</groupId>
49             <artifactId>${application.name}</artifactId>
50             <version>${project.version}</version>
51             <type>xml</type>
52             <classifier>features</classifier>
53             <exclusions>
54                 <exclusion>
55                     <groupId>*</groupId>
56                     <artifactId>*</artifactId>
57                 </exclusion>
58             </exclusions>
59         </dependency>
60     </dependencies>
61
62     <build>
63         <plugins>
64             <plugin>
65                 <groupId>org.apache.maven.plugins</groupId>
66                 <artifactId>maven-dependency-plugin</artifactId>
67                 <executions>
68                     <execution>
69                         <id>copy-dependencies</id>
70                         <goals>
71                             <goal>copy-dependencies</goal>
72                         </goals>
73                         <phase>prepare-package</phase>
74                         <configuration>
75                             <transitive>false</transitive>
76                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
77                             <overWriteReleases>false</overWriteReleases>
78                             <overWriteSnapshots>true</overWriteSnapshots>
79                             <overWriteIfNewer>true</overWriteIfNewer>
80                             <useRepositoryLayout>true</useRepositoryLayout>
81                             <addParentPoms>false</addParentPoms>
82                             <copyPom>false</copyPom>
83                             <includeGroupIds>org.onap.ccsdk.oran</includeGroupIds>
84                             <scope>provided</scope>
85                         </configuration>
86                     </execution>
87                 </executions>
88             </plugin>
89             <plugin>
90                 <artifactId>maven-assembly-plugin</artifactId>
91                 <executions>
92                     <execution>
93                         <id>maven-repo-zip</id>
94                         <goals>
95                             <goal>single</goal>
96                         </goals>
97                         <phase>package</phase>
98                         <configuration>
99                             <attach>true</attach>
100                             <finalName>stage/${application.name}-${project.version}</finalName>
101                             <descriptors>
102                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
103                             </descriptors>
104                             <appendAssemblyId>true</appendAssemblyId>
105                         </configuration>
106                     </execution>
107                 </executions>
108             </plugin>
109         </plugins>
110     </build>
111 </project>