Fixing package naming to fix MANIFEST.MF
[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.0.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.0.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     </dependencies>
62
63     <build>
64         <plugins>
65             <plugin>
66                 <artifactId>maven-assembly-plugin</artifactId>
67                 <executions>
68                     <execution>
69                         <id>maven-repo-zip</id>
70                         <goals>
71                             <goal>single</goal>
72                         </goals>
73                         <phase>package</phase>
74                         <configuration>
75                             <attach>true</attach>
76                             <finalName>stage/${application.name}-${project.version}</finalName>
77                             <descriptors>
78                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
79                             </descriptors>
80                             <appendAssemblyId>true</appendAssemblyId>
81                         </configuration>
82                     </execution>
83                 </executions>
84             </plugin>
85             <plugin>
86                 <groupId>org.apache.maven.plugins</groupId>
87                 <artifactId>maven-dependency-plugin</artifactId>
88                 <executions>
89                     <execution>
90                         <id>copy-nested-dependencies</id>
91                         <goals>
92                             <goal>copy-dependencies</goal>
93                         </goals>
94                         <phase>prepare-package</phase>
95                         <configuration>
96                             <transitive>true</transitive>
97                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
98                             <overWriteReleases>false</overWriteReleases>
99                             <overWriteSnapshots>true</overWriteSnapshots>
100                             <overWriteIfNewer>true</overWriteIfNewer>
101                             <useRepositoryLayout>true</useRepositoryLayout>
102                             <addParentPoms>false</addParentPoms>
103                             <copyPom>false</copyPom>
104                         </configuration>
105                     </execution>
106                     <execution>
107                         <!-- Copy yang schema preload for schema cache -->
108                         <id>unpack-cache-schema</id>
109                         <goals>
110                             <goal>unpack</goal>
111                         </goals>
112                         <phase>prepare-package</phase>
113                         <configuration>
114                             <artifactItems>
115                                 <artifactItem>
116                                     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
117                                     <artifactId>sdnr-wt-devicemanager-provider</artifactId>
118                                     <version>${project.version}</version>
119                                     <type>jar</type>
120                                     <includes>preload.cache.schema/**</includes>
121                                     <outputDirectory>${project.build.directory}/assembly</outputDirectory>
122                                 </artifactItem>
123                             </artifactItems>
124                         </configuration>
125                     </execution>
126                     <execution>
127                         <!-- Copy database initialization script -->
128                         <id>unpack-es-init</id>
129                         <phase>prepare-package</phase>
130                         <goals>
131                             <goal>unpack</goal>
132                         </goals>
133                         <configuration>
134                             <artifactItems>
135                                 <artifactItem>
136                                     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
137                                     <artifactId>sdnr-wt-data-provider-provider</artifactId>
138                                     <version>${project.version}</version>
139                                     <type>jar</type>
140                                     <includes>es-init.sh</includes>
141                                     <outputDirectory>${project.build.directory}/assembly/opt/onap/sdnc/bin</outputDirectory>
142                                 </artifactItem>
143                             </artifactItems>
144                         </configuration>
145                     </execution>
146                 </executions>
147             </plugin>
148             <plugin>
149                 <artifactId>maven-resources-plugin</artifactId>
150                 <version>2.6</version>
151                 <executions>
152                     <execution>
153                         <id>copy-sdnr-data-migration-tool</id>
154                         <goals>
155                             <goal>copy-resources</goal>
156                         </goals>
157                         <phase>validate</phase>
158                         <configuration>
159                             <outputDirectory>${project.build.directory}/assembly/system/org/onap/ccsdk/features/sdnr/wt/sdnr-wt-data-provider-setup/${project.version}</outputDirectory>
160                             <resources>
161                                 <resource>
162                                     <directory>${basedir}/../../data-provider/setup/target</directory>
163                                     <includes>
164                                         <include>sdnr-dmt.jar</include>
165                                     </includes>
166                                 </resource>
167                             </resources>
168                         </configuration>
169                     </execution>
170                 </executions>
171             </plugin>
172         </plugins>
173     </build>
174 </project>