Release version 1.3.1
[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 <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">
26     <modelVersion>4.0.0</modelVersion>
27
28     <parent>
29         <groupId>org.onap.ccsdk.parent</groupId>
30         <artifactId>odlparent-lite</artifactId>
31         <version>2.3.3</version>
32         <relativePath/>
33     </parent>
34
35     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
36     <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
37     <version>1.3.2-SNAPSHOT</version>
38     <packaging>pom</packaging>
39
40     <name>ccsdk-features :: ${project.artifactId}</name>
41
42     <properties>
43         <application.name>sdnr-wt-installer</application.name>
44     </properties>
45
46     <dependencies>
47         <dependency>
48             <groupId>${project.groupId}</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>${project.groupId}</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>${project.groupId}</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>${project.groupId}</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         <dependency>
76             <groupId>${project.groupId}</groupId>
77             <artifactId>sdnr-wt-data-provider-setup</artifactId>
78             <version>${project.version}</version>
79         </dependency>
80         <dependency>
81             <groupId>${project.groupId}</groupId>
82             <artifactId>sdnr-wt-odlux-installer</artifactId>
83             <version>${project.version}</version>
84             <type>zip</type>
85             <classifier>repo</classifier>
86         </dependency>
87     </dependencies>
88
89     <build>
90         <plugins>
91             <plugin>
92                 <artifactId>maven-assembly-plugin</artifactId>
93                 <executions>
94                     <execution>
95                         <id>maven-repo-zip</id>
96                         <goals>
97                             <goal>single</goal>
98                         </goals>
99                         <phase>package</phase>
100                         <configuration>
101                             <attach>true</attach>
102                             <finalName>stage/${application.name}-${project.version}</finalName>
103                             <descriptors>
104                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
105                             </descriptors>
106                             <appendAssemblyId>true</appendAssemblyId>
107                         </configuration>
108                     </execution>
109                 </executions>
110             </plugin>
111             <plugin>
112                 <groupId>org.apache.maven.plugins</groupId>
113                 <artifactId>maven-dependency-plugin</artifactId>
114                 <executions>
115                     <execution>
116                         <id>copy-nested-dependencies</id>
117                         <goals>
118                             <goal>copy-dependencies</goal>
119                         </goals>
120                         <phase>prepare-package</phase>
121                         <configuration>
122                             <transitive>true</transitive>
123                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
124                             <overWriteReleases>false</overWriteReleases>
125                             <overWriteSnapshots>true</overWriteSnapshots>
126                             <overWriteIfNewer>true</overWriteIfNewer>
127                             <useRepositoryLayout>true</useRepositoryLayout>
128                             <addParentPoms>false</addParentPoms>
129                             <copyPom>false</copyPom>
130                         </configuration>
131                     </execution>
132                     <execution>
133                         <!-- Copy yang schema preload for schema cache -->
134                         <id>unpack-cache-schema</id>
135                         <goals>
136                             <goal>unpack</goal>
137                         </goals>
138                         <phase>prepare-package</phase>
139                         <configuration>
140                             <artifactItems>
141                                 <artifactItem>
142                                     <groupId>${project.groupId}</groupId>
143                                     <artifactId>sdnr-wt-devicemanager-core-model</artifactId>
144                                     <version>${project.version}</version>
145                                     <type>jar</type>
146                                     <includes>preload.cache.schema/**</includes>
147                                     <outputDirectory>${project.build.directory}/assembly</outputDirectory>
148                                 </artifactItem>
149                             </artifactItems>
150                         </configuration>
151                     </execution>
152                     <execution>
153                         <!-- Copy database initialization script -->
154                         <id>unpack-es-init</id>
155                         <phase>prepare-package</phase>
156                         <goals>
157                             <goal>unpack</goal>
158                         </goals>
159                         <configuration>
160                             <artifactItems>
161                                 <artifactItem>
162                                     <groupId>${project.groupId}</groupId>
163                                     <artifactId>sdnr-wt-data-provider-provider</artifactId>
164                                     <version>${project.version}</version>
165                                     <type>jar</type>
166                                     <includes>es-init.sh</includes>
167                                     <outputDirectory>${project.build.directory}/assembly/opt/onap/sdnc/bin</outputDirectory>
168                                 </artifactItem>
169                             </artifactItems>
170                         </configuration>
171                     </execution>
172                 </executions>
173             </plugin>
174         </plugins>
175     </build>
176 </project>