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