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