blob: 2e8680d93d1c247e70f4ad5d41c6fca1368d5308 [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 -->
17<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18 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>1.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>0.3.0-SNAPSHOT</version>
31 <packaging>pom</packaging>
32
33 <name>ccsdk-sli-adaptors :: netbox-client :: ${project.artifactId}</name>
34
35 <properties>
36 <application.name>sdnc-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
39 </features.repositories>
40 <include.transitive.dependencies>false</include.transitive.dependencies>
41 </properties>
42
43 <dependencies>
44
45 <dependency>
46 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
47 <artifactId>ccsdk-netbox-client</artifactId>
48 <version>${project.version}</version>
49 <type>xml</type>
50 <classifier>features</classifier>
51 <exclusions>
52 <exclusion>
53 <groupId>*</groupId>
54 <artifactId>*</artifactId>
55 </exclusion>
56 </exclusions>
57 </dependency>
58
59 <dependency>
60 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
61 <artifactId>netbox-client-provider</artifactId>
62 <version>${project.version}</version>
63 </dependency>
64 </dependencies>
65
66 <build>
67 <plugins>
68 <plugin>
69 <artifactId>maven-assembly-plugin</artifactId>
70 <version>2.6</version>
71 <executions>
72 <execution>
73 <id>maven-repo-zip</id>
74 <goals>
75 <goal>single</goal>
76 </goals>
77 <phase>package</phase>
78 <configuration>
79 <attach>false</attach>
80 <finalName>stage/${application.name}-${project.version}</finalName>
81 <descriptors>
82 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
83 </descriptors>
84 <appendAssemblyId>false</appendAssemblyId>
85 </configuration>
86 </execution>
87 <execution>
88 <id>installer-zip</id>
89 <goals>
90 <goal>single</goal>
91 </goals>
92 <phase>package</phase>
93 <configuration>
94 <attach>true</attach>
95 <finalName>${application.name}-${project.version}-installer</finalName>
96 <descriptors>
97 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
98 </descriptors>
99 <appendAssemblyId>false</appendAssemblyId>
100 </configuration>
101 </execution>
102 </executions>
103 </plugin>
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-dependency-plugin</artifactId>
107 <executions>
108 <execution>
109 <id>copy-dependencies</id>
110 <goals>
111 <goal>copy-dependencies</goal>
112 </goals>
113 <phase>prepare-package</phase>
114 <configuration>
115 <transitive>false</transitive>
116 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
117 <overWriteReleases>false</overWriteReleases>
118 <overWriteSnapshots>true</overWriteSnapshots>
119 <overWriteIfNewer>true</overWriteIfNewer>
120 <useRepositoryLayout>true</useRepositoryLayout>
121 <addParentPoms>false</addParentPoms>
122 <copyPom>false</copyPom>
123 <excludeGroupIds>org.onap.ccsdk.sli.core,org.opendaylight</excludeGroupIds>
124 <scope>provided</scope>
125 </configuration>
126 </execution>
127 </executions>
128 </plugin>
129 <plugin>
130 <artifactId>maven-resources-plugin</artifactId>
131 <version>2.6</version>
132 <executions>
133 <execution>
134 <id>copy-version</id>
135 <goals>
136 <goal>copy-resources</goal>
137 </goals><!-- here the phase you need -->
138 <phase>validate</phase>
139 <configuration>
140 <outputDirectory>${basedir}/target/stage</outputDirectory>
141 <resources>
142 <resource>
143 <directory>src/main/resources/scripts</directory>
144 <includes>
145 <include>install-feature.sh</include>
146 </includes>
147 <filtering>true</filtering>
148 </resource>
149 </resources>
150 </configuration>
151 </execution>
152
153 </executions>
154 </plugin>
155
156 </plugins>
157 </build>
158</project>