blob: f272bd123c8a5b2c89636eab53de318bbb8f486b [file] [log] [blame]
Patrick Brady57b5eef2017-02-10 15:00:49 -08001<?xml version="1.0" encoding="UTF-8"?>
Skip Wonnell8c9631e2017-08-29 14:16:20 -05002<!--
3 ============LICENSE_START=======================================================
4 ONAP : APPC
5 ================================================================================
6 Copyright (C) 2017 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 ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ============LICENSE_END=========================================================
24 -->
25<project xmlns="http://maven.apache.org/POM/4.0.0"
26 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
27 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Patrick Brady57b5eef2017-02-10 15:00:49 -080028 <modelVersion>4.0.0</modelVersion>
29 <parent>
30 <artifactId>appc-chef-adapter</artifactId>
Patrick Brady07567592017-12-13 11:09:30 -080031 <groupId>org.onap.appc</groupId>
Jessica Wagantall65367992017-11-16 17:22:13 -080032 <version>1.3.0-SNAPSHOT</version>
Patrick Brady57b5eef2017-02-10 15:00:49 -080033 </parent>
34 <artifactId>appc-chef-adapter-installer</artifactId>
Skip Wonnell8c9631e2017-08-29 14:16:20 -050035 <name>APPC Chef Adapter - Karaf Installer</name>
Patrick Brady57b5eef2017-02-10 15:00:49 -080036 <packaging>pom</packaging>
37 <properties>
38 <application.name>appc-chef-adapter</application.name>
39 <features.boot>appc-chef-adapter</features.boot>
Skip Wonnell8c9631e2017-08-29 14:16:20 -050040 <features.repositories>
Patrick Brady07567592017-12-13 11:09:30 -080041 mvn:org.onap.appc/appc-chef-adapter-features/${project.version}/xml/features
Skip Wonnell8c9631e2017-08-29 14:16:20 -050042 </features.repositories>
Patrick Brady57b5eef2017-02-10 15:00:49 -080043 <include.transitive.dependencies>false</include.transitive.dependencies>
Skip Wonnell8c9631e2017-08-29 14:16:20 -050044 <licenseDir>${project.parent.parent.parent.basedir}</licenseDir>
Patrick Brady57b5eef2017-02-10 15:00:49 -080045 </properties>
46 <dependencies>
47 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080048 <groupId>org.onap.appc</groupId>
Patrick Brady57b5eef2017-02-10 15:00:49 -080049 <artifactId>appc-chef-adapter-features</artifactId>
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 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080060 <groupId>org.onap.appc</groupId>
Patrick Brady57b5eef2017-02-10 15:00:49 -080061 <artifactId>appc-chef-adapter-bundle</artifactId>
62 <version>${project.version}</version>
63 </dependency>
64 </dependencies>
65 <build>
66 <plugins>
67 <plugin>
68 <artifactId>maven-assembly-plugin</artifactId>
69 <executions>
70 <execution>
71 <id>maven-repo-zip</id>
72 <goals>
73 <goal>single</goal>
74 </goals>
75 <phase>package</phase>
76 <configuration>
Skip Wonnell8c9631e2017-08-29 14:16:20 -050077 <appendAssemblyId>false</appendAssemblyId>
Patrick Brady57b5eef2017-02-10 15:00:49 -080078 <attach>false</attach>
79 <finalName>stage/${application.name}-${project.version}</finalName>
80 <descriptors>
81 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
82 </descriptors>
83 </configuration>
84 </execution>
85 <execution>
86 <id>installer-zip</id>
87 <goals>
88 <goal>single</goal>
89 </goals>
90 <phase>package</phase>
91 <configuration>
Skip Wonnell8c9631e2017-08-29 14:16:20 -050092 <appendAssemblyId>false</appendAssemblyId>
Patrick Brady57b5eef2017-02-10 15:00:49 -080093 <attach>true</attach>
94 <finalName>${application.name}-${project.version}</finalName>
95 <descriptors>
96 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
97 </descriptors>
98 </configuration>
99 </execution>
100 </executions>
101 </plugin>
102 <plugin>
103 <groupId>org.apache.maven.plugins</groupId>
104 <artifactId>maven-dependency-plugin</artifactId>
105 <executions>
106 <execution>
107 <id>copy-dependencies</id>
108 <goals>
109 <goal>copy-dependencies</goal>
110 </goals>
111 <phase>prepare-package</phase>
112 <configuration>
113 <transitive>false</transitive>
114 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
115 <overWriteReleases>false</overWriteReleases>
116 <overWriteSnapshots>true</overWriteSnapshots>
117 <overWriteIfNewer>true</overWriteIfNewer>
118 <useRepositoryLayout>true</useRepositoryLayout>
119 <addParentPoms>false</addParentPoms>
120 <copyPom>false</copyPom>
121 <excludeGroupIds>org.opendaylight</excludeGroupIds>
122 <scope>provided</scope>
123 </configuration>
124 </execution>
125 </executions>
126 </plugin>
127 <plugin>
128 <artifactId>maven-resources-plugin</artifactId>
129 <executions>
130 <execution>
131 <id>copy-version</id>
132 <goals>
133 <goal>copy-resources</goal>
134 </goals>
135 <!-- here the phase you need -->
136 <phase>validate</phase>
137 <configuration>
138 <outputDirectory>${basedir}/target/stage</outputDirectory>
139 <resources>
140 <resource>
141 <directory>src/main/resources/scripts</directory>
142 <includes>
143 <include>install-feature.sh</include>
144 </includes>
145 <filtering>true</filtering>
146 </resource>
147 </resources>
148 </configuration>
149 </execution>
150 </executions>
151 </plugin>
152 </plugins>
153 </build>
154</project>