Use 1.5.1-SNAPSHOT version of parent pom
[ccsdk/features.git] / features / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Copyright © 2018 Bell Canada.
4
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16 -->
17 <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">
18         <modelVersion>4.0.0</modelVersion>
19
20         <parent>
21                 <groupId>org.onap.ccsdk.parent</groupId>
22                 <artifactId>odlparent-lite</artifactId>
23                 <version>1.5.1-SNAPSHOT</version>
24                 <relativePath/>
25         </parent>
26
27         <groupId>org.onap.ccsdk.features</groupId>
28         <artifactId>features-installer</artifactId>
29         <version>0.7.0-SNAPSHOT</version>
30         <packaging>pom</packaging>
31
32         <name>Blueprints Processor :: features :: ${project.artifactId}</name>
33
34         <properties>
35                 <application.name>ccsdk-features-all</application.name>
36                 <features.boot>${application.name}</features.boot>
37                 <features.repositories>mvn:org.onap.ccsdk.features/${features.boot}/${project.version}/xml/features
38                 </features.repositories>
39                 <include.transitive.dependencies>false</include.transitive.dependencies>
40         </properties>
41
42         <dependencies>
43
44                 <dependency>
45                         <groupId>org.onap.ccsdk.features</groupId>
46                         <artifactId>${application.name}</artifactId>
47                         <version>${project.version}</version>
48                         <type>xml</type>
49                         <classifier>features</classifier>
50                         <exclusions>
51                                 <exclusion>
52                                         <groupId>*</groupId>
53                                         <artifactId>*</artifactId>
54                                 </exclusion>
55                         </exclusions>
56                 </dependency>
57
58
59         </dependencies>
60
61         <build>
62                 <plugins>
63                         <plugin>
64                                 <artifactId>maven-assembly-plugin</artifactId>
65                                 <executions>
66                                         <execution>
67                                                 <id>maven-repo-zip</id>
68                                                 <goals>
69                                                         <goal>single</goal>
70                                                 </goals>
71                                                 <phase>package</phase>
72                                                 <configuration>
73                                                         <attach>true</attach>
74                                                         <finalName>stage/${application.name}-${project.version}</finalName>
75                                                         <descriptors>
76                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
77                                                         </descriptors>
78                                                         <appendAssemblyId>true</appendAssemblyId>
79                                                 </configuration>
80                                         </execution>
81                                         <execution>
82                                                 <id>installer-zip</id>
83                                                 <goals>
84                                                         <goal>single</goal>
85                                                 </goals>
86                                                 <phase>package</phase>
87                                                 <configuration>
88                                                         <attach>true</attach>
89                                                         <finalName>${application.name}-${project.version}-installer</finalName>
90                                                         <descriptors>
91                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
92                                                         </descriptors>
93                                                         <appendAssemblyId>false</appendAssemblyId>
94                                                 </configuration>
95                                         </execution>
96                                 </executions>
97                         </plugin>
98                         <plugin>
99                                 <groupId>org.apache.maven.plugins</groupId>
100                                 <artifactId>maven-dependency-plugin</artifactId>
101                                 <executions>
102                                         <execution>
103                                                 <id>copy-dependencies</id>
104                                                 <goals>
105                                                         <goal>copy-dependencies</goal>
106                                                 </goals>
107                                                 <phase>prepare-package</phase>
108                                                 <configuration>
109                                                         <transitive>false</transitive>
110                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
111                                                         <overWriteReleases>false</overWriteReleases>
112                                                         <overWriteSnapshots>true</overWriteSnapshots>
113                                                         <overWriteIfNewer>true</overWriteIfNewer>
114                                                         <useRepositoryLayout>true</useRepositoryLayout>
115                                                         <addParentPoms>false</addParentPoms>
116                                                         <copyPom>false</copyPom>
117                                                         <includeGroupIds>org.onap.ccsdk.features</includeGroupIds>
118                                                         <scope>provided</scope>
119                                                 </configuration>
120                                         </execution>
121                                 </executions>
122                         </plugin>
123                         <plugin>
124                                 <artifactId>maven-resources-plugin</artifactId>
125                                 <version>2.6</version>
126                                 <executions>
127                                         <execution>
128                                                 <id>copy-version</id>
129                                                 <goals>
130                                                         <goal>copy-resources</goal>
131                                                 </goals><!-- here the phase you need -->
132                                                 <phase>validate</phase>
133                                                 <configuration>
134                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
135                                                         <resources>
136                                                                 <resource>
137                                                                         <directory>src/main/resources/scripts</directory>
138                                                                         <includes>
139                                                                                 <include>install-feature.sh</include>
140                                                                         </includes>
141                                                                         <filtering>true</filtering>
142                                                                 </resource>
143                                                         </resources>
144                                                 </configuration>
145                                         </execution>
146
147                                 </executions>
148                         </plugin>
149
150                 </plugins>
151         </build>
152 </project>