blob: 5951b618ae57c081392239cd824ab118b617b733 [file] [log] [blame]
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +09001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
Ganesh Chandrasekaranf8ebec62018-07-18 15:27:52 +09004 ONAP : CCSDK
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +09005 ================================================================================
Ganesh Chandrasekaranf8ebec62018-07-18 15:27:52 +09006 Copyright (C) 2018 Samsung Electronics. All rights reserved.
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +09007 ================================================================================
Ganesh Chandrasekaranf8ebec62018-07-18 15:27:52 +09008
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +09009 =============================================================================
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
Ganesh Chandrasekaranf8ebec62018-07-18 15:27:52 +090022
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090023 ============LICENSE_END=========================================================
24 -->
Timoney, Dan (dt5972)21ec6552019-01-08 12:14:12 -050025<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">
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090026 <modelVersion>4.0.0</modelVersion>
27 <parent>
28 <groupId>org.onap.ccsdk.parent</groupId>
29 <artifactId>odlparent-lite</artifactId>
Timoney, Dan (dt5972)54f98b32019-12-02 12:35:00 -050030 <version>1.5.1-SNAPSHOT</version>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090031 <relativePath/>
32 </parent>
33 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
34 <artifactId>saltstack-adapter-installer</artifactId>
Timoney, Dan (dt5972)4736bef2019-09-10 16:16:07 -040035 <version>0.7.0-SNAPSHOT</version>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090036 <name>ccsdk-sli-adaptors :: saltstack-adapter :: ${project.artifactId}
37 </name>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090038 <packaging>pom</packaging>
39 <properties>
40 <application.name>ccsdk-saltstack-adapter</application.name>
41 <features.boot>${application.name}</features.boot>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090042 <features.repositories>
43 mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features
44 </features.repositories>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090045 <include.transitive.dependencies>false</include.transitive.dependencies>
46 </properties>
47 <dependencies>
Timoney, Dan (dt5972)bc18e2c2019-12-13 12:42:39 -050048
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090049 <dependency>
50 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
51 <artifactId>saltstack-adapter-provider</artifactId>
52 <version>${project.version}</version>
53 </dependency>
54
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090055 </dependencies>
56 <build>
57 <plugins>
58 <plugin>
59 <artifactId>maven-assembly-plugin</artifactId>
60 <executions>
61 <execution>
62 <id>maven-repo-zip</id>
63 <goals>
64 <goal>single</goal>
65 </goals>
66 <phase>package</phase>
67 <configuration>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090068 <appendAssemblyId>true</appendAssemblyId>
Timoney, Dan (dt5972)c6a49672019-01-30 10:55:46 -050069 <attach>true</attach>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090070 <finalName>
71 stage/${application.name}-${project.version}
72 </finalName>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090073 <descriptors>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090074 <descriptor>
75 src/assembly/assemble_mvnrepo_zip.xml
76 </descriptor>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090077 </descriptors>
Timoney, Dan (dt5972)c6a49672019-01-30 10:55:46 -050078 <appendAssemblyId>true</appendAssemblyId>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090079 </configuration>
80 </execution>
81 <execution>
82 <id>installer-zip</id>
83 <goals>
84 <goal>single</goal>
85 </goals>
86 <phase>package</phase>
87 <configuration>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090088 <appendAssemblyId>false</appendAssemblyId>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090089 <attach>true</attach>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090090 <finalName>${application.name}-${project.version}
91 </finalName>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090092 <descriptors>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090093 <descriptor>
94 src/assembly/assemble_installer_zip.xml
95 </descriptor>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090096 </descriptors>
Timoney, Dan (dt5972)c6a49672019-01-30 10:55:46 -050097 <appendAssemblyId>false</appendAssemblyId>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090098 </configuration>
99 </execution>
100 </executions>
101 </plugin>
102 <plugin>
103 <groupId>org.apache.maven.plugins</groupId>
104 <artifactId>maven-dependency-plugin</artifactId>
105 <executions>
106 <execution>
107 <id>copy-dependencies</id>
108 <goals>
109 <goal>copy-dependencies</goal>
110 </goals>
111 <phase>prepare-package</phase>
112 <configuration>
113 <transitive>false</transitive>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +0900114 <outputDirectory>
115 ${project.build.directory}/assembly/system
116 </outputDirectory>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900117 <overWriteReleases>false</overWriteReleases>
118 <overWriteSnapshots>true</overWriteSnapshots>
119 <overWriteIfNewer>true</overWriteIfNewer>
120 <useRepositoryLayout>true</useRepositoryLayout>
121 <addParentPoms>false</addParentPoms>
122 <copyPom>false</copyPom>
Timoney, Dan (dt5972)98e280c2019-12-05 14:09:05 -0500123 <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900124 <scope>provided</scope>
125 </configuration>
126 </execution>
127 </executions>
128 </plugin>
129 <plugin>
130 <artifactId>maven-resources-plugin</artifactId>
131 <executions>
132 <execution>
133 <id>copy-version</id>
134 <goals>
135 <goal>copy-resources</goal>
136 </goals>
137 <!-- here the phase you need -->
138 <phase>validate</phase>
139 <configuration>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +0900140 <outputDirectory>${basedir}/target/stage
141 </outputDirectory>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900142 <resources>
143 <resource>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +0900144 <directory>src/main/resources/scripts
145 </directory>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900146 <includes>
147 <include>install-feature.sh</include>
148 </includes>
149 <filtering>true</filtering>
150 </resource>
151 </resources>
152 </configuration>
153 </execution>
154 </executions>
155 </plugin>
156 </plugins>
157 </build>
158</project>