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