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