Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Skip Wonnell | 463f70e | 2018-01-12 10:00:59 -0600 | [diff] [blame] | 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | ONAP : APPC |
| 5 | ================================================================================ |
John McClung | a802739 | 2018-06-13 15:49:08 -0400 | [diff] [blame] | 6 | Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. |
Skip Wonnell | 463f70e | 2018-01-12 10:00:59 -0600 | [diff] [blame] | 7 | Copyright (C) 2017 Amdocs |
| 8 | ================================================================================ |
| 9 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | you may not use this file except in compliance with the License. |
| 11 | You may obtain a copy of the License at |
| 12 | |
| 13 | http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | |
| 15 | Unless required by applicable law or agreed to in writing, software |
| 16 | distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | See the License for the specific language governing permissions and |
| 19 | limitations under the License. |
| 20 | ============LICENSE_END========================================================= |
Skip Wonnell | 463f70e | 2018-01-12 10:00:59 -0600 | [diff] [blame] | 21 | --> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 22 | <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"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
Patrick Brady | 3222908 | 2018-08-09 12:05:53 -0700 | [diff] [blame] | 24 | <parent> |
| 25 | <groupId>org.onap.appc.parent</groupId> |
| 26 | <artifactId>odlparent-lite</artifactId> |
| 27 | <version>1.4.0-SNAPSHOT</version> |
| 28 | <relativePath /> |
| 29 | </parent> |
| 30 | <groupId>org.onap.appc</groupId> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 31 | <artifactId>appc-dg-shared-installer</artifactId> |
| 32 | <name>APPC DG Shared - Karaf Installer</name> |
| 33 | <packaging>pom</packaging> |
| 34 | |
| 35 | <properties> |
| 36 | <application.name>appc-dg-shared</application.name> |
| 37 | <features.boot>appc-dg-shared</features.boot> |
Patrick Brady | 3222908 | 2018-08-09 12:05:53 -0700 | [diff] [blame] | 38 | <features.repositories>mvn:org.onap.appc/onap-appc-dg-shared/${project.version}/xml/features</features.repositories> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 39 | </properties> |
| 40 | |
| 41 | <dependencies> |
| 42 | <dependency> |
Patrick Brady | 0756759 | 2017-12-13 11:09:30 -0800 | [diff] [blame] | 43 | <groupId>org.onap.appc</groupId> |
Patrick Brady | 3222908 | 2018-08-09 12:05:53 -0700 | [diff] [blame] | 44 | <artifactId>onap-appc-dg-shared</artifactId> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 45 | <version>${project.version}</version> |
| 46 | <classifier>features</classifier> |
| 47 | <type>xml</type> |
| 48 | </dependency> |
| 49 | |
| 50 | <dependency> |
Patrick Brady | 0756759 | 2017-12-13 11:09:30 -0800 | [diff] [blame] | 51 | <groupId>org.onap.appc</groupId> |
Patrick Brady | 3222908 | 2018-08-09 12:05:53 -0700 | [diff] [blame] | 52 | <artifactId>onap-appc-ssh-adapter</artifactId> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 53 | <version>${project.version}</version> |
| 54 | <classifier>features</classifier> |
| 55 | <type>xml</type> |
| 56 | </dependency> |
| 57 | </dependencies> |
| 58 | |
| 59 | <build> |
| 60 | <plugins> |
| 61 | <plugin> |
| 62 | <artifactId>maven-assembly-plugin</artifactId> |
| 63 | <executions> |
| 64 | <execution> |
| 65 | <id>mavne-repo-zip</id> |
| 66 | <goals> |
| 67 | <goal>single</goal> |
| 68 | </goals> |
| 69 | <phase>package</phase> |
| 70 | <configuration> |
| 71 | <appendAssemblyId>false</appendAssemblyId> |
| 72 | <attach>false</attach> |
| 73 | <finalName>stage/${application.name}-${project.version}</finalName> |
| 74 | <descriptors> |
| 75 | <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor> |
| 76 | </descriptors> |
| 77 | </configuration> |
| 78 | </execution> |
| 79 | <execution> |
| 80 | <id>installer-zip</id> |
| 81 | <goals> |
| 82 | <goal>single</goal> |
| 83 | </goals> |
| 84 | <phase>package</phase> |
| 85 | <configuration> |
| 86 | <appendAssemblyId>false</appendAssemblyId> |
| 87 | <attach>true</attach> |
| 88 | <finalName>${application.name}-${project.version}</finalName> |
| 89 | <descriptors> |
| 90 | <descriptor>src/assembly/assemble_installer_zip.xml</descriptor> |
| 91 | </descriptors> |
| 92 | </configuration> |
| 93 | </execution> |
| 94 | </executions> |
| 95 | </plugin> |
| 96 | <plugin> |
| 97 | <groupId>org.apache.maven.plugins</groupId> |
| 98 | <artifactId>maven-dependency-plugin</artifactId> |
| 99 | <executions> |
| 100 | <execution> |
| 101 | <id>copy-dependencies</id> |
| 102 | <goals> |
| 103 | <goal>copy-dependencies</goal> |
| 104 | </goals> |
| 105 | <phase>prepare-package</phase> |
| 106 | <configuration> |
| 107 | <outputDirectory>${project.build.directory}/assembly/system</outputDirectory> |
| 108 | <overWriteReleases>false</overWriteReleases> |
| 109 | <overWriteSnapshots>true</overWriteSnapshots> |
| 110 | <overWriteIfNewer>true</overWriteIfNewer> |
| 111 | <useRepositoryLayout>true</useRepositoryLayout> |
| 112 | <addParentPoms>false</addParentPoms> |
| 113 | <copyPom>false</copyPom> |
| 114 | <excludeGroupIds>org.opendaylight</excludeGroupIds> |
| 115 | </configuration> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
| 119 | <plugin> |
| 120 | <artifactId>maven-resources-plugin</artifactId> |
| 121 | <executions> |
| 122 | <execution> |
| 123 | <id>copy-version</id> |
| 124 | <goals> |
| 125 | <goal>copy-resources</goal> |
| 126 | </goals> |
| 127 | <!-- here the phase you need --> |
| 128 | <phase>validate</phase> |
| 129 | <configuration> |
| 130 | <outputDirectory>${basedir}/target/stage</outputDirectory> |
| 131 | <resources> |
| 132 | <resource> |
| 133 | <directory>src/main/resources/scripts</directory> |
| 134 | <includes> |
| 135 | <include>install-feature.sh</include> |
| 136 | </includes> |
| 137 | <filtering>true</filtering> |
| 138 | </resource> |
| 139 | </resources> |
| 140 | </configuration> |
| 141 | </execution> |
| 142 | </executions> |
| 143 | </plugin> |
| 144 | </plugins> |
| 145 | </build> |
| 146 | </project> |