More lic header updates to various appc xml files
[appc.git] / appc-inbound / appc-artifact-handler / 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"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <artifactId>appc-artifact-handler</artifactId>
27                 <groupId>org.onap.appc</groupId>
28                 <version>1.4.0-SNAPSHOT</version>
29         </parent>
30         <artifactId>appc-artifact-handler-installer</artifactId>
31         <name>appc-artifact-handler-installer</name>
32         <packaging>pom</packaging>
33
34         <properties>
35                 <application.name>appc-artifact-handler</application.name>
36                 <features.boot>appc-artifact-handler</features.boot>
37                 <features.repositories>mvn:org.onap.appc/appc-artifact-handler-features/${project.version}/xml/features</features.repositories>
38                 <include.transitive.dependencies>false</include.transitive.dependencies>
39         </properties>
40
41         <dependencies>
42
43                 <dependency>
44                         <groupId>org.onap.appc</groupId>
45                         <artifactId>appc-artifact-handler-features</artifactId>
46                         <classifier>features</classifier>
47                         <type>xml</type>
48                         <exclusions>
49                                 <exclusion>
50                                         <groupId>*</groupId>
51                                         <artifactId>*</artifactId>
52                                 </exclusion>
53                         </exclusions>
54                 </dependency>
55                 <dependency>
56                         <groupId>org.onap.appc</groupId>
57                         <artifactId>appc-artifact-handler-provider</artifactId>
58                 </dependency>
59                 
60                 <dependency>
61                         <groupId>org.onap.appc</groupId>
62                         <artifactId>appc-artifact-handler-provider</artifactId>
63                         <version>${project.version}</version>
64                         <classifier>config</classifier>
65                         <type>xml</type>
66                 </dependency>
67
68         </dependencies>
69
70         <build>
71                 <plugins>
72                         <plugin>
73                                 <artifactId>maven-assembly-plugin</artifactId>
74                                 <executions>
75                                         <execution>
76                                                 <id>maven-repo-zip</id>
77                                                 <goals>
78                                                         <goal>single</goal>
79                                                 </goals>
80                                                 <phase>package</phase>
81                                                 <configuration>
82                                                         <appendAssemblyId>false</appendAssemblyId>
83                                                         <attach>false</attach>
84                                                         <finalName>stage/${application.name}-${project.version}</finalName>
85                                                         <descriptors>
86                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
87                                                         </descriptors>
88                                                 </configuration>
89                                         </execution>
90                                         <execution>
91                                                 <id>installer-zip</id>
92                                                 <goals>
93                                                         <goal>single</goal>
94                                                 </goals>
95                                                 <phase>package</phase>
96                                                 <configuration>
97                                                         <appendAssemblyId>false</appendAssemblyId>
98                                                         <attach>true</attach>
99                                                         <finalName>${application.name}-${project.version}</finalName>
100                                                         <descriptors>
101                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
102                                                         </descriptors>
103                                                 </configuration>
104                                         </execution>
105                                 </executions>
106                         </plugin>
107                         <plugin>
108                                 <groupId>org.apache.maven.plugins</groupId>
109                                 <artifactId>maven-dependency-plugin</artifactId>
110                                 <executions>
111                                         <execution>
112                                                 <id>copy-dependencies</id>
113                                                 <goals>
114                                                         <goal>copy-dependencies</goal>
115                                                 </goals>
116                                                 <phase>prepare-package</phase>
117                                                 <configuration>
118                                                         <transitive>false</transitive>
119                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
120                                                         <overWriteReleases>false</overWriteReleases>
121                                                         <overWriteSnapshots>true</overWriteSnapshots>
122                                                         <overWriteIfNewer>true</overWriteIfNewer>
123                                                         <useRepositoryLayout>true</useRepositoryLayout>
124                                                         <addParentPoms>false</addParentPoms>
125                                                         <copyPom>false</copyPom>
126                                                         <excludeGroupIds>org.opendaylight</excludeGroupIds>
127                                                         <scope>provided</scope>
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>