Refactoring multiple plugins
[ccsdk/features.git] / sdnr / wt / data-provider / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4  * ============LICENSE_START=======================================================
5  * ONAP : CCSDK.sdnr.wt.dataprovider.installer
6  * ================================================================================
7  * Copyright (C) 2018 highstreet technologies GmbH Intellectual Property.
8  * All rights reserved.
9  * ================================================================================
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *      http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  * ============LICENSE_END=========================================================
22
23 -->
24 <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">
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28         <groupId>org.onap.ccsdk.parent</groupId>
29         <artifactId>odlparent-lite</artifactId>
30         <version>1.5.1-SNAPSHOT</version>
31         <relativePath/>
32     </parent>
33
34     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
35     <artifactId>sdnr-wt-data-provider-installer</artifactId>
36     <version>0.7.0-SNAPSHOT</version>
37     <packaging>pom</packaging>
38
39     <name>ccsdk-features :: ${project.artifactId}</name>
40
41     <properties>
42         <application.name>sdnr-wt-data-provider</application.name>
43         <include.transitive.dependencies>false</include.transitive.dependencies>
44     </properties>
45
46     <dependencies>
47         <dependency>
48             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
49             <artifactId>${application.name}-feature</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         <dependency>
61             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
62             <artifactId>${application.name}-provider</artifactId>
63             <version>${project.version}</version>
64         </dependency>
65     </dependencies>
66
67     <build>
68         <plugins>
69             <plugin>
70                 <artifactId>maven-assembly-plugin</artifactId>
71                 <executions>
72                     <execution>
73                         <id>maven-repo-zip</id>
74                         <goals>
75                             <goal>single</goal>
76                         </goals>
77                         <phase>package</phase>
78                         <configuration>
79                             <attach>true</attach>
80                             <finalName>stage/${application.name}-${project.version}</finalName>
81                             <descriptors>
82                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
83                             </descriptors>
84                             <appendAssemblyId>true</appendAssemblyId>
85                         </configuration>
86                     </execution>
87                 </executions>
88             </plugin>
89             <plugin>
90                 <groupId>org.apache.maven.plugins</groupId>
91                 <artifactId>maven-dependency-plugin</artifactId>
92                 <executions>
93                     <execution>
94                         <id>copy-nested-dependencies</id>
95                         <goals>
96                             <goal>copy-dependencies</goal>
97                         </goals>
98                         <phase>prepare-package</phase>
99                         <configuration>
100                             <transitive>true</transitive>
101                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
102                             <overWriteReleases>false</overWriteReleases>
103                             <overWriteSnapshots>true</overWriteSnapshots>
104                             <overWriteIfNewer>true</overWriteIfNewer>
105                             <useRepositoryLayout>true</useRepositoryLayout>
106                             <addParentPoms>false</addParentPoms>
107                             <copyPom>false</copyPom>
108                         </configuration>
109                     </execution>
110                 </executions>
111             </plugin>
112             <plugin>
113                 <artifactId>maven-resources-plugin</artifactId>
114                 <version>2.6</version>
115                 <executions>
116                     <execution>
117                         <id>copy-schemas</id>
118                         <goals>
119                             <goal>copy-resources</goal>
120                         </goals>
121                         <phase>validate</phase>
122                         <configuration>
123                             <outputDirectory>${project.build.directory}/assembly/cache/schema</outputDirectory>
124                             <resources>
125                                 <resource>
126                                     <directory>${basedir}/../provider/src/main/resources/preload.cache.schema</directory>
127                                     <includes>
128                                         <include>*.yang</include>
129                                     </includes>
130                                     <filtering>true</filtering>
131                                 </resource>
132                             </resources>
133                         </configuration>
134                     </execution>
135                 </executions>
136             </plugin>
137         </plugins>
138     </build>
139 </project>