472697c6f9550ae94db5e55f9fa7b8c692b88687
[appc.git] / appc-dg / appc-dg-shared / appc-dg-shared-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</groupId>
26                 <artifactId>appc-dg-shared</artifactId>
27                 <version>1.4.0-SNAPSHOT</version>
28         </parent>
29         <artifactId>appc-dg-shared-installer</artifactId>
30         <name>APPC DG Shared - Karaf Installer</name>
31         <packaging>pom</packaging>
32
33         <properties>
34                 <application.name>appc-dg-shared</application.name>
35                 <features.boot>appc-dg-shared</features.boot>
36                 <features.repositories>mvn:org.onap.appc/appc-dg-shared-features/${project.version}/xml/features</features.repositories>
37         </properties>
38
39         <dependencies>
40                 <dependency>
41                         <groupId>org.onap.appc</groupId>
42                         <artifactId>appc-dg-shared-features</artifactId>
43                         <version>${project.version}</version>
44                         <classifier>features</classifier>
45                         <type>xml</type>
46                 </dependency>
47
48                 <dependency>
49                         <groupId>org.onap.appc</groupId>
50                         <artifactId>appc-ssh-adapter-features</artifactId>
51                         <version>${project.version}</version>
52                         <classifier>features</classifier>
53                         <type>xml</type>
54                 </dependency>
55
56                 <dependency>
57                         <groupId>org.onap.appc</groupId>
58                         <artifactId>appc-netconf-adapter-features</artifactId>
59                         <version>${project.version}</version>
60                         <classifier>features</classifier>
61                         <type>xml</type>
62                 </dependency>
63         </dependencies>
64
65         <build>
66                 <plugins>
67                         <plugin>
68                                 <artifactId>maven-assembly-plugin</artifactId>
69                                 <executions>
70                                         <execution>
71                                                 <id>mavne-repo-zip</id>
72                                                 <goals>
73                                                         <goal>single</goal>
74                                                 </goals>
75                                                 <phase>package</phase>
76                                                 <configuration>
77                                                         <appendAssemblyId>false</appendAssemblyId>
78                                                         <attach>false</attach>
79                                                         <finalName>stage/${application.name}-${project.version}</finalName>
80                                                         <descriptors>
81                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
82                                                         </descriptors>
83                                                 </configuration>
84                                         </execution>
85                                         <execution>
86                                                 <id>installer-zip</id>
87                                                 <goals>
88                                                         <goal>single</goal>
89                                                 </goals>
90                                                 <phase>package</phase>
91                                                 <configuration>
92                                                         <appendAssemblyId>false</appendAssemblyId>
93                                                         <attach>true</attach>
94                                                         <finalName>${application.name}-${project.version}</finalName>
95                                                         <descriptors>
96                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
97                                                         </descriptors>
98                                                 </configuration>
99                                         </execution>
100                                 </executions>
101                         </plugin>
102                         <plugin>
103                                 <groupId>org.apache.maven.plugins</groupId>
104                                 <artifactId>maven-dependency-plugin</artifactId>
105                                 <executions>
106                                         <execution>
107                                                 <id>copy-dependencies</id>
108                                                 <goals>
109                                                         <goal>copy-dependencies</goal>
110                                                 </goals>
111                                                 <phase>prepare-package</phase>
112                                                 <configuration>
113                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
114                                                         <overWriteReleases>false</overWriteReleases>
115                                                         <overWriteSnapshots>true</overWriteSnapshots>
116                                                         <overWriteIfNewer>true</overWriteIfNewer>
117                                                         <useRepositoryLayout>true</useRepositoryLayout>
118                                                         <addParentPoms>false</addParentPoms>
119                                                         <copyPom>false</copyPom>
120                                                         <excludeGroupIds>org.opendaylight</excludeGroupIds>
121                                                 </configuration>
122                                         </execution>
123                                 </executions>
124                         </plugin>
125                         <plugin>
126                                 <artifactId>maven-resources-plugin</artifactId>
127                                 <executions>
128                                         <execution>
129                                                 <id>copy-version</id>
130                                                 <goals>
131                                                         <goal>copy-resources</goal>
132                                                 </goals>
133                                                 <!-- here the phase you need -->
134                                                 <phase>validate</phase>
135                                                 <configuration>
136                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
137                                                         <resources>
138                                                                 <resource>
139                                                                         <directory>src/main/resources/scripts</directory>
140                                                                         <includes>
141                                                                                 <include>install-feature.sh</include>
142                                                                         </includes>
143                                                                         <filtering>true</filtering>
144                                                                 </resource>
145                                                         </resources>
146                                                 </configuration>
147                                         </execution>
148                                 </executions>
149                         </plugin>
150                 </plugins>
151         </build>
152 </project>