Merge "Deploy missing saltstack-adapter zip"
[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.2.1-SNAPSHOT</version>
31         <relativePath/>
32     </parent>
33     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
34     <artifactId>saltstack-adapter-installer</artifactId>
35     <version>0.4.1-SNAPSHOT</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         <dependency>
49             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
50             <artifactId>${application.name}</artifactId>
51             <version>${project.version}</version>
52             <classifier>features</classifier>
53             <type>xml</type>
54             <exclusions>
55                 <exclusion>
56                     <groupId>*</groupId>
57                     <artifactId>*</artifactId>
58                 </exclusion>
59             </exclusions>
60         </dependency>
61         <dependency>
62             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
63             <artifactId>saltstack-adapter-provider</artifactId>
64             <version>${project.version}</version>
65         </dependency>
66
67         <dependency>
68             <groupId>javax</groupId>
69             <artifactId>javaee-api</artifactId>
70             <version>7.0</version>
71         </dependency>
72     </dependencies>
73     <build>
74         <plugins>
75             <plugin>
76                 <artifactId>maven-assembly-plugin</artifactId>
77                 <executions>
78                     <execution>
79                         <id>maven-repo-zip</id>
80                         <goals>
81                             <goal>single</goal>
82                         </goals>
83                         <phase>package</phase>
84                         <configuration>
85                             <appendAssemblyId>true</appendAssemblyId>
86                             <attach>true</attach>
87                             <finalName>
88                                 stage/${application.name}-${project.version}
89                             </finalName>
90                             <descriptors>
91                                 <descriptor>
92                                     src/assembly/assemble_mvnrepo_zip.xml
93                                 </descriptor>
94                             </descriptors>
95                             <appendAssemblyId>true</appendAssemblyId>
96                         </configuration>
97                     </execution>
98                     <execution>
99                         <id>installer-zip</id>
100                         <goals>
101                             <goal>single</goal>
102                         </goals>
103                         <phase>package</phase>
104                         <configuration>
105                             <appendAssemblyId>false</appendAssemblyId>
106                             <attach>true</attach>
107                             <finalName>${application.name}-${project.version}
108                             </finalName>
109                             <descriptors>
110                                 <descriptor>
111                                     src/assembly/assemble_installer_zip.xml
112                                 </descriptor>
113                             </descriptors>
114                             <appendAssemblyId>false</appendAssemblyId>
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>
131                             <outputDirectory>
132                                 ${project.build.directory}/assembly/system
133                             </outputDirectory>
134                             <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>
157                             <outputDirectory>${basedir}/target/stage
158                             </outputDirectory>
159                             <resources>
160                                 <resource>
161                                     <directory>src/main/resources/scripts
162                                     </directory>
163                                     <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>