blob: a0cc963da8ff6d27cca7cbf642e269a5c2352036 [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 ================================================================================
John McClung694852f2018-06-13 16:10:33 -04006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Anand36bcd562018-01-04 19:35:51 -05007 ================================================================================
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 ============LICENSE_END=========================================================
23 -->
24<project xmlns="http://maven.apache.org/POM/4.0.0"
25 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
27 <modelVersion>4.0.0</modelVersion>
28 <parent>
29 <artifactId>appc-dispatcher</artifactId>
30 <groupId>org.onap.appc</groupId>
Patrick Brady84d0a252018-05-22 10:42:55 -070031 <version>1.4.0-SNAPSHOT</version>
Anand36bcd562018-01-04 19:35:51 -050032 </parent>
Patrick Brady57b5eef2017-02-10 15:00:49 -080033
Anand36bcd562018-01-04 19:35:51 -050034 <artifactId>appc-dispatcher-installer</artifactId>
35 <name>APPC Dispatcher - Karaf Installer</name>
36 <packaging>pom</packaging>
Patrick Brady57b5eef2017-02-10 15:00:49 -080037
Anand36bcd562018-01-04 19:35:51 -050038 <properties>
39 <application.name>appc-dispatcher</application.name>
40 <features.boot>appc-dispatcher</features.boot>
41 <features.boot.licenseManager>appc-license-manager</features.boot.licenseManager>
Patrick Brady57b5eef2017-02-10 15:00:49 -080042
Anand36bcd562018-01-04 19:35:51 -050043 <!-- SEPARATED FEATURE INSTALLS -->
44 <features.repo.dispatcher>mvn:org.onap.appc/appc-dispatcher-features/${project.version}/xml/features
45 </features.repo.dispatcher>
46 <features.repo.requestHandler>
47 mvn:org.onap.appc/appc-request-handler-features/${project.version}/xml/features
48 </features.repo.requestHandler>
49 <features.repo.commandExecutor>
50 mvn:org.onap.appc/appc-command-executor-features/${project.version}/xml/features
51 </features.repo.commandExecutor>
52 <features.repo.lifecycleManagement>
53 mvn:org.onap.appc/appc-lifecycle-management-features/${project.version}/xml/features
54 </features.repo.lifecycleManagement>
55 <features.repo.licenseManager>
56 mvn:org.onap.appc/appc-license-manager-features/${project.version}/xml/features
57 </features.repo.licenseManager>
58 <features.repo.workflowManagement>
59 mvn:org.onap.appc/appc-workflow-management-features/${project.version}/xml/features
60 </features.repo.workflowManagement>
61 <features.repo.lockManager>mvn:org.onap.appc/lock-manager-features/${project.version}/xml/features
62 </features.repo.lockManager>
Patrick Brady57b5eef2017-02-10 15:00:49 -080063
Anand36bcd562018-01-04 19:35:51 -050064 <include.transitive.dependencies>false</include.transitive.dependencies>
65 </properties>
Patrick Brady57b5eef2017-02-10 15:00:49 -080066
Anand36bcd562018-01-04 19:35:51 -050067 <dependencies>
Patrick Brady57b5eef2017-02-10 15:00:49 -080068
Anand36bcd562018-01-04 19:35:51 -050069 <dependency>
70 <groupId>org.onap.appc</groupId>
71 <artifactId>appc-dispatcher-features</artifactId>
72 <version>${project.version}</version>
73 <classifier>features</classifier>
74 <type>xml</type>
75 </dependency>
Patrick Brady57b5eef2017-02-10 15:00:49 -080076
Anand36bcd562018-01-04 19:35:51 -050077 <dependency>
78 <groupId>org.onap.appc</groupId>
79 <artifactId>appc-request-handler-features</artifactId>
80 <version>${project.version}</version>
81 <classifier>features</classifier>
82 <type>xml</type>
83 </dependency>
Patrick Brady57b5eef2017-02-10 15:00:49 -080084
Anand36bcd562018-01-04 19:35:51 -050085 <dependency>
86 <groupId>org.onap.appc</groupId>
87 <artifactId>appc-command-executor-features</artifactId>
88 <version>${project.version}</version>
89 <classifier>features</classifier>
90 <type>xml</type>
91 </dependency>
92
93 <dependency>
94 <groupId>org.onap.appc</groupId>
95 <artifactId>appc-lifecycle-management-features</artifactId>
96 <version>${project.version}</version>
97 <classifier>features</classifier>
98 <type>xml</type>
99 </dependency>
100
101 <dependency>
102 <groupId>org.onap.appc</groupId>
103 <artifactId>appc-workflow-management-features</artifactId>
104 <version>${project.version}</version>
105 <classifier>features</classifier>
106 <type>xml</type>
107 </dependency>
108
109 <dependency>
110 <groupId>org.onap.appc</groupId>
111 <artifactId>appc-license-manager-features</artifactId>
112 <version>${project.version}</version>
113 <classifier>features</classifier>
114 <type>xml</type>
115 </dependency>
116
117 <dependency>
118 <groupId>org.onap.appc</groupId>
119 <artifactId>lock-manager-features</artifactId>
120 <version>${project.version}</version>
121 <classifier>features</classifier>
122 <type>xml</type>
123 </dependency>
124 </dependencies>
125
126 <build>
127 <plugins>
128 <plugin>
129 <artifactId>maven-assembly-plugin</artifactId>
130 <executions>
131 <execution>
132 <id>maven-repo-zip</id>
133 <goals>
134 <goal>single</goal>
135 </goals>
136 <phase>package</phase>
137 <configuration>
138 <appendAssemblyId>false</appendAssemblyId>
139 <attach>false</attach>
140 <finalName>stage/${application.name}-${project.version}</finalName>
141 <descriptors>
142 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
143 </descriptors>
144 </configuration>
145 </execution>
146 <execution>
147 <id>installer-zip</id>
148 <goals>
149 <goal>single</goal>
150 </goals>
151 <phase>package</phase>
152 <configuration>
153 <appendAssemblyId>false</appendAssemblyId>
154 <attach>true</attach>
155 <finalName>${application.name}-${project.version}</finalName>
156 <descriptors>
157 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
158 </descriptors>
159 </configuration>
160 </execution>
161 </executions>
162 </plugin>
163 <plugin>
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-dependency-plugin</artifactId>
166 <executions>
167 <execution>
168 <id>copy-dependencies</id>
169 <goals>
170 <goal>copy-dependencies</goal>
171 </goals>
172 <phase>prepare-package</phase>
173 <configuration>
174 <transitive>false</transitive>
175 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
176 <overWriteReleases>false</overWriteReleases>
177 <overWriteSnapshots>true</overWriteSnapshots>
178 <overWriteIfNewer>true</overWriteIfNewer>
179 <useRepositoryLayout>true</useRepositoryLayout>
180 <addParentPoms>false</addParentPoms>
181 <copyPom>false</copyPom>
182 <excludeGroupIds>org.opendaylight</excludeGroupIds>
183 <scope>provided</scope>
184 </configuration>
185 </execution>
186 </executions>
187 </plugin>
188 <plugin>
189 <artifactId>maven-resources-plugin</artifactId>
190 <executions>
191 <execution>
192 <id>copy-version</id>
193 <goals>
194 <goal>copy-resources</goal>
195 </goals>
196 <!-- here the phase you need -->
197 <phase>validate</phase>
198 <configuration>
199 <outputDirectory>${basedir}/target/stage</outputDirectory>
200 <resources>
201 <resource>
202 <directory>src/main/resources/scripts</directory>
203 <includes>
204 <include>install-feature.sh</include>
205 </includes>
206 <filtering>true</filtering>
207 </resource>
208 </resources>
209 </configuration>
210 </execution>
211 </executions>
212 </plugin>
213 </plugins>
214 </build>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800215
216</project>