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"
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>
31         <version>1.6.0</version>
32     </parent>
33
34     <artifactId>appc-dispatcher-installer</artifactId>
35     <name>APPC Dispatcher - Karaf Installer</name>
36     <packaging>pom</packaging>
37
38     <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>
42
43         <!-- 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/onap-appc-request-handler/${project.version}/xml/features
48         </features.repo.requestHandler>
49         <features.repo.commandExecutor>
50             mvn:org.onap.appc/onap-appc-command-executor/${project.version}/xml/features
51         </features.repo.commandExecutor>
52         <features.repo.lifecycleManagement>
53             mvn:org.onap.appc/onap-appc-lifecycle-management/${project.version}/xml/features
54         </features.repo.lifecycleManagement>
55         <features.repo.licenseManager>
56             mvn:org.onap.appc/onap-appc-license-manager/${project.version}/xml/features
57         </features.repo.licenseManager>
58         <features.repo.workflowManagement>
59             mvn:org.onap.appc/onap-appc-workflow-management/${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>
63
64         <include.transitive.dependencies>false</include.transitive.dependencies>
65     </properties>
66
67     <dependencies>
68
69         <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>
76
77         <dependency>
78             <groupId>org.onap.appc</groupId>
79             <artifactId>onap-appc-request-handler</artifactId>
80             <version>${project.version}</version>
81             <classifier>features</classifier>
82             <type>xml</type>
83         </dependency>
84
85         <dependency>
86             <groupId>org.onap.appc</groupId>
87             <artifactId>onap-appc-command-executor</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>onap-appc-lifecycle-management</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>onap-appc-workflow-management</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>onap-appc-license-manager</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>
215
216 </project>