blob: 17e8048471ccfdfcf0e87199d50894e732840d2f [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 Bradyb4e7e112018-08-07 11:44:12 -070025 <groupId>org.onap.appc.parent</groupId>
26 <artifactId>odlparent-lite</artifactId>
Patrick Brady84d0a252018-05-22 10:42:55 -070027 <version>1.4.0-SNAPSHOT</version>
Patrick Bradyb4e7e112018-08-07 11:44:12 -070028 <relativePath />
beili.zhoufe0e9892017-08-10 14:54:42 -040029 </parent>
30
31 <artifactId>appc-lifecycle-management-installer</artifactId>
Patrick Bradyb4e7e112018-08-07 11:44:12 -070032 <groupId>org.onap.appc</groupId>
33 <version>1.4.0-SNAPSHOT</version>
beili.zhoufe0e9892017-08-10 14:54:42 -040034 <name>APPC LifeCycle Management - Karaf Installer</name>
35 <packaging>pom</packaging>
36
37 <properties>
38 <application.name>appc-lifecycle-management</application.name>
39 <features.boot>appc-lifecycle-management</features.boot>
40 <features.repositories>
Patrick Bradyb4e7e112018-08-07 11:44:12 -070041 mvn:org.onap.appc/onap-appc-lifecycle-management/${project.version}/xml/features
beili.zhoufe0e9892017-08-10 14:54:42 -040042 </features.repositories>
43 <include.transitive.dependencies>false</include.transitive.dependencies>
44 </properties>
45
46 <dependencies>
47 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080048 <groupId>org.onap.appc</groupId>
Patrick Bradyb4e7e112018-08-07 11:44:12 -070049 <artifactId>onap-appc-lifecycle-management</artifactId>
beili.zhoufe0e9892017-08-10 14:54:42 -040050 <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 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080061 <groupId>org.onap.appc</groupId>
beili.zhoufe0e9892017-08-10 14:54:42 -040062 <artifactId>appc-lifecycle-management-api</artifactId>
63 <version>${project.version}</version>
64 </dependency>
65 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080066 <groupId>org.onap.appc</groupId>
beili.zhoufe0e9892017-08-10 14:54:42 -040067 <artifactId>appc-lifecycle-management-core</artifactId>
68 <version>${project.version}</version>
69 </dependency>
70 </dependencies>
71
72 <build>
73 <plugins>
74 <plugin>
75 <artifactId>maven-assembly-plugin</artifactId>
76 <executions>
77 <execution>
78 <id>maven-repo-zip</id>
79 <goals>
80 <goal>single</goal>
81 </goals>
82 <phase>package</phase>
83 <configuration>
84 <appendAssemblyId>false</appendAssemblyId>
85 <attach>false</attach>
86 <finalName>stage/${application.name}-${project.version}</finalName>
87 <descriptors>
88 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
89 </descriptors>
90 </configuration>
91 </execution>
92 <execution>
93 <id>installer-zip</id>
94 <goals>
95 <goal>single</goal>
96 </goals>
97 <phase>package</phase>
98 <configuration>
99 <appendAssemblyId>false</appendAssemblyId>
100 <attach>true</attach>
101 <finalName>${application.name}-${project.version}</finalName>
102 <descriptors>
103 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
104 </descriptors>
105 </configuration>
106 </execution>
107 </executions>
108 </plugin>
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-dependency-plugin</artifactId>
112 <executions>
113 <execution>
114 <id>copy-dependencies</id>
115 <goals>
116 <goal>copy-dependencies</goal>
117 </goals>
118 <phase>prepare-package</phase>
119 <configuration>
120 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
121 <overWriteReleases>false</overWriteReleases>
122 <overWriteSnapshots>true</overWriteSnapshots>
123 <overWriteIfNewer>true</overWriteIfNewer>
124 <useRepositoryLayout>true</useRepositoryLayout>
125 <addParentPoms>false</addParentPoms>
126 <copyPom>false</copyPom>
127 <excludeGroupIds>org.opendaylight</excludeGroupIds>
128 </configuration>
129 </execution>
130 </executions>
131 </plugin>
132 <plugin>
133 <artifactId>maven-resources-plugin</artifactId>
134 <executions>
135 <execution>
136 <id>copy-version</id>
137 <goals>
138 <goal>copy-resources</goal>
139 </goals>
140 <!-- here the phase you need -->
141 <phase>validate</phase>
142 <configuration>
143 <outputDirectory>${basedir}/target/stage</outputDirectory>
144 <resources>
145 <resource>
146 <directory>src/main/resources/scripts</directory>
147 <includes>
148 <include>install-feature.sh</include>
149 </includes>
150 <filtering>true</filtering>
151 </resource>
152 </resources>
153 </configuration>
154 </execution>
155 </executions>
156 </plugin>
157 </plugins>
158 </build>
159
160</project>