Code changes for OpenDaylight Neon
[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.4.0-SNAPSHOT</version>
31         <relativePath/>
32     </parent>
33     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
34     <artifactId>saltstack-adapter-installer</artifactId>
35     <version>0.6.0-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     </dependencies>
68     <build>
69         <plugins>
70             <plugin>
71                 <artifactId>maven-assembly-plugin</artifactId>
72                 <executions>
73                     <execution>
74                         <id>maven-repo-zip</id>
75                         <goals>
76                             <goal>single</goal>
77                         </goals>
78                         <phase>package</phase>
79                         <configuration>
80                             <appendAssemblyId>true</appendAssemblyId>
81                             <attach>true</attach>
82                             <finalName>
83                                 stage/${application.name}-${project.version}
84                             </finalName>
85                             <descriptors>
86                                 <descriptor>
87                                     src/assembly/assemble_mvnrepo_zip.xml
88                                 </descriptor>
89                             </descriptors>
90                             <appendAssemblyId>true</appendAssemblyId>
91                         </configuration>
92                     </execution>
93                     <execution>
94                         <id>installer-zip</id>
95                         <goals>
96                             <goal>single</goal>
97                         </goals>
98                         <phase>package</phase>
99                         <configuration>
100                             <appendAssemblyId>false</appendAssemblyId>
101                             <attach>true</attach>
102                             <finalName>${application.name}-${project.version}
103                             </finalName>
104                             <descriptors>
105                                 <descriptor>
106                                     src/assembly/assemble_installer_zip.xml
107                                 </descriptor>
108                             </descriptors>
109                             <appendAssemblyId>false</appendAssemblyId>
110                         </configuration>
111                     </execution>
112                 </executions>
113             </plugin>
114             <plugin>
115                 <groupId>org.apache.maven.plugins</groupId>
116                 <artifactId>maven-dependency-plugin</artifactId>
117                 <executions>
118                     <execution>
119                         <id>copy-dependencies</id>
120                         <goals>
121                             <goal>copy-dependencies</goal>
122                         </goals>
123                         <phase>prepare-package</phase>
124                         <configuration>
125                             <transitive>false</transitive>
126                             <outputDirectory>
127                                 ${project.build.directory}/assembly/system
128                             </outputDirectory>
129                             <overWriteReleases>false</overWriteReleases>
130                             <overWriteSnapshots>true</overWriteSnapshots>
131                             <overWriteIfNewer>true</overWriteIfNewer>
132                             <useRepositoryLayout>true</useRepositoryLayout>
133                             <addParentPoms>false</addParentPoms>
134                             <copyPom>false</copyPom>
135                             <excludeGroupIds>org.opendaylight</excludeGroupIds>
136                             <scope>provided</scope>
137                         </configuration>
138                     </execution>
139                 </executions>
140             </plugin>
141             <plugin>
142                 <artifactId>maven-resources-plugin</artifactId>
143                 <executions>
144                     <execution>
145                         <id>copy-version</id>
146                         <goals>
147                             <goal>copy-resources</goal>
148                         </goals>
149                         <!-- here the phase you need -->
150                         <phase>validate</phase>
151                         <configuration>
152                             <outputDirectory>${basedir}/target/stage
153                             </outputDirectory>
154                             <resources>
155                                 <resource>
156                                     <directory>src/main/resources/scripts
157                                     </directory>
158                                     <includes>
159                                         <include>install-feature.sh</include>
160                                     </includes>
161                                     <filtering>true</filtering>
162                                 </resource>
163                             </resources>
164                         </configuration>
165                     </execution>
166                 </executions>
167             </plugin>
168         </plugins>
169     </build>
170 </project>