Merge "Step version for release"
[nonrtric.git] / sdnc-a1-controller / northbound / nonrt-ric-api / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4    Copyright (C) 2019 Nordix Foundation.
5   ================================================================================
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>
27                 <version>1.5.1</version>
28                 <relativePath/>
29         </parent>
30
31         <groupId>org.o-ran-sc.nonrtric.sdnc-a1.northbound</groupId>
32         <artifactId>nonrt-ric-api-installer</artifactId>
33         <version>2.0.0-SNAPSHOT</version>
34         <packaging>pom</packaging>
35
36         <name>sdnc-a1-northbound :: nonrt-ric-api :: ${project.artifactId}</name>
37
38         <properties>
39                 <application.name>sdnc-nonrt-ric-api</application.name>
40                 <features.boot>${application.name}</features.boot>
41                 <features.repositories>mvn:org.o-ran-sc.nonrtric.sdnc-a1.northbound/${application.name}/${project.version}/xml/features</features.repositories>
42                 <include.transitive.dependencies>false</include.transitive.dependencies>
43         </properties>
44
45         <dependencies>
46
47                 <dependency>
48                         <groupId>org.o-ran-sc.nonrtric.sdnc-a1.northbound</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
61                 <dependency>
62                         <groupId>org.o-ran-sc.nonrtric.sdnc-a1.northbound</groupId>
63                         <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>
126                                                         <includeGroupIds>org.o-ran-sc.nonrtric.sdnc-a1.northbound</includeGroupIds>
127                                                         <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>