Release ccsdk/sli/adaptors
[ccsdk/sli/adaptors.git] / netbox-client / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Copyright (C) 2018 AT&T, Bell Canada
4
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16   -->
17 <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">
18     <modelVersion>4.0.0</modelVersion>
19
20     <parent>
21         <groupId>org.onap.ccsdk.parent</groupId>
22         <artifactId>odlparent-lite</artifactId>
23         <version>2.0.0</version>
24         <relativePath/>
25     </parent>
26
27     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
28     <artifactId>netbox-client-installer</artifactId>
29     <version>1.0.0</version>
30     <packaging>pom</packaging>
31
32     <name>ccsdk-sli-adaptors :: netbox-client :: ${project.artifactId}</name>
33
34     <properties>
35         <application.name>ccsdk-netbox-client</application.name>
36         <features.boot>${application.name}</features.boot>
37         <features.repositories>mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features</features.repositories>
38         <include.transitive.dependencies>false</include.transitive.dependencies>
39     </properties>
40
41     <dependencies>
42
43
44
45         <dependency>
46             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
47             <artifactId>netbox-client-provider</artifactId>
48             <version>${project.version}</version>
49         </dependency>
50
51     </dependencies>
52
53     <build>
54         <plugins>
55             <plugin>
56                 <artifactId>maven-assembly-plugin</artifactId>
57                 <version>2.6</version>
58                 <executions>
59                     <execution>
60                         <id>maven-repo-zip</id>
61                         <goals>
62                             <goal>single</goal>
63                         </goals>
64                         <phase>package</phase>
65                         <configuration>
66                             <attach>true</attach>
67                             <finalName>stage/${application.name}-${project.version}</finalName>
68                             <descriptors>
69                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
70                             </descriptors>
71                             <appendAssemblyId>true</appendAssemblyId>
72                         </configuration>
73                     </execution>
74                     <execution>
75                         <id>installer-zip</id>
76                         <goals>
77                             <goal>single</goal>
78                         </goals>
79                         <phase>package</phase>
80                         <configuration>
81                             <attach>true</attach>
82                             <finalName>${application.name}-${project.version}-installer</finalName>
83                             <descriptors>
84                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
85                             </descriptors>
86                             <appendAssemblyId>false</appendAssemblyId>
87                         </configuration>
88                     </execution>
89                 </executions>
90             </plugin>
91             <plugin>
92                 <groupId>org.apache.maven.plugins</groupId>
93                 <artifactId>maven-dependency-plugin</artifactId>
94                 <executions>
95                     <execution>
96                         <id>copy-dependencies</id>
97                         <goals>
98                             <goal>copy-dependencies</goal>
99                         </goals>
100                         <phase>prepare-package</phase>
101                         <configuration>
102                             <transitive>false</transitive>
103                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
104                             <overWriteReleases>false</overWriteReleases>
105                             <overWriteSnapshots>true</overWriteSnapshots>
106                             <overWriteIfNewer>true</overWriteIfNewer>
107                             <useRepositoryLayout>true</useRepositoryLayout>
108                             <addParentPoms>false</addParentPoms>
109                             <copyPom>false</copyPom>
110                             <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
111                             <scope>provided</scope>
112                         </configuration>
113                     </execution>
114                 </executions>
115             </plugin>
116             <plugin>
117                 <artifactId>maven-resources-plugin</artifactId>
118                 <version>2.6</version>
119                 <executions>
120                     <execution>
121                         <id>copy-version</id>
122                         <goals>
123                             <goal>copy-resources</goal>
124                         </goals><!-- here the phase you need -->
125                         <phase>validate</phase>
126                         <configuration>
127                             <outputDirectory>${basedir}/target/stage</outputDirectory>
128                             <resources>
129                                 <resource>
130                                     <directory>src/main/resources/scripts</directory>
131                                     <includes>
132                                         <include>install-feature.sh</include>
133                                     </includes>
134                                     <filtering>true</filtering>
135                                 </resource>
136                             </resources>
137                         </configuration>
138                     </execution>
139
140                 </executions>
141             </plugin>
142
143         </plugins>
144     </build>
145 </project>