46cb2dca9da86122173bec9d77733d4c4c80492c
[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="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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
29     <parent>
30         <groupId>org.onap.ccsdk.parent</groupId>
31         <artifactId>odlparent-lite</artifactId>
32         <version>2.1.0-SNAPSHOT</version>
33         <relativePath/>
34     </parent>
35
36     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
37     <artifactId>saltstack-adapter-installer</artifactId>
38     <version>1.1.0-SNAPSHOT</version>
39     <packaging>pom</packaging>
40
41     <name>ccsdk-sli-adaptors :: saltstack-adapter :: ${project.artifactId}
42     </name>
43
44     <properties>
45         <application.name>ccsdk-saltstack-adapter</application.name>
46         <features.boot>${application.name}</features.boot>
47         <features.repositories>
48             mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features
49         </features.repositories>
50         <include.transitive.dependencies>false</include.transitive.dependencies>
51     </properties>
52
53     <dependencies>
54
55         <dependency>
56             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
57             <artifactId>saltstack-adapter-provider</artifactId>
58             <version>${project.version}</version>
59         </dependency>
60
61     </dependencies>
62
63     <build>
64         <plugins>
65             <plugin>
66                 <artifactId>maven-assembly-plugin</artifactId>
67                 <executions>
68                     <execution>
69                         <id>maven-repo-zip</id>
70                         <goals>
71                             <goal>single</goal>
72                         </goals>
73                         <phase>package</phase>
74                         <configuration>
75                             <appendAssemblyId>true</appendAssemblyId>
76                             <attach>true</attach>
77                             <finalName>
78                                 stage/${application.name}-${project.version}
79                             </finalName>
80                             <descriptors>
81                                 <descriptor>
82                                     src/assembly/assemble_mvnrepo_zip.xml
83                                 </descriptor>
84                             </descriptors>
85                             <appendAssemblyId>true</appendAssemblyId>
86                         </configuration>
87                     </execution>
88                     <execution>
89                         <id>installer-zip</id>
90                         <goals>
91                             <goal>single</goal>
92                         </goals>
93                         <phase>package</phase>
94                         <configuration>
95                             <appendAssemblyId>false</appendAssemblyId>
96                             <attach>true</attach>
97                             <finalName>${application.name}-${project.version}
98                             </finalName>
99                             <descriptors>
100                                 <descriptor>
101                                     src/assembly/assemble_installer_zip.xml
102                                 </descriptor>
103                             </descriptors>
104                             <appendAssemblyId>false</appendAssemblyId>
105                         </configuration>
106                     </execution>
107                 </executions>
108             </plugin>
109             <plugin>
110                 <groupId>org.apache.maven.plugins</groupId>
111                 <artifactId>maven-dependency-plugin</artifactId>
112                 <executions>
113                     <execution>
114                         <id>copy-dependencies</id>
115                         <goals>
116                             <goal>copy-dependencies</goal>
117                         </goals>
118                         <phase>prepare-package</phase>
119                         <configuration>
120                             <transitive>false</transitive>
121                             <outputDirectory>
122                                 ${project.build.directory}/assembly/system
123                             </outputDirectory>
124                             <overWriteReleases>false</overWriteReleases>
125                             <overWriteSnapshots>true</overWriteSnapshots>
126                             <overWriteIfNewer>true</overWriteIfNewer>
127                             <useRepositoryLayout>true</useRepositoryLayout>
128                             <addParentPoms>false</addParentPoms>
129                             <copyPom>false</copyPom>
130                             <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
131                             <scope>provided</scope>
132                         </configuration>
133                     </execution>
134                 </executions>
135             </plugin>
136             <plugin>
137                 <artifactId>maven-resources-plugin</artifactId>
138                 <executions>
139                     <execution>
140                         <id>copy-version</id>
141                         <goals>
142                             <goal>copy-resources</goal>
143                         </goals>
144                         <!-- here the phase you need -->
145                         <phase>validate</phase>
146                         <configuration>
147                             <outputDirectory>${basedir}/target/stage
148                             </outputDirectory>
149                             <resources>
150                                 <resource>
151                                     <directory>src/main/resources/scripts
152                                     </directory>
153                                     <includes>
154                                         <include>install-feature.sh</include>
155                                     </includes>
156                                     <filtering>true</filtering>
157                                 </resource>
158                             </resources>
159                         </configuration>
160                     </execution>
161                 </executions>
162             </plugin>
163         </plugins>
164     </build>
165 </project>