Refactoring multiple plugins
[ccsdk/features.git] / sdnr / wt / featureaggregator / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * ============LICENSE_START=======================================================
4  * ONAP : CCSDK.feature.sdnr.wt
5  * ================================================================================
6  * Copyright (C) 2018 highstreet technologies GmbH Intellectual Property.
7  * All rights reserved.
8  * ================================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=========================================================
21 -->
22 <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">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.ccsdk.parent</groupId>
27         <artifactId>odlparent-lite</artifactId>
28         <version>1.5.1-SNAPSHOT</version>
29         <relativePath/>
30     </parent>
31
32     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
33     <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
34     <version>0.7.0-SNAPSHOT</version>
35     <packaging>pom</packaging>
36
37     <name>ccsdk-features :: ${project.artifactId}</name>
38
39     <properties>
40         <application.name>sdnr-wt-feature-aggregator</application.name>
41         <include.transitive.dependencies>true</include.transitive.dependencies>
42         <ccsdk.features.version>${project.version}</ccsdk.features.version>
43     </properties>
44
45     <dependencyManagement>
46         <dependencies>
47             <dependency>
48                 <groupId>org.opendaylight.controller</groupId>
49                 <artifactId>mdsal-artifacts</artifactId>
50                 <version>${odl.controller.mdsal.version}</version>
51                 <type>pom</type>
52                 <scope>import</scope>
53             </dependency>
54         </dependencies>
55     </dependencyManagement>
56     <dependencies>
57         <dependency>
58             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
59             <artifactId>${application.name}</artifactId>
60             <version>${project.version}</version>
61             <type>xml</type>
62             <classifier>features</classifier>
63             <!--       <exclusions> -->
64             <!--         <exclusion> -->
65             <!--           <groupId>*</groupId> -->
66             <!--           <artifactId>*</artifactId> -->
67             <!--         </exclusion> -->
68             <!--       </exclusions> -->
69         </dependency>
70         <!-- https://mvnrepository.com/artifact/org.yaml/snakeyaml -->
71     </dependencies>
72
73     <build>
74         <plugins>
75             <plugin>
76                 <artifactId>maven-assembly-plugin</artifactId>
77                 <executions>
78                     <execution>
79                         <id>maven-repo-zip</id>
80                         <goals>
81                             <goal>single</goal>
82                         </goals>
83                         <phase>package</phase>
84                         <configuration>
85                             <attach>true</attach>
86                             <finalName>stage/${application.name}-${project.version}</finalName>
87                             <descriptors>
88                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
89                             </descriptors>
90                             <appendAssemblyId>true</appendAssemblyId>
91                         </configuration>
92                     </execution>
93                 </executions>
94             </plugin>
95             <plugin>
96                 <groupId>org.apache.maven.plugins</groupId>
97                 <artifactId>maven-dependency-plugin</artifactId>
98                 <executions>
99                     <!--           <execution> -->
100                     <!--             <id>copy-dependencies</id> -->
101                     <!--             <goals> -->
102                     <!--               <goal>copy-dependencies</goal> -->
103                     <!--             </goals> -->
104                     <!--             <phase>prepare-package</phase> -->
105                     <!--             <configuration> -->
106                     <!--               <transitive>false</transitive> -->
107                     <!--               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory> -->
108                     <!--               <overWriteReleases>false</overWriteReleases> -->
109                     <!--               <overWriteSnapshots>true</overWriteSnapshots> -->
110                     <!--               <overWriteIfNewer>true</overWriteIfNewer> -->
111                     <!--               <useRepositoryLayout>true</useRepositoryLayout> -->
112                     <!--               <addParentPoms>false</addParentPoms> -->
113                     <!--               <copyPom>false</copyPom> -->
114                     <!--               <includeArtifactIds>${application.name}-model,${application.name}-provider,${application.name}</includeArtifactIds> -->
115                     <!--               <scope>provided</scope> -->
116                     <!--             </configuration> -->
117                     <!--           </execution> -->
118                     <execution>
119                         <id>copy-nested-dependencies</id>
120                         <goals>
121                             <goal>copy-dependencies</goal>
122                         </goals>
123                         <phase>prepare-package</phase>
124                         <configuration>
125                             <transitive>true</transitive>
126                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
127                             <overWriteReleases>false</overWriteReleases>
128                             <overWriteSnapshots>true</overWriteSnapshots>
129                             <overWriteIfNewer>true</overWriteIfNewer>
130                             <useRepositoryLayout>true</useRepositoryLayout>
131                             <addParentPoms>false</addParentPoms>
132                             <copyPom>false</copyPom>
133                         </configuration>
134                     </execution>
135                     <execution>
136                         <!-- Copy yang schema preload for schema cache -->
137                         <id>unpack-cache-schema</id>
138                         <goals>
139                             <goal>unpack</goal>
140                         </goals>
141                         <phase>prepare-package</phase>
142                         <configuration>
143                             <artifactItems>
144                                 <artifactItem>
145                                     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
146                                     <artifactId>sdnr-wt-devicemanager-provider</artifactId>
147                                     <version>${project.version}</version>
148                                     <type>jar</type>
149                                     <includes>preload.cache.schema/**</includes>
150                                     <outputDirectory>${project.build.directory}/assembly</outputDirectory>
151                                 </artifactItem>
152                             </artifactItems>
153                         </configuration>
154                     </execution>
155                     <execution>
156                         <!-- Copy database initialization script -->
157                         <id>unpack-es-init</id>
158                         <phase>prepare-package</phase>
159                         <goals>
160                             <goal>unpack</goal>
161                         </goals>
162                         <configuration>
163                             <artifactItems>
164                                 <artifactItem>
165                                     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
166                                     <artifactId>sdnr-wt-data-provider-database</artifactId>
167                                     <version>${project.version}</version>
168                                     <type>jar</type>
169                                     <includes>es-init.sh</includes>
170                                     <outputDirectory>${project.build.directory}/assembly/opt/onap/sdnc/bin</outputDirectory>
171                                 </artifactItem>
172                             </artifactItems>
173                         </configuration>
174                     </execution>
175                 </executions>
176             </plugin>
177         </plugins>
178     </build>
179 </project>