blob: 3858e662f4ce0a75340ad2046a49f74e4bb87214 [file] [log] [blame]
Patrick Brady57b5eef2017-02-10 15:00:49 -08001<?xml version="1.0" encoding="UTF-8"?>
Anand36bcd562018-01-04 19:35:51 -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
Patrick Brady57b5eef2017-02-10 15:00:49 -080013
Anand36bcd562018-01-04 19:35:51 -050014 http://www.apache.org/licenses/LICENSE-2.0
Patrick Brady57b5eef2017-02-10 15:00:49 -080015
Anand36bcd562018-01-04 19:35:51 -050016 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.
Patrick Brady57b5eef2017-02-10 15:00:49 -080021
Anand36bcd562018-01-04 19:35:51 -050022 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">
28 <modelVersion>4.0.0</modelVersion>
29 <parent>
30 <artifactId>appc-dispatcher</artifactId>
31 <groupId>org.onap.appc</groupId>
32 <version>1.3.0-SNAPSHOT</version>
33 </parent>
Patrick Brady57b5eef2017-02-10 15:00:49 -080034
Anand36bcd562018-01-04 19:35:51 -050035 <artifactId>appc-dispatcher-installer</artifactId>
36 <name>APPC Dispatcher - Karaf Installer</name>
37 <packaging>pom</packaging>
Patrick Brady57b5eef2017-02-10 15:00:49 -080038
Anand36bcd562018-01-04 19:35:51 -050039 <properties>
40 <application.name>appc-dispatcher</application.name>
41 <features.boot>appc-dispatcher</features.boot>
42 <features.boot.licenseManager>appc-license-manager</features.boot.licenseManager>
Patrick Brady57b5eef2017-02-10 15:00:49 -080043
Anand36bcd562018-01-04 19:35:51 -050044 <!-- SEPARATED FEATURE INSTALLS -->
45 <features.repo.dispatcher>mvn:org.onap.appc/appc-dispatcher-features/${project.version}/xml/features
46 </features.repo.dispatcher>
47 <features.repo.requestHandler>
48 mvn:org.onap.appc/appc-request-handler-features/${project.version}/xml/features
49 </features.repo.requestHandler>
50 <features.repo.commandExecutor>
51 mvn:org.onap.appc/appc-command-executor-features/${project.version}/xml/features
52 </features.repo.commandExecutor>
53 <features.repo.lifecycleManagement>
54 mvn:org.onap.appc/appc-lifecycle-management-features/${project.version}/xml/features
55 </features.repo.lifecycleManagement>
56 <features.repo.licenseManager>
57 mvn:org.onap.appc/appc-license-manager-features/${project.version}/xml/features
58 </features.repo.licenseManager>
59 <features.repo.workflowManagement>
60 mvn:org.onap.appc/appc-workflow-management-features/${project.version}/xml/features
61 </features.repo.workflowManagement>
62 <features.repo.lockManager>mvn:org.onap.appc/lock-manager-features/${project.version}/xml/features
63 </features.repo.lockManager>
Patrick Brady57b5eef2017-02-10 15:00:49 -080064
Anand36bcd562018-01-04 19:35:51 -050065 <include.transitive.dependencies>false</include.transitive.dependencies>
66 </properties>
Patrick Brady57b5eef2017-02-10 15:00:49 -080067
Anand36bcd562018-01-04 19:35:51 -050068 <dependencies>
Patrick Brady57b5eef2017-02-10 15:00:49 -080069
Anand36bcd562018-01-04 19:35:51 -050070 <dependency>
71 <groupId>org.onap.appc</groupId>
72 <artifactId>appc-dispatcher-features</artifactId>
73 <version>${project.version}</version>
74 <classifier>features</classifier>
75 <type>xml</type>
76 </dependency>
Patrick Brady57b5eef2017-02-10 15:00:49 -080077
Anand36bcd562018-01-04 19:35:51 -050078 <dependency>
79 <groupId>org.onap.appc</groupId>
80 <artifactId>appc-request-handler-features</artifactId>
81 <version>${project.version}</version>
82 <classifier>features</classifier>
83 <type>xml</type>
84 </dependency>
Patrick Brady57b5eef2017-02-10 15:00:49 -080085
Anand36bcd562018-01-04 19:35:51 -050086 <dependency>
87 <groupId>org.onap.appc</groupId>
88 <artifactId>appc-command-executor-features</artifactId>
89 <version>${project.version}</version>
90 <classifier>features</classifier>
91 <type>xml</type>
92 </dependency>
93
94 <dependency>
95 <groupId>org.onap.appc</groupId>
96 <artifactId>appc-lifecycle-management-features</artifactId>
97 <version>${project.version}</version>
98 <classifier>features</classifier>
99 <type>xml</type>
100 </dependency>
101
102 <dependency>
103 <groupId>org.onap.appc</groupId>
104 <artifactId>appc-workflow-management-features</artifactId>
105 <version>${project.version}</version>
106 <classifier>features</classifier>
107 <type>xml</type>
108 </dependency>
109
110 <dependency>
111 <groupId>org.onap.appc</groupId>
112 <artifactId>appc-license-manager-features</artifactId>
113 <version>${project.version}</version>
114 <classifier>features</classifier>
115 <type>xml</type>
116 </dependency>
117
118 <dependency>
119 <groupId>org.onap.appc</groupId>
120 <artifactId>lock-manager-features</artifactId>
121 <version>${project.version}</version>
122 <classifier>features</classifier>
123 <type>xml</type>
124 </dependency>
125 </dependencies>
126
127 <build>
128 <plugins>
129 <plugin>
130 <artifactId>maven-assembly-plugin</artifactId>
131 <executions>
132 <execution>
133 <id>maven-repo-zip</id>
134 <goals>
135 <goal>single</goal>
136 </goals>
137 <phase>package</phase>
138 <configuration>
139 <appendAssemblyId>false</appendAssemblyId>
140 <attach>false</attach>
141 <finalName>stage/${application.name}-${project.version}</finalName>
142 <descriptors>
143 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
144 </descriptors>
145 </configuration>
146 </execution>
147 <execution>
148 <id>installer-zip</id>
149 <goals>
150 <goal>single</goal>
151 </goals>
152 <phase>package</phase>
153 <configuration>
154 <appendAssemblyId>false</appendAssemblyId>
155 <attach>true</attach>
156 <finalName>${application.name}-${project.version}</finalName>
157 <descriptors>
158 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
159 </descriptors>
160 </configuration>
161 </execution>
162 </executions>
163 </plugin>
164 <plugin>
165 <groupId>org.apache.maven.plugins</groupId>
166 <artifactId>maven-dependency-plugin</artifactId>
167 <executions>
168 <execution>
169 <id>copy-dependencies</id>
170 <goals>
171 <goal>copy-dependencies</goal>
172 </goals>
173 <phase>prepare-package</phase>
174 <configuration>
175 <transitive>false</transitive>
176 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
177 <overWriteReleases>false</overWriteReleases>
178 <overWriteSnapshots>true</overWriteSnapshots>
179 <overWriteIfNewer>true</overWriteIfNewer>
180 <useRepositoryLayout>true</useRepositoryLayout>
181 <addParentPoms>false</addParentPoms>
182 <copyPom>false</copyPom>
183 <excludeGroupIds>org.opendaylight</excludeGroupIds>
184 <scope>provided</scope>
185 </configuration>
186 </execution>
187 </executions>
188 </plugin>
189 <plugin>
190 <artifactId>maven-resources-plugin</artifactId>
191 <executions>
192 <execution>
193 <id>copy-version</id>
194 <goals>
195 <goal>copy-resources</goal>
196 </goals>
197 <!-- here the phase you need -->
198 <phase>validate</phase>
199 <configuration>
200 <outputDirectory>${basedir}/target/stage</outputDirectory>
201 <resources>
202 <resource>
203 <directory>src/main/resources/scripts</directory>
204 <includes>
205 <include>install-feature.sh</include>
206 </includes>
207 <filtering>true</filtering>
208 </resource>
209 </resources>
210 </configuration>
211 </execution>
212 </executions>
213 </plugin>
214 </plugins>
215 </build>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800216
217</project>