blob: 5af32fc6b1292bd8a6ce0037b51ac384c1e06796 [file] [log] [blame]
beili.zhoufe0e9892017-08-10 14:54:42 -04001<?xml version="1.0" encoding="UTF-8"?>
Skip Wonnell463f70e2018-01-12 10:00:59 -06002<!--
3 ============LICENSE_START=======================================================
4 ONAP : APPC
5 ================================================================================
John McClung3a78edb2018-06-13 17:17:15 -04006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Skip Wonnell463f70e2018-01-12 10:00:59 -06007 Copyright (C) 2017 Amdocs
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
Skip Wonnell463f70e2018-01-12 10:00:59 -060021 -->
beili.zhoufe0e9892017-08-10 14:54:42 -040022<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">
23 <modelVersion>4.0.0</modelVersion>
24 <parent>
Patrick Brady07567592017-12-13 11:09:30 -080025 <groupId>org.onap.appc</groupId>
beili.zhoufe0e9892017-08-10 14:54:42 -040026 <artifactId>appc-lifecycle-management</artifactId>
Patrick Brady84d0a252018-05-22 10:42:55 -070027 <version>1.4.0-SNAPSHOT</version>
beili.zhoufe0e9892017-08-10 14:54:42 -040028 </parent>
29
30 <artifactId>appc-lifecycle-management-installer</artifactId>
31 <name>APPC LifeCycle Management - Karaf Installer</name>
32 <packaging>pom</packaging>
33
34 <properties>
35 <application.name>appc-lifecycle-management</application.name>
36 <features.boot>appc-lifecycle-management</features.boot>
37 <features.repositories>
Patrick Brady07567592017-12-13 11:09:30 -080038 mvn:org.onap.appc/appc-lifecycle-management-features/${project.version}/xml/features
beili.zhoufe0e9892017-08-10 14:54:42 -040039 </features.repositories>
40 <include.transitive.dependencies>false</include.transitive.dependencies>
41 </properties>
42
43 <dependencies>
44 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080045 <groupId>org.onap.appc</groupId>
beili.zhoufe0e9892017-08-10 14:54:42 -040046 <artifactId>appc-lifecycle-management-features</artifactId>
47 <version>${project.version}</version>
48 <classifier>features</classifier>
49 <type>xml</type>
50 <exclusions>
51 <exclusion>
52 <groupId>*</groupId>
53 <artifactId>*</artifactId>
54 </exclusion>
55 </exclusions>
56 </dependency>
57 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080058 <groupId>org.onap.appc</groupId>
beili.zhoufe0e9892017-08-10 14:54:42 -040059 <artifactId>appc-lifecycle-management-api</artifactId>
60 <version>${project.version}</version>
61 </dependency>
62 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080063 <groupId>org.onap.appc</groupId>
beili.zhoufe0e9892017-08-10 14:54:42 -040064 <artifactId>appc-lifecycle-management-core</artifactId>
65 <version>${project.version}</version>
66 </dependency>
67 </dependencies>
68
69 <build>
70 <plugins>
71 <plugin>
72 <artifactId>maven-assembly-plugin</artifactId>
73 <executions>
74 <execution>
75 <id>maven-repo-zip</id>
76 <goals>
77 <goal>single</goal>
78 </goals>
79 <phase>package</phase>
80 <configuration>
81 <appendAssemblyId>false</appendAssemblyId>
82 <attach>false</attach>
83 <finalName>stage/${application.name}-${project.version}</finalName>
84 <descriptors>
85 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
86 </descriptors>
87 </configuration>
88 </execution>
89 <execution>
90 <id>installer-zip</id>
91 <goals>
92 <goal>single</goal>
93 </goals>
94 <phase>package</phase>
95 <configuration>
96 <appendAssemblyId>false</appendAssemblyId>
97 <attach>true</attach>
98 <finalName>${application.name}-${project.version}</finalName>
99 <descriptors>
100 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
101 </descriptors>
102 </configuration>
103 </execution>
104 </executions>
105 </plugin>
106 <plugin>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-dependency-plugin</artifactId>
109 <executions>
110 <execution>
111 <id>copy-dependencies</id>
112 <goals>
113 <goal>copy-dependencies</goal>
114 </goals>
115 <phase>prepare-package</phase>
116 <configuration>
117 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
118 <overWriteReleases>false</overWriteReleases>
119 <overWriteSnapshots>true</overWriteSnapshots>
120 <overWriteIfNewer>true</overWriteIfNewer>
121 <useRepositoryLayout>true</useRepositoryLayout>
122 <addParentPoms>false</addParentPoms>
123 <copyPom>false</copyPom>
124 <excludeGroupIds>org.opendaylight</excludeGroupIds>
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>