Karaf 4 for appc-config
[appc.git] / appc-config / appc-data-services / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
5   ================================================================================
6   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
7   Copyright (C) 2017 Amdocs
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     <parent>
25         <groupId>org.onap.appc.parent</groupId>
26         <artifactId>odlparent-lite</artifactId>
27         <version>1.4.0-SNAPSHOT</version>
28         <relativePath />
29     </parent>
30   <groupId>org.onap.appc</groupId>
31
32     <artifactId>appc-config-data-services-installer</artifactId>
33     <name>Config Component Data Services - Installer</name>
34     <packaging>pom</packaging>
35     <properties>
36         <application.name>appc-config-data-services</application.name>
37         <features.boot>appc-config-data-services</features.boot>
38         <features.repositories>mvn:org.onap.appc/onap-appc-config-data-services/${project.version}/xml/features</features.repositories>
39         <include.transitive.dependencies>false</include.transitive.dependencies>
40     </properties>
41     <dependencies>
42         <dependency>
43             <groupId>org.onap.appc</groupId>
44             <artifactId>onap-appc-config-data-services</artifactId>
45             <classifier>features</classifier>
46             <version>${project.version}</version>
47             <type>xml</type>
48             <exclusions>
49                 <exclusion>
50                     <groupId>*</groupId>
51                     <artifactId>*</artifactId>
52                 </exclusion>
53             </exclusions>
54         </dependency>
55         <dependency>
56             <groupId>org.onap.appc</groupId>
57             <artifactId>appc-config-data-services-provider</artifactId>
58             <version>1.4.0-SNAPSHOT</version>
59         </dependency>
60     </dependencies>
61     <build>
62         <plugins>
63             <plugin>
64                 <artifactId>maven-assembly-plugin</artifactId>
65                 <executions>
66                     <execution>
67                         <id>maven-repo-zip</id>
68                         <goals>
69                             <goal>single</goal>
70                         </goals>
71                         <phase>package</phase>
72                         <configuration>
73                                 <appendAssemblyId>false</appendAssemblyId>
74                             <attach>false</attach>
75                             <finalName>stage/${application.name}-${project.version}</finalName>
76                             <descriptors>
77                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
78                             </descriptors>
79                         </configuration>
80                     </execution>
81                     <execution>
82                         <id>installer-zip</id>
83                         <goals>
84                             <goal>single</goal>
85                         </goals>
86                         <phase>package</phase>
87                         <configuration>
88                                 <appendAssemblyId>false</appendAssemblyId>
89                             <attach>true</attach>
90                             <finalName>${application.name}-${project.version}</finalName>
91                             <descriptors>
92                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
93                             </descriptors>
94                         </configuration>
95                     </execution>
96                 </executions>
97             </plugin>
98             <plugin>
99                 <groupId>org.apache.maven.plugins</groupId>
100                 <artifactId>maven-dependency-plugin</artifactId>
101                 <executions>
102                     <execution>
103                         <id>copy-dependencies</id>
104                         <goals>
105                             <goal>copy-dependencies</goal>
106                         </goals>
107                         <phase>prepare-package</phase>
108                         <configuration>
109                             <transitive>false</transitive>
110                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
111                             <overWriteReleases>false</overWriteReleases>
112                             <overWriteSnapshots>true</overWriteSnapshots>
113                             <overWriteIfNewer>true</overWriteIfNewer>
114                             <useRepositoryLayout>true</useRepositoryLayout>
115                             <addParentPoms>false</addParentPoms>
116                             <copyPom>false</copyPom>
117                             <excludeGroupIds>org.opendaylight</excludeGroupIds>
118                             <scope>provided</scope>
119                         </configuration>
120                     </execution>
121                 </executions>
122             </plugin>
123             <plugin>
124                 <artifactId>maven-resources-plugin</artifactId>
125                 <executions>
126                     <execution>
127                         <id>copy-version</id>
128                         <goals>
129                             <goal>copy-resources</goal>
130                         </goals>
131                         <!-- here the phase you need -->
132                         <phase>validate</phase>
133                         <configuration>
134                             <outputDirectory>${basedir}/target/stage</outputDirectory>
135                             <resources>
136                                 <resource>
137                                     <directory>src/main/resources/scripts</directory>
138                                     <includes>
139                                         <include>install-feature.sh</include>
140                                     </includes>
141                                     <filtering>true</filtering>
142                                 </resource>
143                             </resources>
144                         </configuration>
145                     </execution>
146                 </executions>
147             </plugin>
148         </plugins>
149     </build>
150 </project>