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