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 | --> |
Timoney, Dan (dt5972) | 21ec655 | 2019-01-08 12:14:12 -0500 | [diff] [blame] | 17 | <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] | 18 | <modelVersion>4.0.0</modelVersion> |
| 19 | |
| 20 | <parent> |
| 21 | <groupId>org.onap.ccsdk.parent</groupId> |
| 22 | <artifactId>odlparent-lite</artifactId> |
Dan Timoney | 4de5e6c | 2020-01-23 14:40:14 -0500 | [diff] [blame^] | 23 | <version>1.5.1</version> |
Timoney, Dan (dt5972) | 21ec655 | 2019-01-08 12:14:12 -0500 | [diff] [blame] | 24 | <relativePath/> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 25 | </parent> |
| 26 | |
| 27 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 28 | <artifactId>netbox-client-installer</artifactId> |
Timoney, Dan (dt5972) | 4736bef | 2019-09-10 16:16:07 -0400 | [diff] [blame] | 29 | <version>0.7.0-SNAPSHOT</version> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 30 | <packaging>pom</packaging> |
| 31 | |
| 32 | <name>ccsdk-sli-adaptors :: netbox-client :: ${project.artifactId}</name> |
| 33 | |
| 34 | <properties> |
Alexis de Talhouët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 35 | <application.name>ccsdk-netbox-client</application.name> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 36 | <features.boot>${application.name}</features.boot> |
Alexis de Talhouët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 37 | <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] | 38 | <include.transitive.dependencies>false</include.transitive.dependencies> |
| 39 | </properties> |
| 40 | |
| 41 | <dependencies> |
| 42 | |
Timoney, Dan (dt5972) | bc18e2c | 2019-12-13 12:42:39 -0500 | [diff] [blame] | 43 | |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 44 | |
| 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ët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 50 | |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 51 | </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ët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 66 | <attach>true</attach> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 67 | <finalName>stage/${application.name}-${project.version}</finalName> |
| 68 | <descriptors> |
| 69 | <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor> |
| 70 | </descriptors> |
Alexis de Talhouët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 71 | <appendAssemblyId>true</appendAssemblyId> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 72 | </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ët | e2b2138 | 2018-08-21 11:29:49 -0400 | [diff] [blame] | 110 | <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds> |
Alexis de Talhouët | d10de42 | 2018-08-15 14:29:07 -0400 | [diff] [blame] | 111 | <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> |