Release appc
[appc.git] / appc-dispatcher / appc-dispatcher-installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
5   ================================================================================
6   Copyright (C) 2017-2018 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   ============LICENSE_END=========================================================
23   -->
24 <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">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <artifactId>appc-dispatcher</artifactId>
28         <groupId>org.onap.appc</groupId>
29         <version>1.7.2</version>
30     </parent>
31
32     <artifactId>appc-dispatcher-installer</artifactId>
33     <name>APPC Dispatcher - Karaf Installer</name>
34     <packaging>pom</packaging>
35
36     <properties>
37         <application.name>appc-dispatcher</application.name>
38         <features.boot>appc-dispatcher</features.boot>
39         <features.boot.licenseManager>appc-license-manager</features.boot.licenseManager>
40
41         <!-- SEPARATED FEATURE INSTALLS -->
42         <features.repo.dispatcher>mvn:org.onap.appc/appc-dispatcher-features/${project.version}/xml/features
43         </features.repo.dispatcher>
44         <features.repo.requestHandler>
45             mvn:org.onap.appc/onap-appc-request-handler/${project.version}/xml/features
46         </features.repo.requestHandler>
47         <features.repo.commandExecutor>
48             mvn:org.onap.appc/onap-appc-command-executor/${project.version}/xml/features
49         </features.repo.commandExecutor>
50         <features.repo.lifecycleManagement>
51             mvn:org.onap.appc/onap-appc-lifecycle-management/${project.version}/xml/features
52         </features.repo.lifecycleManagement>
53         <features.repo.licenseManager>
54             mvn:org.onap.appc/onap-appc-license-manager/${project.version}/xml/features
55         </features.repo.licenseManager>
56         <features.repo.workflowManagement>
57             mvn:org.onap.appc/onap-appc-workflow-management/${project.version}/xml/features
58         </features.repo.workflowManagement>
59         <features.repo.lockManager>mvn:org.onap.appc/lock-manager-features/${project.version}/xml/features
60         </features.repo.lockManager>
61
62         <include.transitive.dependencies>false</include.transitive.dependencies>
63     </properties>
64
65     <dependencies>
66
67         <dependency>
68             <groupId>org.onap.appc</groupId>
69             <artifactId>appc-dispatcher-features</artifactId>
70             <version>${project.version}</version>
71             <classifier>features</classifier>
72             <type>xml</type>
73         </dependency>
74
75         <dependency>
76             <groupId>org.onap.appc</groupId>
77             <artifactId>onap-appc-request-handler</artifactId>
78             <version>${project.version}</version>
79             <classifier>features</classifier>
80             <type>xml</type>
81         </dependency>
82
83         <dependency>
84             <groupId>org.onap.appc</groupId>
85             <artifactId>onap-appc-command-executor</artifactId>
86             <version>${project.version}</version>
87             <classifier>features</classifier>
88             <type>xml</type>
89         </dependency>
90
91         <dependency>
92             <groupId>org.onap.appc</groupId>
93             <artifactId>onap-appc-lifecycle-management</artifactId>
94             <version>${project.version}</version>
95             <classifier>features</classifier>
96             <type>xml</type>
97         </dependency>
98
99         <dependency>
100             <groupId>org.onap.appc</groupId>
101             <artifactId>onap-appc-workflow-management</artifactId>
102             <version>${project.version}</version>
103             <classifier>features</classifier>
104             <type>xml</type>
105         </dependency>
106
107         <dependency>
108             <groupId>org.onap.appc</groupId>
109             <artifactId>onap-appc-license-manager</artifactId>
110             <version>${project.version}</version>
111             <classifier>features</classifier>
112             <type>xml</type>
113         </dependency>
114
115         <dependency>
116             <groupId>org.onap.appc</groupId>
117             <artifactId>lock-manager-features</artifactId>
118             <version>${project.version}</version>
119             <classifier>features</classifier>
120             <type>xml</type>
121         </dependency>
122     </dependencies>
123
124     <build>
125         <plugins>
126             <plugin>
127                 <artifactId>maven-assembly-plugin</artifactId>
128                 <executions>
129                     <execution>
130                         <id>maven-repo-zip</id>
131                         <goals>
132                             <goal>single</goal>
133                         </goals>
134                         <phase>package</phase>
135                         <configuration>
136                             <appendAssemblyId>false</appendAssemblyId>
137                             <attach>false</attach>
138                             <finalName>stage/${application.name}-${project.version}</finalName>
139                             <descriptors>
140                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
141                             </descriptors>
142                         </configuration>
143                     </execution>
144                     <execution>
145                         <id>installer-zip</id>
146                         <goals>
147                             <goal>single</goal>
148                         </goals>
149                         <phase>package</phase>
150                         <configuration>
151                             <appendAssemblyId>false</appendAssemblyId>
152                             <attach>true</attach>
153                             <finalName>${application.name}-${project.version}</finalName>
154                             <descriptors>
155                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
156                             </descriptors>
157                         </configuration>
158                     </execution>
159                 </executions>
160             </plugin>
161             <plugin>
162                 <groupId>org.apache.maven.plugins</groupId>
163                 <artifactId>maven-dependency-plugin</artifactId>
164                 <executions>
165                     <execution>
166                         <id>copy-dependencies</id>
167                         <goals>
168                             <goal>copy-dependencies</goal>
169                         </goals>
170                         <phase>prepare-package</phase>
171                         <configuration>
172                             <transitive>false</transitive>
173                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
174                             <overWriteReleases>false</overWriteReleases>
175                             <overWriteSnapshots>true</overWriteSnapshots>
176                             <overWriteIfNewer>true</overWriteIfNewer>
177                             <useRepositoryLayout>true</useRepositoryLayout>
178                             <addParentPoms>false</addParentPoms>
179                             <copyPom>false</copyPom>
180                             <excludeGroupIds>org.opendaylight</excludeGroupIds>
181                             <scope>provided</scope>
182                         </configuration>
183                     </execution>
184                 </executions>
185             </plugin>
186             <plugin>
187                 <artifactId>maven-resources-plugin</artifactId>
188                 <version>3.1.0</version>
189                 <executions>
190                     <execution>
191                         <id>copy-version</id>
192                         <goals>
193                             <goal>copy-resources</goal>
194                         </goals>
195                         <!-- here the phase you need -->
196                         <phase>validate</phase>
197                         <configuration>
198                             <outputDirectory>${basedir}/target/stage</outputDirectory>
199                             <resources>
200                                 <resource>
201                                     <directory>src/main/resources/scripts</directory>
202                                     <includes>
203                                         <include>install-feature.sh</include>
204                                     </includes>
205                                     <filtering>true</filtering>
206                                 </resource>
207                             </resources>
208                         </configuration>
209                     </execution>
210                 </executions>
211             </plugin>
212         </plugins>
213     </build>
214
215 </project>