Use released 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</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>ccsdk-features :: 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     </dependencies>
59
60     <build>
61         <plugins>
62             <plugin>
63                 <artifactId>maven-assembly-plugin</artifactId>
64                 <executions>
65                     <execution>
66                         <id>maven-repo-zip</id>
67                         <goals>
68                             <goal>single</goal>
69                         </goals>
70                         <phase>package</phase>
71                         <configuration>
72                             <attach>true</attach>
73                             <finalName>stage/${application.name}-${project.version}</finalName>
74                             <descriptors>
75                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
76                             </descriptors>
77                             <appendAssemblyId>true</appendAssemblyId>
78                         </configuration>
79                     </execution>
80                     <execution>
81                         <id>installer-zip</id>
82                         <goals>
83                             <goal>single</goal>
84                         </goals>
85                         <phase>package</phase>
86                         <configuration>
87                             <attach>true</attach>
88                             <finalName>${application.name}-${project.version}-installer</finalName>
89                             <descriptors>
90                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
91                             </descriptors>
92                             <appendAssemblyId>false</appendAssemblyId>
93                         </configuration>
94                     </execution>
95                 </executions>
96             </plugin>
97             <plugin>
98                 <groupId>org.apache.maven.plugins</groupId>
99                 <artifactId>maven-dependency-plugin</artifactId>
100                 <executions>
101                     <execution>
102                         <id>copy-dependencies</id>
103                         <goals>
104                             <goal>copy-dependencies</goal>
105                         </goals>
106                         <phase>prepare-package</phase>
107                         <configuration>
108                             <transitive>false</transitive>
109                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
110                             <overWriteReleases>false</overWriteReleases>
111                             <overWriteSnapshots>true</overWriteSnapshots>
112                             <overWriteIfNewer>true</overWriteIfNewer>
113                             <useRepositoryLayout>true</useRepositoryLayout>
114                             <addParentPoms>false</addParentPoms>
115                             <copyPom>false</copyPom>
116                             <includeGroupIds>org.onap.ccsdk.features</includeGroupIds>
117                             <scope>provided</scope>
118                         </configuration>
119                     </execution>
120                 </executions>
121             </plugin>
122             <plugin>
123                 <artifactId>maven-resources-plugin</artifactId>
124                 <version>2.6</version>
125                 <executions>
126                     <execution>
127                         <id>copy-version</id>
128                         <goals>
129                             <goal>copy-resources</goal>
130                         </goals><!-- here the phase you need -->
131                         <phase>validate</phase>
132                         <configuration>
133                             <outputDirectory>${basedir}/target/stage</outputDirectory>
134                             <resources>
135                                 <resource>
136                                     <directory>src/main/resources/scripts</directory>
137                                     <includes>
138                                         <include>install-feature.sh</include>
139                                     </includes>
140                                     <filtering>true</filtering>
141                                 </resource>
142                             </resources>
143                         </configuration>
144                     </execution>
145
146                 </executions>
147             </plugin>
148
149         </plugins>
150     </build>
151 </project>