Release appc
[appc.git] / appc-core / appc-core-installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
5   ================================================================================
6   Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11   
12        http://www.apache.org/licenses/LICENSE-2.0
13   
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20   -->
21 <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">
22   <modelVersion>4.0.0</modelVersion>
23   <parent>
24     <groupId>org.onap.appc</groupId>
25     <artifactId>appc-core</artifactId>
26     <version>1.7.2</version>
27   </parent>
28   <artifactId>appc-core-installer</artifactId>
29   <packaging>pom</packaging>
30   
31   <properties>
32     <application.name>appc-core</application.name>
33     <features.boot>appc-core</features.boot>
34     
35     <!-- SEPARATED FEATURE INSTALLS -->
36     <features.repo.core>mvn:org.onap.appc/onap-appc-core/${project.version}/xml/features</features.repo.core>
37     <features.repo.common>mvn:org.onap.appc/onap-appc-common/${project.version}/xml/features</features.repo.common>
38   </properties>
39   <dependencies>
40     <dependency>
41         <groupId>org.onap.appc</groupId>
42         <artifactId>onap-appc-common</artifactId>
43         <version>${project.version}</version>
44         <type>xml</type>
45         <classifier>features</classifier>
46     </dependency>
47     <dependency>
48         <groupId>org.onap.appc</groupId>
49         <artifactId>onap-appc-core</artifactId>
50         <version>${project.version}</version>
51         <type>xml</type>
52         <classifier>features</classifier>
53     </dependency>
54   </dependencies>
55     <build>
56     <plugins>
57       <plugin>
58         <artifactId>maven-assembly-plugin</artifactId>
59         <executions>
60           <execution>
61             <id>maven-repo-zip</id>
62             <goals>
63               <goal>single</goal>
64             </goals>
65             <phase>package</phase>
66             <configuration>
67               <appendAssemblyId>false</appendAssemblyId>
68               <attach>false</attach>
69               <finalName>stage/${application.name}-${project.version}</finalName>
70               <descriptors>
71                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
72               </descriptors>
73             </configuration>
74           </execution>
75           <execution>
76             <id>installer-zip</id>
77             <goals>
78               <goal>single</goal>
79             </goals>
80             <phase>package</phase>
81             <configuration>
82               <appendAssemblyId>false</appendAssemblyId>
83               <attach>true</attach>
84               <finalName>${application.name}-${project.version}</finalName>
85               <descriptors>
86                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
87               </descriptors>
88             </configuration>
89           </execution>
90         </executions>
91       </plugin>
92       <plugin>
93         <groupId>org.apache.maven.plugins</groupId>
94         <artifactId>maven-dependency-plugin</artifactId>
95         <executions>
96           <execution>
97             <id>copy-dependencies</id>
98             <goals>
99               <goal>copy-dependencies</goal>
100             </goals>
101             <phase>prepare-package</phase>
102             <configuration>
103               <transitive>false</transitive>
104               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
105               <overWriteReleases>false</overWriteReleases>
106               <overWriteSnapshots>true</overWriteSnapshots>
107               <overWriteIfNewer>true</overWriteIfNewer>
108               <useRepositoryLayout>true</useRepositoryLayout>
109               <addParentPoms>false</addParentPoms>
110               <copyPom>false</copyPom>
111               <excludeGroupIds>org.opendaylight</excludeGroupIds>
112               <scope>provided</scope>
113             </configuration>
114           </execution>
115         </executions>
116       </plugin>
117       <plugin>
118         <artifactId>maven-resources-plugin</artifactId>
119         <executions>
120           <execution>
121             <id>copy-version</id>
122             <goals>
123               <goal>copy-resources</goal>
124             </goals>
125             <!-- here the phase you need -->
126             <phase>validate</phase>
127             <configuration>
128               <outputDirectory>${basedir}/target/stage</outputDirectory>
129               <resources>
130                 <resource>
131                   <directory>src/main/resources/scripts</directory>
132                   <includes>
133                     <include>install-feature.sh</include>
134                   </includes>
135                   <filtering>true</filtering>
136                 </resource>
137               </resources>
138             </configuration>
139           </execution>
140         </executions>
141       </plugin>
142     </plugins>
143   </build>
144     <version>1.7.2</version>
145 </project>