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