Use released 2.4.0 parent poms
[ccsdk/features.git] / sdnr / northbound / energysavings / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk features
5   ~ ================================================================================
6   ~ Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
7   ~ ================================================================================
8   ~ Licensed under the Apache License, Version 2.0 (the "License");
9   ~ you may not use this file except in compliance with the License.
10   ~ You may obtain a copy of the License at
11   ~
12   ~     http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~ Unless required by applicable law or agreed to in writing, software
15   ~ distributed under the License is distributed on an "AS IS" BASIS,
16   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~ See the License for the specific language governing permissions and
18   ~ limitations under the License.
19   ~ ============LICENSE_END=======================================================
20   ~
21   -->
22 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.ccsdk.parent</groupId>
27         <artifactId>odlparent-lite</artifactId>
28         <version>2.4.0</version>
29         <relativePath/>
30     </parent>
31
32     <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
33     <artifactId>energysavings-installer</artifactId>
34     <version>1.1.1-SNAPSHOT</version>
35     <packaging>pom</packaging>
36
37     <name>ccsdk-features :: sdnr-northbound :: ${project.artifactId}</name>
38
39     <properties>
40         <application.name>ccsdk-energysavings</application.name>
41         <features.boot>${application.name}</features.boot>
42         <features.repositories>mvn:org.onap.ccsdk.features.sdnr.northbound/${features.boot}/${project.version}/xml/features</features.repositories>
43         <include.transitive.dependencies>false</include.transitive.dependencies>
44     </properties>
45
46     <dependencies>
47         <dependency>
48             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
49             <artifactId>energysavings-model</artifactId>
50             <version>${project.version}</version>
51         </dependency>
52         <dependency>
53             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
54             <artifactId>energysavings-provider</artifactId>
55             <version>${project.version}</version>
56         </dependency>
57         <dependency>
58             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
59             <artifactId>energysavings-features</artifactId>
60             <version>${project.version}</version>
61             <type>xml</type>
62             <classifier>features</classifier>
63         </dependency>
64     </dependencies>
65
66     <build>
67         <plugins>
68             <plugin>
69                 <artifactId>maven-assembly-plugin</artifactId>
70                 <executions>
71                     <execution>
72                         <id>maven-repo-zip</id>
73                         <goals>
74                             <goal>single</goal>
75                         </goals>
76                         <phase>package</phase>
77                         <configuration>
78                             <attach>false</attach>
79                             <finalName>stage/${application.name}-${project.version}</finalName>
80                             <descriptors>
81                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
82                             </descriptors>
83                             <appendAssemblyId>false</appendAssemblyId>
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                             <attach>true</attach>
94                             <finalName>${application.name}-${project.version}-installer</finalName>
95                             <descriptors>
96                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
97                             </descriptors>
98                             <appendAssemblyId>false</appendAssemblyId>
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                             <transitive>false</transitive>
115                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
116                             <overWriteReleases>false</overWriteReleases>
117                             <overWriteSnapshots>true</overWriteSnapshots>
118                             <overWriteIfNewer>true</overWriteIfNewer>
119                             <useRepositoryLayout>true</useRepositoryLayout>
120                             <addParentPoms>false</addParentPoms>
121                             <copyPom>false</copyPom>
122                             <includeArtifactIds>energysavings-model,energysavings-provider,energysavings-features</includeArtifactIds>
123                         </configuration>
124                     </execution>
125                 </executions>
126             </plugin>
127             <plugin>
128                 <artifactId>maven-resources-plugin</artifactId>
129                 <version>2.6</version>
130                 <executions>
131                     <execution>
132                         <id>copy-version</id>
133                         <goals>
134                             <goal>copy-resources</goal>
135                         </goals><!-- here the phase you need -->
136                         <phase>validate</phase>
137                         <configuration>
138                             <outputDirectory>${basedir}/target/stage</outputDirectory>
139                             <resources>
140                                 <resource>
141                                     <directory>src/main/resources/scripts</directory>
142                                     <includes>
143                                         <include>install-feature.sh</include>
144                                     </includes>
145                                     <filtering>true</filtering>
146                                 </resource>
147                             </resources>
148                         </configuration>
149                     </execution>
150                 </executions>
151             </plugin>
152         </plugins>
153     </build>
154 </project>