blob: 74246717bdf25e1f45362ac1e570f97dd1a6d61b [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>
Dan Timoney5de81962021-01-26 13:15:47 -050021 <groupId>org.onap.ccsdk.parent</groupId>
22 <artifactId>odlparent-lite</artifactId>
Dan Timoney000a7a02024-10-21 16:57:55 -040023 <version>3.0.1-SNAPSHOT</version>
Dan Timoney5de81962021-01-26 13:15:47 -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>
Dan Timoneye4779612024-10-03 16:10:21 -040029 <version>2.0.1-SNAPSHOT</version>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040030 <packaging>pom</packaging>
31
Singal, Kapil (ks220y)94f4b9b2021-03-02 20:00:49 -050032 <name>ccsdk-sli-adaptors :: ${project.artifactId}</name>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040033
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
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040043 <dependency>
44 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
45 <artifactId>netbox-client-provider</artifactId>
46 <version>${project.version}</version>
47 </dependency>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040048
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040049 </dependencies>
50
51 <build>
52 <plugins>
53 <plugin>
54 <artifactId>maven-assembly-plugin</artifactId>
55 <version>2.6</version>
56 <executions>
57 <execution>
58 <id>maven-repo-zip</id>
59 <goals>
60 <goal>single</goal>
61 </goals>
62 <phase>package</phase>
63 <configuration>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040064 <attach>true</attach>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040065 <finalName>stage/${application.name}-${project.version}</finalName>
66 <descriptors>
67 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
68 </descriptors>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -040069 <appendAssemblyId>true</appendAssemblyId>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -040070 </configuration>
71 </execution>
72 <execution>
73 <id>installer-zip</id>
74 <goals>
75 <goal>single</goal>
76 </goals>
77 <phase>package</phase>
78 <configuration>
79 <attach>true</attach>
80 <finalName>${application.name}-${project.version}-installer</finalName>
81 <descriptors>
82 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
83 </descriptors>
84 <appendAssemblyId>false</appendAssemblyId>
85 </configuration>
86 </execution>
87 </executions>
88 </plugin>
89 <plugin>
90 <groupId>org.apache.maven.plugins</groupId>
91 <artifactId>maven-dependency-plugin</artifactId>
92 <executions>
93 <execution>
94 <id>copy-dependencies</id>
95 <goals>
96 <goal>copy-dependencies</goal>
97 </goals>
98 <phase>prepare-package</phase>
99 <configuration>
100 <transitive>false</transitive>
101 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
102 <overWriteReleases>false</overWriteReleases>
103 <overWriteSnapshots>true</overWriteSnapshots>
104 <overWriteIfNewer>true</overWriteIfNewer>
105 <useRepositoryLayout>true</useRepositoryLayout>
106 <addParentPoms>false</addParentPoms>
107 <copyPom>false</copyPom>
Alexis de Talhouëte2b21382018-08-21 11:29:49 -0400108 <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
Alexis de Talhouëtd10de422018-08-15 14:29:07 -0400109 <scope>provided</scope>
110 </configuration>
111 </execution>
112 </executions>
113 </plugin>
114 <plugin>
115 <artifactId>maven-resources-plugin</artifactId>
116 <version>2.6</version>
117 <executions>
118 <execution>
119 <id>copy-version</id>
120 <goals>
121 <goal>copy-resources</goal>
122 </goals><!-- here the phase you need -->
123 <phase>validate</phase>
124 <configuration>
125 <outputDirectory>${basedir}/target/stage</outputDirectory>
126 <resources>
127 <resource>
128 <directory>src/main/resources/scripts</directory>
129 <includes>
130 <include>install-feature.sh</include>
131 </includes>
132 <filtering>true</filtering>
133 </resource>
134 </resources>
135 </configuration>
136 </execution>
137
138 </executions>
139 </plugin>
140
141 </plugins>
142 </build>
143</project>