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