Release ccsdk/sli/adaptors
[ccsdk/sli/adaptors.git] / saltstack-adapter / saltstack-adapter-installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : CCSDK
5   ================================================================================
6   Copyright (C) 2018 Samsung Electronics. All rights reserved.
7   ================================================================================
8
9   =============================================================================
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
22
23   ============LICENSE_END=========================================================
24   -->
25
26 <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">
27     <modelVersion>4.0.0</modelVersion>
28     <parent>
29         <groupId>org.onap.ccsdk.parent</groupId>
30         <artifactId>odlparent-lite</artifactId>
31         <version>1.5.6</version>
32         <relativePath/>
33     </parent>
34     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
35     <artifactId>saltstack-adapter-installer</artifactId>
36     <version>0.7.3</version>
37     <name>ccsdk-sli-adaptors :: saltstack-adapter :: ${project.artifactId}
38     </name>
39     <packaging>pom</packaging>
40     <properties>
41         <application.name>ccsdk-saltstack-adapter</application.name>
42         <features.boot>${application.name}</features.boot>
43         <features.repositories>
44             mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features
45         </features.repositories>
46         <include.transitive.dependencies>false</include.transitive.dependencies>
47     </properties>
48     <dependencies>
49
50         <dependency>
51             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
52             <artifactId>saltstack-adapter-provider</artifactId>
53             <version>${project.version}</version>
54         </dependency>
55
56     </dependencies>
57     <build>
58         <plugins>
59             <plugin>
60                 <artifactId>maven-assembly-plugin</artifactId>
61                 <executions>
62                     <execution>
63                         <id>maven-repo-zip</id>
64                         <goals>
65                             <goal>single</goal>
66                         </goals>
67                         <phase>package</phase>
68                         <configuration>
69                             <appendAssemblyId>true</appendAssemblyId>
70                             <attach>true</attach>
71                             <finalName>
72                                 stage/${application.name}-${project.version}
73                             </finalName>
74                             <descriptors>
75                                 <descriptor>
76                                     src/assembly/assemble_mvnrepo_zip.xml
77                                 </descriptor>
78                             </descriptors>
79                             <appendAssemblyId>true</appendAssemblyId>
80                         </configuration>
81                     </execution>
82                     <execution>
83                         <id>installer-zip</id>
84                         <goals>
85                             <goal>single</goal>
86                         </goals>
87                         <phase>package</phase>
88                         <configuration>
89                             <appendAssemblyId>false</appendAssemblyId>
90                             <attach>true</attach>
91                             <finalName>${application.name}-${project.version}
92                             </finalName>
93                             <descriptors>
94                                 <descriptor>
95                                     src/assembly/assemble_installer_zip.xml
96                                 </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>
116                                 ${project.build.directory}/assembly/system
117                             </outputDirectory>
118                             <overWriteReleases>false</overWriteReleases>
119                             <overWriteSnapshots>true</overWriteSnapshots>
120                             <overWriteIfNewer>true</overWriteIfNewer>
121                             <useRepositoryLayout>true</useRepositoryLayout>
122                             <addParentPoms>false</addParentPoms>
123                             <copyPom>false</copyPom>
124                             <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
125                             <scope>provided</scope>
126                         </configuration>
127                     </execution>
128                 </executions>
129             </plugin>
130             <plugin>
131                 <artifactId>maven-resources-plugin</artifactId>
132                 <executions>
133                     <execution>
134                         <id>copy-version</id>
135                         <goals>
136                             <goal>copy-resources</goal>
137                         </goals>
138                         <!-- here the phase you need -->
139                         <phase>validate</phase>
140                         <configuration>
141                             <outputDirectory>${basedir}/target/stage
142                             </outputDirectory>
143                             <resources>
144                                 <resource>
145                                     <directory>src/main/resources/scripts
146                                     </directory>
147                                     <includes>
148                                         <include>install-feature.sh</include>
149                                     </includes>
150                                     <filtering>true</filtering>
151                                 </resource>
152                             </resources>
153                         </configuration>
154                     </execution>
155                 </executions>
156             </plugin>
157         </plugins>
158     </build>
159 </project>