Release appc
[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>2.6.1</version>
30                 <relativePath />
31         </parent>
32         <groupId>org.onap.appc</groupId>
33         <artifactId>appc-sdc-listener-installer</artifactId>
34         <version>1.6.3</version>
35         <name>SDC Listener - Karaf Installer</name>
36         <packaging>pom</packaging>
37
38         <properties>
39                 <application.name>appc-sdc-listener</application.name>
40                 <features.boot>appc-sdc-listener</features.boot>
41                 <features.repositories>mvn:org.onap.appc/onap-appc-sdc-listener/${project.version}/xml/features</features.repositories>
42                 <include.transitive.dependencies>false</include.transitive.dependencies>
43         </properties>
44
45         <dependencies>
46
47                 <dependency>
48                         <groupId>org.onap.appc</groupId>
49                         <artifactId>onap-appc-sdc-listener</artifactId>
50                         <version>${project.version}</version>
51                         <classifier>features</classifier>
52                         <type>xml</type>
53                         <exclusions>
54                                 <exclusion>
55                                         <groupId>*</groupId>
56                                         <artifactId>*</artifactId>
57                                 </exclusion>
58                         </exclusions>
59                 </dependency>
60
61                 <dependency>
62                         <groupId>org.onap.appc</groupId>
63                         <artifactId>appc-sdc-listener-bundle</artifactId>
64                         <version>${project.version}</version>
65                         <exclusions>
66                             <exclusion>
67                               <groupId>com.fasterxml.jackson.core</groupId>
68                               <artifactId>jackson-databind</artifactId>
69                             </exclusion>
70                          </exclusions>
71                 </dependency>
72
73                 <dependency>
74                         <groupId>com.fasterxml.jackson.core</groupId>
75                         <artifactId>jackson-databind</artifactId>
76                         <version>2.8.11.3</version>
77                 </dependency>
78         </dependencies>
79
80         <build>
81                 <plugins>
82                         <plugin>
83                                 <artifactId>maven-assembly-plugin</artifactId>
84                                 <executions>
85                                         <execution>
86                                                 <id>maven-repo-zip</id>
87                                                 <goals>
88                                                         <goal>single</goal>
89                                                 </goals>
90                                                 <phase>package</phase>
91                                                 <configuration>
92                                         <appendAssemblyId>false</appendAssemblyId>
93                                                         <attach>false</attach>
94                                                         <finalName>stage/${application.name}-${project.version}</finalName>
95                                                         <descriptors>
96                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
97                                                         </descriptors>
98                                                 </configuration>
99                                         </execution>
100                                         <execution>
101                                                 <id>installer-zip</id>
102                                                 <goals>
103                                                         <goal>single</goal>
104                                                 </goals>
105                                                 <phase>package</phase>
106                                                 <configuration>
107                                                         <appendAssemblyId>false</appendAssemblyId>
108                                                         <attach>true</attach>
109                                         <finalName>${application.name}-${project.version}</finalName>
110                                                         <descriptors>
111                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
112                                                         </descriptors>
113                                                 </configuration>
114                                         </execution>
115                                 </executions>
116                         </plugin>
117                         <plugin>
118                                 <groupId>org.apache.maven.plugins</groupId>
119                                 <artifactId>maven-dependency-plugin</artifactId>
120                                 <executions>
121                                         <execution>
122                                                 <id>copy-dependencies</id>
123                                                 <goals>
124                                                         <goal>copy-dependencies</goal>
125                                                 </goals>
126                                                 <phase>prepare-package</phase>
127                                                 <configuration>
128                                                         <transitive>false</transitive>
129                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
130                                                         <overWriteReleases>false</overWriteReleases>
131                                                         <overWriteSnapshots>true</overWriteSnapshots>
132                                                         <overWriteIfNewer>true</overWriteIfNewer>
133                                                         <useRepositoryLayout>true</useRepositoryLayout>
134                                                         <addParentPoms>false</addParentPoms>
135                                                         <copyPom>false</copyPom>
136                                                         <excludeGroupIds>org.opendaylight</excludeGroupIds>
137                                                         <scope>provided</scope>
138                                                 </configuration>
139                                         </execution>
140                                 </executions>
141                         </plugin>
142                         <plugin>
143                                 <artifactId>maven-resources-plugin</artifactId>
144                                 <executions>
145                                         <execution>
146                                                 <id>copy-version</id>
147                                                 <goals>
148                                                         <goal>copy-resources</goal>
149                                                 </goals>
150                                                 <!-- here the phase you need -->
151                                                 <phase>validate</phase>
152                                                 <configuration>
153                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
154                                                         <resources>
155                                                                 <resource>
156                                                                         <directory>src/main/resources/scripts</directory>
157                                                                         <includes>
158                                                                                 <include>install-feature.sh</include>
159                                                                         </includes>
160                                                                         <filtering>true</filtering>
161                                                                 </resource>
162                                                         </resources>
163                                                 </configuration>
164                                         </execution>
165                                 </executions>
166                         </plugin>
167                 </plugins>
168         </build>
169
170 </project>