blob: 470a61a1e7a3539d5f00bba3574ebca294c215e9 [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>
24 <version>2.1.1-SNAPSHOT</version>
25 <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 Timoney8f2fcda2020-12-02 07:48:49 -050030 <version>1.2.0-SNAPSHOT</version>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040031 <packaging>pom</packaging>
32
33 <name>ccsdk-sli-adaptors :: netbox-client :: ${project.artifactId}</name>
34
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
Timoney, Dan (dt5972)bc18e2c2019-12-13 12:42:39 -050044
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040045
46 <dependency>
47 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
48 <artifactId>netbox-client-provider</artifactId>
49 <version>${project.version}</version>
50 </dependency>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040051
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040052 </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>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040067 <attach>true</attach>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040068 <finalName>stage/${application.name}-${project.version}</finalName>
69 <descriptors>
70 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
71 </descriptors>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040072 <appendAssemblyId>true</appendAssemblyId>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040073 </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>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -0400111 <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -0400112 <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>