Prepare for RC0 release
[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"
26          xmlns="http://maven.apache.org/POM/4.0.0"
27          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
28     <modelVersion>4.0.0</modelVersion>
29     <parent>
30         <groupId>org.onap.ccsdk.parent</groupId>
31         <artifactId>odlparent-lite</artifactId>
32         <version>1.1.1</version>
33         <relativePath/>
34     </parent>
35     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
36     <artifactId>saltstack-adapter-installer</artifactId>
37     <version>0.3.1-SNAPSHOT</version>
38     <name>ccsdk-sli-adaptors :: saltstack-adapter :: ${project.artifactId}
39     </name>
40     <packaging>pom</packaging>
41     <properties>
42         <application.name>ccsdk-saltstack-adapter</application.name>
43         <features.boot>${application.name}</features.boot>
44         <features.repositories>
45             mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features
46         </features.repositories>
47         <include.transitive.dependencies>false</include.transitive.dependencies>
48     </properties>
49     <dependencies>
50         <dependency>
51             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
52             <artifactId>${application.name}</artifactId>
53             <version>${project.version}</version>
54             <classifier>features</classifier>
55             <type>xml</type>
56             <exclusions>
57                 <exclusion>
58                     <groupId>*</groupId>
59                     <artifactId>*</artifactId>
60                 </exclusion>
61             </exclusions>
62         </dependency>
63         <dependency>
64             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
65             <artifactId>saltstack-adapter-provider</artifactId>
66             <version>${project.version}</version>
67         </dependency>
68
69         <dependency>
70             <groupId>javax</groupId>
71             <artifactId>javaee-api</artifactId>
72             <version>7.0</version>
73         </dependency>
74     </dependencies>
75     <build>
76         <plugins>
77             <plugin>
78                 <artifactId>maven-assembly-plugin</artifactId>
79                 <executions>
80                     <execution>
81                         <id>maven-repo-zip</id>
82                         <goals>
83                             <goal>single</goal>
84                         </goals>
85                         <phase>package</phase>
86                         <configuration>
87                             <appendAssemblyId>true</appendAssemblyId>
88                             <attach>false</attach>
89                             <finalName>
90                                 stage/${application.name}-${project.version}
91                             </finalName>
92                             <descriptors>
93                                 <descriptor>
94                                     src/assembly/assemble_mvnrepo_zip.xml
95                                 </descriptor>
96                             </descriptors>
97                         </configuration>
98                     </execution>
99                     <execution>
100                         <id>installer-zip</id>
101                         <goals>
102                             <goal>single</goal>
103                         </goals>
104                         <phase>package</phase>
105                         <configuration>
106                             <appendAssemblyId>false</appendAssemblyId>
107                             <attach>true</attach>
108                             <finalName>${application.name}-${project.version}
109                             </finalName>
110                             <descriptors>
111                                 <descriptor>
112                                     src/assembly/assemble_installer_zip.xml
113                                 </descriptor>
114                             </descriptors>
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>