blob: 015e8af0510494e8d3cc81c1afa33efbeb8d57a7 [file] [log] [blame]
Alexis de Talhouëtd10de422018-08-15 14:29:07 -04001<?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 -->
Dan Timoney8bc36962020-08-06 15:17:17 -040017
Timoney, Dan (dt5972)21ec6552019-01-08 12:14:12 -050018<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">
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040019 <modelVersion>4.0.0</modelVersion>
20
21 <parent>
Dan Timoney5de81962021-01-26 13:15:47 -050022 <groupId>org.onap.ccsdk.parent</groupId>
23 <artifactId>odlparent-lite</artifactId>
Dan Timoneye93adc22021-02-22 14:11:46 -050024 <version>2.1.1</version>
Dan Timoney5de81962021-01-26 13:15:47 -050025 <relativePath/>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040026 </parent>
27
28 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
29 <artifactId>netbox-client-installer</artifactId>
Dan Timoney3f3e6892021-02-23 11:37:18 -050030 <version>1.2.1-SNAPSHOT</version>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040031 <packaging>pom</packaging>
32
Singal, Kapil (ks220y)94f4b9b2021-03-02 20:00:49 -050033 <name>ccsdk-sli-adaptors :: ${project.artifactId}</name>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040034
35 <properties>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040036 <application.name>ccsdk-netbox-client</application.name>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040037 <features.boot>${application.name}</features.boot>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040038 <features.repositories>mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features</features.repositories>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040039 <include.transitive.dependencies>false</include.transitive.dependencies>
40 </properties>
41
42 <dependencies>
43
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040044 <dependency>
45 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
46 <artifactId>netbox-client-provider</artifactId>
47 <version>${project.version}</version>
48 </dependency>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040049
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040050 </dependencies>
51
52 <build>
53 <plugins>
54 <plugin>
55 <artifactId>maven-assembly-plugin</artifactId>
56 <version>2.6</version>
57 <executions>
58 <execution>
59 <id>maven-repo-zip</id>
60 <goals>
61 <goal>single</goal>
62 </goals>
63 <phase>package</phase>
64 <configuration>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040065 <attach>true</attach>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040066 <finalName>stage/${application.name}-${project.version}</finalName>
67 <descriptors>
68 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
69 </descriptors>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040070 <appendAssemblyId>true</appendAssemblyId>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040071 </configuration>
72 </execution>
73 <execution>
74 <id>installer-zip</id>
75 <goals>
76 <goal>single</goal>
77 </goals>
78 <phase>package</phase>
79 <configuration>
80 <attach>true</attach>
81 <finalName>${application.name}-${project.version}-installer</finalName>
82 <descriptors>
83 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
84 </descriptors>
85 <appendAssemblyId>false</appendAssemblyId>
86 </configuration>
87 </execution>
88 </executions>
89 </plugin>
90 <plugin>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-dependency-plugin</artifactId>
93 <executions>
94 <execution>
95 <id>copy-dependencies</id>
96 <goals>
97 <goal>copy-dependencies</goal>
98 </goals>
99 <phase>prepare-package</phase>
100 <configuration>
101 <transitive>false</transitive>
102 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
103 <overWriteReleases>false</overWriteReleases>
104 <overWriteSnapshots>true</overWriteSnapshots>
105 <overWriteIfNewer>true</overWriteIfNewer>
106 <useRepositoryLayout>true</useRepositoryLayout>
107 <addParentPoms>false</addParentPoms>
108 <copyPom>false</copyPom>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -0400109 <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -0400110 <scope>provided</scope>
111 </configuration>
112 </execution>
113 </executions>
114 </plugin>
115 <plugin>
116 <artifactId>maven-resources-plugin</artifactId>
117 <version>2.6</version>
118 <executions>
119 <execution>
120 <id>copy-version</id>
121 <goals>
122 <goal>copy-resources</goal>
123 </goals><!-- here the phase you need -->
124 <phase>validate</phase>
125 <configuration>
126 <outputDirectory>${basedir}/target/stage</outputDirectory>
127 <resources>
128 <resource>
129 <directory>src/main/resources/scripts</directory>
130 <includes>
131 <include>install-feature.sh</include>
132 </includes>
133 <filtering>true</filtering>
134 </resource>
135 </resources>
136 </configuration>
137 </execution>
138
139 </executions>
140 </plugin>
141
142 </plugins>
143 </build>
144</project>