Release appc
[appc.git] / appc-lifecycle-management / appc-lifecycle-management-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   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=========================================================
21   -->
22 <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>
25         <groupId>org.onap.appc.parent</groupId>
26         <artifactId>odlparent-lite</artifactId>
27         <version>2.6.1</version>
28         <relativePath />
29     </parent>
30
31     <artifactId>appc-lifecycle-management-installer</artifactId>
32     <groupId>org.onap.appc</groupId>
33     <version>1.6.3</version>
34     <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>
41             mvn:org.onap.appc/onap-appc-lifecycle-management/${project.version}/xml/features
42         </features.repositories>
43         <include.transitive.dependencies>false</include.transitive.dependencies>
44     </properties>
45
46     <dependencies>
47         <dependency>
48             <groupId>org.onap.appc</groupId>
49             <artifactId>onap-appc-lifecycle-management</artifactId>
50             <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>
61             <groupId>org.onap.appc</groupId>
62             <artifactId>appc-lifecycle-management-api</artifactId>
63             <version>${project.version}</version>
64         </dependency>
65         <dependency>
66             <groupId>org.onap.appc</groupId>
67             <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>