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 <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">
26     <modelVersion>4.0.0</modelVersion>
27     <parent>
28         <groupId>org.onap.ccsdk.parent</groupId>
29         <artifactId>odlparent-lite</artifactId>
30         <version>1.5.2</version>
31         <relativePath/>
32     </parent>
33     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
34     <artifactId>saltstack-adapter-installer</artifactId>
35     <version>0.7.1</version>
36     <name>ccsdk-sli-adaptors :: saltstack-adapter :: ${project.artifactId}
37     </name>
38     <packaging>pom</packaging>
39     <properties>
40         <application.name>ccsdk-saltstack-adapter</application.name>
41         <features.boot>${application.name}</features.boot>
42         <features.repositories>
43             mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features
44         </features.repositories>
45         <include.transitive.dependencies>false</include.transitive.dependencies>
46     </properties>
47     <dependencies>
48
49         <dependency>
50             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
51             <artifactId>saltstack-adapter-provider</artifactId>
52             <version>${project.version}</version>
53         </dependency>
54
55     </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>
68                             <appendAssemblyId>true</appendAssemblyId>
69                             <attach>true</attach>
70                             <finalName>
71                                 stage/${application.name}-${project.version}
72                             </finalName>
73                             <descriptors>
74                                 <descriptor>
75                                     src/assembly/assemble_mvnrepo_zip.xml
76                                 </descriptor>
77                             </descriptors>
78                             <appendAssemblyId>true</appendAssemblyId>
79                         </configuration>
80                     </execution>
81                     <execution>
82                         <id>installer-zip</id>
83                         <goals>
84                             <goal>single</goal>
85                         </goals>
86                         <phase>package</phase>
87                         <configuration>
88                             <appendAssemblyId>false</appendAssemblyId>
89                             <attach>true</attach>
90                             <finalName>${application.name}-${project.version}
91                             </finalName>
92                             <descriptors>
93                                 <descriptor>
94                                     src/assembly/assemble_installer_zip.xml
95                                 </descriptor>
96                             </descriptors>
97                             <appendAssemblyId>false</appendAssemblyId>
98                         </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>
114                             <outputDirectory>
115                                 ${project.build.directory}/assembly/system
116                             </outputDirectory>
117                             <overWriteReleases>false</overWriteReleases>
118                             <overWriteSnapshots>true</overWriteSnapshots>
119                             <overWriteIfNewer>true</overWriteIfNewer>
120                             <useRepositoryLayout>true</useRepositoryLayout>
121                             <addParentPoms>false</addParentPoms>
122                             <copyPom>false</copyPom>
123                             <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
124                             <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>
140                             <outputDirectory>${basedir}/target/stage
141                             </outputDirectory>
142                             <resources>
143                                 <resource>
144                                     <directory>src/main/resources/scripts
145                                     </directory>
146                                     <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>