Roll master version for Istanbul
[ccsdk/features.git] / sdnr / wt / featureaggregator / 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.onap.ccsdk.parent</groupId>
31         <artifactId>odlparent-lite</artifactId>
32         <version>2.2.0-SNAPSHOT</version>
33         <relativePath/>
34     </parent>
35
36     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
37     <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
38     <version>1.2.0-SNAPSHOT</version>
39     <packaging>pom</packaging>
40
41     <name>ccsdk-features :: ${project.artifactId}</name>
42
43     <properties>
44     </properties>
45
46     <dependencies>
47         <dependency>
48             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
49             <artifactId>sdnr-wt-feature-aggregator</artifactId>
50             <version>${project.version}</version>
51             <type>xml</type>
52             <classifier>features</classifier>
53         </dependency>
54         <dependency>
55             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
56             <artifactId>sdnr-wt-feature-aggregator-devicemanager</artifactId>
57             <version>${project.version}</version>
58             <type>xml</type>
59             <classifier>features</classifier>
60         </dependency>
61         <dependency>
62             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
63             <artifactId>sdnr-wt-feature-aggregator-devicemanager-base</artifactId>
64             <version>${project.version}</version>
65             <type>xml</type>
66             <classifier>features</classifier>
67         </dependency>
68         <dependency>
69             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
70             <artifactId>sdnr-wt-feature-aggregator-oauth</artifactId>
71             <version>${project.version}</version>
72             <type>xml</type>
73             <classifier>features</classifier>
74         </dependency>
75     </dependencies>
76
77     <build>
78         <plugins>
79             <plugin>
80                 <artifactId>maven-assembly-plugin</artifactId>
81                 <executions>
82                     <execution>
83                         <id>maven-repo-zip</id>
84                         <goals>
85                             <goal>single</goal>
86                         </goals>
87                         <phase>package</phase>
88                         <configuration>
89                             <attach>true</attach>
90                             <finalName>stage/${application.name}-${project.version}</finalName>
91                             <descriptors>
92                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
93                             </descriptors>
94                             <appendAssemblyId>true</appendAssemblyId>
95                         </configuration>
96                     </execution>
97                 </executions>
98             </plugin>
99             <plugin>
100                 <groupId>org.apache.maven.plugins</groupId>
101                 <artifactId>maven-dependency-plugin</artifactId>
102                 <executions>
103                     <execution>
104                         <id>copy-nested-dependencies</id>
105                         <goals>
106                             <goal>copy-dependencies</goal>
107                         </goals>
108                         <phase>prepare-package</phase>
109                         <configuration>
110                             <transitive>true</transitive>
111                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
112                             <overWriteReleases>false</overWriteReleases>
113                             <overWriteSnapshots>true</overWriteSnapshots>
114                             <overWriteIfNewer>true</overWriteIfNewer>
115                             <useRepositoryLayout>true</useRepositoryLayout>
116                             <addParentPoms>false</addParentPoms>
117                             <copyPom>false</copyPom>
118                         </configuration>
119                     </execution>
120                     <execution>
121                         <!-- Copy yang schema preload for schema cache -->
122                         <id>unpack-cache-schema</id>
123                         <goals>
124                             <goal>unpack</goal>
125                         </goals>
126                         <phase>prepare-package</phase>
127                         <configuration>
128                             <artifactItems>
129                                 <artifactItem>
130                                     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
131                                     <artifactId>sdnr-wt-devicemanager-provider</artifactId>
132                                     <version>${project.version}</version>
133                                     <type>jar</type>
134                                     <includes>preload.cache.schema/**</includes>
135                                     <outputDirectory>${project.build.directory}/assembly</outputDirectory>
136                                 </artifactItem>
137                             </artifactItems>
138                         </configuration>
139                     </execution>
140                     <execution>
141                         <!-- Copy database initialization script -->
142                         <id>unpack-es-init</id>
143                         <phase>prepare-package</phase>
144                         <goals>
145                             <goal>unpack</goal>
146                         </goals>
147                         <configuration>
148                             <artifactItems>
149                                 <artifactItem>
150                                     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
151                                     <artifactId>sdnr-wt-data-provider-provider</artifactId>
152                                     <version>${project.version}</version>
153                                     <type>jar</type>
154                                     <includes>es-init.sh</includes>
155                                     <outputDirectory>${project.build.directory}/assembly/opt/onap/sdnc/bin</outputDirectory>
156                                 </artifactItem>
157                             </artifactItems>
158                         </configuration>
159                     </execution>
160                 </executions>
161             </plugin>
162             <plugin>
163                 <artifactId>maven-resources-plugin</artifactId>
164                 <version>2.6</version>
165                 <executions>
166                     <execution>
167                         <id>copy-sdnr-data-migration-tool</id>
168                         <goals>
169                             <goal>copy-resources</goal>
170                         </goals>
171                         <phase>validate</phase>
172                         <configuration>
173                             <outputDirectory>${project.build.directory}/assembly/system/org/onap/ccsdk/features/sdnr/wt/sdnr-wt-data-provider-setup/${project.version}</outputDirectory>
174                             <resources>
175                                 <resource>
176                                     <directory>${basedir}/../../data-provider/setup/target</directory>
177                                     <includes>
178                                         <include>sdnr-dmt.jar</include>
179                                     </includes>
180                                 </resource>
181                             </resources>
182                         </configuration>
183                     </execution>
184                 </executions>
185             </plugin>
186         </plugins>
187     </build>
188 </project>