Release appc
[appc.git] / appc-service-communicator / appc-service-communicator-installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
5   ================================================================================
6   Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11   
12        http://www.apache.org/licenses/LICENSE-2.0
13   
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20   -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     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         <artifactId>odlparent-lite</artifactId>
26         <groupId>org.onap.appc.parent</groupId>
27         <version>2.7.2</version>
28         <relativePath />
29     </parent>
30     <groupId>org.onap.appc</groupId>
31     <artifactId>appc-service-communicator-installer</artifactId>
32     <name>dMaaP Adapter - Karaf Installer</name>
33     <packaging>pom</packaging>
34
35     <properties>
36         <application.name>appc-service-communicator</application.name>
37         <features.boot>appc-service-communicator</features.boot>
38         <features.repositories>mvn:org.onap.appc/onap-appc-service-communicator/${project.version}/xml/features</features.repositories>
39         <include.transitive.dependencies>false</include.transitive.dependencies>
40     </properties>
41
42     <dependencies>
43         <dependency>
44             <groupId>org.onap.appc</groupId>
45             <artifactId>onap-appc-service-communicator</artifactId>
46             <version>${project.version}</version>
47             <classifier>features</classifier>
48             <type>xml</type>
49             <exclusions>
50                 <exclusion>
51                     <groupId>*</groupId>
52                     <artifactId>*</artifactId>
53                 </exclusion>
54             </exclusions>
55         </dependency>
56
57         <dependency>
58             <groupId>org.onap.appc</groupId>
59             <artifactId>appc-service-communicator-bundle</artifactId>
60             <version>${project.version}</version>
61         </dependency>
62     </dependencies>
63
64     <build>
65         <plugins>
66             <plugin>
67                 <artifactId>maven-assembly-plugin</artifactId>
68                 <executions>
69                     <execution>
70                         <id>maven-repo-zip</id>
71                         <goals>
72                             <goal>single</goal>
73                         </goals>
74                         <phase>package</phase>
75                         <configuration>
76                             <appendAssemblyId>false</appendAssemblyId>
77                             <attach>false</attach>
78                             <finalName>stage/${application.name}-${project.version}</finalName>
79                             <descriptors>
80                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
81                             </descriptors>
82                         </configuration>
83                     </execution>
84                     <execution>
85                         <id>installer-zip</id>
86                         <goals>
87                             <goal>single</goal>
88                         </goals>
89                         <phase>package</phase>
90                         <configuration>
91                             <appendAssemblyId>false</appendAssemblyId>
92                             <attach>true</attach>
93                             <finalName>${application.name}-${project.version}</finalName>
94                             <descriptors>
95                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
96                             </descriptors>
97                         </configuration>
98                     </execution>
99                 </executions>
100             </plugin>
101             <plugin>
102                 <groupId>org.apache.maven.plugins</groupId>
103                 <artifactId>maven-dependency-plugin</artifactId>
104                 <executions>
105                     <execution>
106                         <id>copy-dependencies</id>
107                         <goals>
108                             <goal>copy-dependencies</goal>
109                         </goals>
110                         <phase>prepare-package</phase>
111                         <configuration>
112                             <transitive>false</transitive>
113                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
114                             <overWriteReleases>false</overWriteReleases>
115                             <overWriteSnapshots>true</overWriteSnapshots>
116                             <overWriteIfNewer>true</overWriteIfNewer>
117                             <useRepositoryLayout>true</useRepositoryLayout>
118                             <addParentPoms>false</addParentPoms>
119                             <copyPom>false</copyPom>
120                             <excludeGroupIds>org.opendaylight</excludeGroupIds>
121                             <scope>provided</scope>
122                             <artifactItems>
123                                 <artifactItem>
124                                     <groupId>com.fasterxml.jackson.core</groupId>
125                                     <artifactId>jackson-annotations</artifactId>
126                                     <version>2.5.4</version>
127                                     <type>jar</type>
128                                 </artifactItem>
129                             </artifactItems>
130                         </configuration>
131                     </execution>
132                 </executions>
133             </plugin>
134             <plugin>
135                 <artifactId>maven-resources-plugin</artifactId>
136                 <executions>
137                     <execution>
138                         <id>copy-version</id>
139                         <goals>
140                             <goal>copy-resources</goal>
141                         </goals>
142                         <!-- here the phase you need -->
143                         <phase>validate</phase>
144                         <configuration>
145                             <outputDirectory>${basedir}/target/stage</outputDirectory>
146                             <resources>
147                                 <resource>
148                                     <directory>src/main/resources/scripts</directory>
149                                     <includes>
150                                         <include>install-feature.sh</include>
151                                     </includes>
152                                     <filtering>true</filtering>
153                                 </resource>
154                             </resources>
155                         </configuration>
156                     </execution>
157                 </executions>
158             </plugin>
159
160         </plugins>
161     </build>
162
163     <version>1.7.2</version>
164 </project>