1 <?xml version="1.0" encoding="UTF-8"?>
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
12 ~ http://www.apache.org/licenses/LICENSE-2.0
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=======================================================
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>
26 <groupId>org.onap.ccsdk.parent</groupId>
27 <artifactId>odlparent-lite</artifactId>
28 <version>2.5.4</version>
32 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
33 <artifactId>energysavings-installer</artifactId>
34 <version>1.1.1</version>
35 <packaging>pom</packaging>
37 <name>ccsdk-features :: sdnr-northbound :: ${project.artifactId}</name>
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>
48 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
49 <artifactId>energysavings-model</artifactId>
50 <version>${project.version}</version>
53 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
54 <artifactId>energysavings-provider</artifactId>
55 <version>${project.version}</version>
58 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
59 <artifactId>energysavings-features</artifactId>
60 <version>${project.version}</version>
62 <classifier>features</classifier>
69 <artifactId>maven-assembly-plugin</artifactId>
72 <id>maven-repo-zip</id>
76 <phase>package</phase>
78 <attach>false</attach>
79 <finalName>stage/${application.name}-${project.version}</finalName>
81 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
83 <appendAssemblyId>false</appendAssemblyId>
87 <id>installer-zip</id>
91 <phase>package</phase>
94 <finalName>${application.name}-${project.version}-installer</finalName>
96 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
98 <appendAssemblyId>false</appendAssemblyId>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-dependency-plugin</artifactId>
108 <id>copy-dependencies</id>
110 <goal>copy-dependencies</goal>
112 <phase>prepare-package</phase>
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>
128 <artifactId>maven-resources-plugin</artifactId>
129 <version>2.6</version>
132 <id>copy-version</id>
134 <goal>copy-resources</goal>
135 </goals><!-- here the phase you need -->
136 <phase>validate</phase>
138 <outputDirectory>${basedir}/target/stage</outputDirectory>
141 <directory>src/main/resources/scripts</directory>
143 <include>install-feature.sh</include>
145 <filtering>true</filtering>