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