blob: 3913f5ee26bebeee746e94f7ea0914f6ae277d87 [file] [log] [blame]
Lathishb6fe5a12019-10-09 10:32:09 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
RehanRaza553523f2019-11-12 13:39:40 +01004 Copyright (C) 2019 Nordix Foundation.
Lathishb6fe5a12019-10-09 10:32:09 +01005 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
20-->
21<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">
22 <modelVersion>4.0.0</modelVersion>
23
24 <parent>
25 <groupId>org.onap.ccsdk.parent</groupId>
26 <artifactId>odlparent-lite</artifactId>
RehanRaza9d400d12020-05-06 12:23:27 +020027 <version>1.5.1</version>
Lathishb6fe5a12019-10-09 10:32:09 +010028 <relativePath/>
29 </parent>
30
RehanRaza348cb852020-04-27 16:20:26 +020031 <groupId>org.o-ran-sc.nonrtric.sdnc-a1.northbound</groupId>
Lathishb6fe5a12019-10-09 10:32:09 +010032 <artifactId>nonrt-ric-api-installer</artifactId>
elinuxhenrik1fe09852020-07-27 13:06:03 +020033 <version>2.1.0-SNAPSHOT</version>
Lathishb6fe5a12019-10-09 10:32:09 +010034 <packaging>pom</packaging>
35
RehanRaza348cb852020-04-27 16:20:26 +020036 <name>sdnc-a1-northbound :: nonrt-ric-api :: ${project.artifactId}</name>
Lathishb6fe5a12019-10-09 10:32:09 +010037
38 <properties>
39 <application.name>sdnc-nonrt-ric-api</application.name>
40 <features.boot>${application.name}</features.boot>
RehanRaza348cb852020-04-27 16:20:26 +020041 <features.repositories>mvn:org.o-ran-sc.nonrtric.sdnc-a1.northbound/${application.name}/${project.version}/xml/features</features.repositories>
Lathishb6fe5a12019-10-09 10:32:09 +010042 <include.transitive.dependencies>false</include.transitive.dependencies>
43 </properties>
44
45 <dependencies>
46
47 <dependency>
RehanRaza348cb852020-04-27 16:20:26 +020048 <groupId>org.o-ran-sc.nonrtric.sdnc-a1.northbound</groupId>
Lathishb6fe5a12019-10-09 10:32:09 +010049 <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
61 <dependency>
RehanRaza348cb852020-04-27 16:20:26 +020062 <groupId>org.o-ran-sc.nonrtric.sdnc-a1.northbound</groupId>
Lathishb6fe5a12019-10-09 10:32:09 +010063 <artifactId>nonrt-ric-api-provider</artifactId>
64 <version>${project.version}</version>
65 </dependency>
66
67
68 </dependencies>
69
70 <build>
71 <plugins>
72 <plugin>
73 <artifactId>maven-assembly-plugin</artifactId>
74 <version>2.6</version>
75 <executions>
76 <execution>
77 <id>maven-repo-zip</id>
78 <goals>
79 <goal>single</goal>
80 </goals>
81 <phase>package</phase>
82 <configuration>
83 <attach>true</attach>
84 <finalName>stage/${application.name}-${project.version}</finalName>
85 <descriptors>
86 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
87 </descriptors>
88 </configuration>
89 </execution>
90 <execution>
91 <id>installer-zip</id>
92 <goals>
93 <goal>single</goal>
94 </goals>
95 <phase>package</phase>
96 <configuration>
97 <attach>true</attach>
98 <finalName>${application.name}-${project.version}-installer</finalName>
99 <descriptors>
100 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
101 </descriptors>
102 <appendAssemblyId>false</appendAssemblyId>
103 </configuration>
104 </execution>
105 </executions>
106 </plugin>
107 <plugin>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-dependency-plugin</artifactId>
110 <executions>
111 <execution>
112 <id>copy-dependencies</id>
113 <goals>
114 <goal>copy-dependencies</goal>
115 </goals>
116 <phase>prepare-package</phase>
117 <configuration>
118 <transitive>false</transitive>
119 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
120 <overWriteReleases>false</overWriteReleases>
121 <overWriteSnapshots>true</overWriteSnapshots>
122 <overWriteIfNewer>true</overWriteIfNewer>
123 <useRepositoryLayout>true</useRepositoryLayout>
124 <addParentPoms>false</addParentPoms>
125 <copyPom>false</copyPom>
RehanRaza348cb852020-04-27 16:20:26 +0200126 <includeGroupIds>org.o-ran-sc.nonrtric.sdnc-a1.northbound</includeGroupIds>
Lathishb6fe5a12019-10-09 10:32:09 +0100127 <scope>provided</scope>
128 </configuration>
129 </execution>
130 </executions>
131 </plugin>
132 <plugin>
133 <artifactId>maven-resources-plugin</artifactId>
134 <version>2.6</version>
135 <executions>
136 <execution>
137 <id>copy-version</id>
138 <goals>
139 <goal>copy-resources</goal>
140 </goals><!-- here the phase you need -->
141 <phase>validate</phase>
142 <configuration>
143 <outputDirectory>${basedir}/target/stage</outputDirectory>
144 <resources>
145 <resource>
146 <directory>src/main/resources/scripts</directory>
147 <includes>
148 <include>install-feature.sh</include>
149 </includes>
150 <filtering>true</filtering>
151 </resource>
152 </resources>
153 </configuration>
154 </execution>
155
156 </executions>
157 </plugin>
158
159 </plugins>
160 </build>
161</project>