blob: db72000fc2cb829014c69e1ff2989e02923a57c8 [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 -->
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090025<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26 xmlns="http://maven.apache.org/POM/4.0.0"
27 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 +090028 <modelVersion>4.0.0</modelVersion>
29 <parent>
30 <groupId>org.onap.ccsdk.parent</groupId>
31 <artifactId>odlparent-lite</artifactId>
32 <version>1.1.0-SNAPSHOT</version>
33 <relativePath/>
34 </parent>
35 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
36 <artifactId>saltstack-adapter-installer</artifactId>
37 <version>0.3.0-SNAPSHOT</version>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090038 <name>ccsdk-sli-adaptors :: saltstack-adapter :: ${project.artifactId}
39 </name>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090040 <packaging>pom</packaging>
41 <properties>
42 <application.name>ccsdk-saltstack-adapter</application.name>
43 <features.boot>${application.name}</features.boot>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090044 <features.repositories>
45 mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features
46 </features.repositories>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090047 <include.transitive.dependencies>false</include.transitive.dependencies>
48 </properties>
49 <dependencies>
50 <dependency>
51 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
52 <artifactId>${application.name}</artifactId>
53 <version>${project.version}</version>
54 <classifier>features</classifier>
55 <type>xml</type>
56 <exclusions>
57 <exclusion>
58 <groupId>*</groupId>
59 <artifactId>*</artifactId>
60 </exclusion>
61 </exclusions>
62 </dependency>
63 <dependency>
64 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
65 <artifactId>saltstack-adapter-provider</artifactId>
66 <version>${project.version}</version>
67 </dependency>
68
69 <dependency>
70 <groupId>javax</groupId>
71 <artifactId>javaee-api</artifactId>
72 <version>7.0</version>
73 </dependency>
74 </dependencies>
75 <build>
76 <plugins>
77 <plugin>
78 <artifactId>maven-assembly-plugin</artifactId>
79 <executions>
80 <execution>
81 <id>maven-repo-zip</id>
82 <goals>
83 <goal>single</goal>
84 </goals>
85 <phase>package</phase>
86 <configuration>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090087 <appendAssemblyId>true</appendAssemblyId>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090088 <attach>false</attach>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +090089 <finalName>
90 stage/${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_mvnrepo_zip.xml
95 </descriptor>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +090096 </descriptors>
97 </configuration>
98 </execution>
99 <execution>
100 <id>installer-zip</id>
101 <goals>
102 <goal>single</goal>
103 </goals>
104 <phase>package</phase>
105 <configuration>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +0900106 <appendAssemblyId>false</appendAssemblyId>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900107 <attach>true</attach>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +0900108 <finalName>${application.name}-${project.version}
109 </finalName>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900110 <descriptors>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +0900111 <descriptor>
112 src/assembly/assemble_installer_zip.xml
113 </descriptor>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900114 </descriptors>
115 </configuration>
116 </execution>
117 </executions>
118 </plugin>
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-dependency-plugin</artifactId>
122 <executions>
123 <execution>
124 <id>copy-dependencies</id>
125 <goals>
126 <goal>copy-dependencies</goal>
127 </goals>
128 <phase>prepare-package</phase>
129 <configuration>
130 <transitive>false</transitive>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +0900131 <outputDirectory>
132 ${project.build.directory}/assembly/system
133 </outputDirectory>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900134 <overWriteReleases>false</overWriteReleases>
135 <overWriteSnapshots>true</overWriteSnapshots>
136 <overWriteIfNewer>true</overWriteIfNewer>
137 <useRepositoryLayout>true</useRepositoryLayout>
138 <addParentPoms>false</addParentPoms>
139 <copyPom>false</copyPom>
140 <excludeGroupIds>org.opendaylight</excludeGroupIds>
141 <scope>provided</scope>
142 </configuration>
143 </execution>
144 </executions>
145 </plugin>
146 <plugin>
147 <artifactId>maven-resources-plugin</artifactId>
148 <executions>
149 <execution>
150 <id>copy-version</id>
151 <goals>
152 <goal>copy-resources</goal>
153 </goals>
154 <!-- here the phase you need -->
155 <phase>validate</phase>
156 <configuration>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +0900157 <outputDirectory>${basedir}/target/stage
158 </outputDirectory>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900159 <resources>
160 <resource>
Ganesh Chandrasekaran021cae42018-07-23 14:27:22 +0900161 <directory>src/main/resources/scripts
162 </directory>
Ganesh Chandrasekaran8fe91222018-06-28 17:39:09 +0900163 <includes>
164 <include>install-feature.sh</include>
165 </includes>
166 <filtering>true</filtering>
167 </resource>
168 </resources>
169 </configuration>
170 </execution>
171 </executions>
172 </plugin>
173 </plugins>
174 </build>
175</project>