blob: b0eb42247aec2af4e42a6e2bd2a479caf62084e9 [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 -->
Timoney, Dan (dt5972)21ec6552019-01-08 12:14:12 -050017<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 -040018 <modelVersion>4.0.0</modelVersion>
19
20 <parent>
21 <groupId>org.onap.ccsdk.parent</groupId>
22 <artifactId>odlparent-lite</artifactId>
Dan Timoney4de5e6c2020-01-23 14:40:14 -050023 <version>1.5.1</version>
Timoney, Dan (dt5972)21ec6552019-01-08 12:14:12 -050024 <relativePath/>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040025 </parent>
26
27 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
28 <artifactId>netbox-client-installer</artifactId>
Timoney, Dan (dt5972)4736bef2019-09-10 16:16:07 -040029 <version>0.7.0-SNAPSHOT</version>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040030 <packaging>pom</packaging>
31
32 <name>ccsdk-sli-adaptors :: netbox-client :: ${project.artifactId}</name>
33
34 <properties>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040035 <application.name>ccsdk-netbox-client</application.name>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040036 <features.boot>${application.name}</features.boot>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040037 <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 -040038 <include.transitive.dependencies>false</include.transitive.dependencies>
39 </properties>
40
41 <dependencies>
42
Timoney, Dan (dt5972)bc18e2c2019-12-13 12:42:39 -050043
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040044
45 <dependency>
46 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
47 <artifactId>netbox-client-provider</artifactId>
48 <version>${project.version}</version>
49 </dependency>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040050
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040051 </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>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040066 <attach>true</attach>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040067 <finalName>stage/${application.name}-${project.version}</finalName>
68 <descriptors>
69 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
70 </descriptors>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040071 <appendAssemblyId>true</appendAssemblyId>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040072 </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>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -0400110 <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -0400111 <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>