Karaf 4 for appc-sdc-listener
[appc.git] / appc-sdc-listener / appc-sdc-listener-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 ================================================================================
8 Copyright (C) 2017 Amdocs
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
22 ============LICENSE_END=========================================================
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         <parent>
27                 <groupId>org.onap.appc.parent</groupId>
28                 <artifactId>odlparent-lite</artifactId>
29                 <version>1.4.0-SNAPSHOT</version>
30                 <relativePath />
31         </parent>
32         <groupId>org.onap.appc</groupId>
33         <artifactId>appc-sdc-listener-installer</artifactId>
34         <name>SDC Listener - Karaf Installer</name>
35         <packaging>pom</packaging>
36
37         <properties>
38                 <application.name>appc-sdc-listener</application.name>
39                 <features.boot>appc-sdc-listener</features.boot>
40                 <features.repositories>mvn:org.onap.appc/onap-appc-sdc-listener/${project.version}/xml/features</features.repositories>
41                 <include.transitive.dependencies>false</include.transitive.dependencies>
42         </properties>
43
44         <dependencies>
45
46                 <dependency>
47                         <groupId>org.onap.appc</groupId>
48                         <artifactId>onap-appc-sdc-listener</artifactId>
49                         <version>${project.version}</version>
50                         <classifier>features</classifier>
51                         <type>xml</type>
52                         <exclusions>
53                                 <exclusion>
54                                         <groupId>*</groupId>
55                                         <artifactId>*</artifactId>
56                                 </exclusion>
57                         </exclusions>
58                 </dependency>
59
60                 <dependency>
61                         <groupId>org.onap.appc</groupId>
62                         <artifactId>appc-sdc-listener-bundle</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                                         <appendAssemblyId>false</appendAssemblyId>
80                                                         <attach>false</attach>
81                                                         <finalName>stage/${application.name}-${project.version}</finalName>
82                                                         <descriptors>
83                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
84                                                         </descriptors>
85                                                 </configuration>
86                                         </execution>
87                                         <execution>
88                                                 <id>installer-zip</id>
89                                                 <goals>
90                                                         <goal>single</goal>
91                                                 </goals>
92                                                 <phase>package</phase>
93                                                 <configuration>
94                                                         <appendAssemblyId>false</appendAssemblyId>
95                                                         <attach>true</attach>
96                                         <finalName>${application.name}-${project.version}</finalName>
97                                                         <descriptors>
98                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
99                                                         </descriptors>
100                                                 </configuration>
101                                         </execution>
102                                 </executions>
103                         </plugin>
104                         <plugin>
105                                 <groupId>org.apache.maven.plugins</groupId>
106                                 <artifactId>maven-dependency-plugin</artifactId>
107                                 <executions>
108                                         <execution>
109                                                 <id>copy-dependencies</id>
110                                                 <goals>
111                                                         <goal>copy-dependencies</goal>
112                                                 </goals>
113                                                 <phase>prepare-package</phase>
114                                                 <configuration>
115                                                         <transitive>false</transitive>
116                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
117                                                         <overWriteReleases>false</overWriteReleases>
118                                                         <overWriteSnapshots>true</overWriteSnapshots>
119                                                         <overWriteIfNewer>true</overWriteIfNewer>
120                                                         <useRepositoryLayout>true</useRepositoryLayout>
121                                                         <addParentPoms>false</addParentPoms>
122                                                         <copyPom>false</copyPom>
123                                                         <excludeGroupIds>org.opendaylight</excludeGroupIds>
124                                                         <scope>provided</scope>
125                                                 </configuration>
126                                         </execution>
127                                 </executions>
128                         </plugin>
129                         <plugin>
130                                 <artifactId>maven-resources-plugin</artifactId>
131                                 <executions>
132                                         <execution>
133                                                 <id>copy-version</id>
134                                                 <goals>
135                                                         <goal>copy-resources</goal>
136                                                 </goals>
137                                                 <!-- here the phase you need -->
138                                                 <phase>validate</phase>
139                                                 <configuration>
140                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
141                                                         <resources>
142                                                                 <resource>
143                                                                         <directory>src/main/resources/scripts</directory>
144                                                                         <includes>
145                                                                                 <include>install-feature.sh</include>
146                                                                         </includes>
147                                                                         <filtering>true</filtering>
148                                                                 </resource>
149                                                         </resources>
150                                                 </configuration>
151                                         </execution>
152                                 </executions>
153                         </plugin>
154                 </plugins>
155         </build>
156
157 </project>