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