Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 1 | <?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 Timoney | 8bc3696 | 2020-08-06 15:17:17 -0400 | [diff] [blame] | 17 | |
Timoney, Dan (dt5972) | 21ec655 | 2019-01-08 12:14:12 -0500 | [diff] [blame] | 18 | <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ët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 19 | <modelVersion>4.0.0</modelVersion> |
| 20 | |
| 21 | <parent> |
Dan Timoney | 5de8196 | 2021-01-26 13:15:47 -0500 | [diff] [blame^] | 22 | <groupId>org.onap.ccsdk.parent</groupId> |
| 23 | <artifactId>odlparent-lite</artifactId> |
| 24 | <version>2.1.1-SNAPSHOT</version> |
| 25 | <relativePath/> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 26 | </parent> |
| 27 | |
| 28 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 29 | <artifactId>netbox-client-installer</artifactId> |
Dan Timoney | 8f2fcda | 2020-12-02 07:48:49 -0500 | [diff] [blame] | 30 | <version>1.2.0-SNAPSHOT</version> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 31 | <packaging>pom</packaging> |
| 32 | |
| 33 | <name>ccsdk-sli-adaptors :: netbox-client :: ${project.artifactId}</name> |
| 34 | |
| 35 | <properties> |
Alexis de Talhouët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 36 | <application.name>ccsdk-netbox-client</application.name> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 37 | <features.boot>${application.name}</features.boot> |
Alexis de Talhouët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 38 | <features.repositories>mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features</features.repositories> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 39 | <include.transitive.dependencies>false</include.transitive.dependencies> |
| 40 | </properties> |
| 41 | |
| 42 | <dependencies> |
| 43 | |
Timoney, Dan (dt5972) | bc18e2c | 2019-12-13 12:42:39 -0500 | [diff] [blame] | 44 | |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 45 | |
| 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ët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 51 | |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 52 | </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ët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 67 | <attach>true</attach> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 68 | <finalName>stage/${application.name}-${project.version}</finalName> |
| 69 | <descriptors> |
| 70 | <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor> |
| 71 | </descriptors> |
Alexis de Talhouët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 72 | <appendAssemblyId>true</appendAssemblyId> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 73 | </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ët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 111 | <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 112 | <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> |