Ryan Young | e35c3a0 | 2018-06-28 17:22:47 -0400 | [diff] [blame] | 1 | <!--
|
| 2 | ============LICENSE_START=======================================================
|
| 3 | ONAP : APPC
|
| 4 | ================================================================================
|
| 5 | Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
|
| 6 | ================================================================================
|
| 7 | Licensed under the Apache License, Version 2.0 (the "License");
|
| 8 | you may not use this file except in compliance with the License.
|
| 9 | You may obtain a copy of the License at
|
| 10 |
|
| 11 | http://www.apache.org/licenses/LICENSE-2.0
|
| 12 |
|
| 13 | Unless required by applicable law or agreed to in writing, software
|
| 14 | distributed under the License is distributed on an "AS IS" BASIS,
|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 16 | See the License for the specific language governing permissions and
|
| 17 | limitations under the License.
|
| 18 | ============LICENSE_END=========================================================
|
| 19 | -->
|
| 20 | <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">
|
| 21 | <modelVersion>4.0.0</modelVersion>
|
| 22 | <parent>
|
| 23 | <groupId>org.onap.appc</groupId>
|
| 24 | <artifactId>appc-core</artifactId>
|
Patrick Brady | 350a1d9 | 2019-06-13 12:28:11 -0700 | [diff] [blame] | 25 | <version>1.5.3-SNAPSHOT</version>
|
Ryan Young | e35c3a0 | 2018-06-28 17:22:47 -0400 | [diff] [blame] | 26 | </parent>
|
| 27 | <artifactId>appc-core-installer</artifactId>
|
| 28 | <packaging>pom</packaging>
|
| 29 |
|
| 30 | <properties>
|
| 31 | <application.name>appc-core</application.name>
|
| 32 | <features.boot>appc-core</features.boot>
|
| 33 |
|
| 34 | <!-- SEPARATED FEATURE INSTALLS -->
|
| 35 | <features.repo.core>mvn:org.onap.appc/onap-appc-core/${project.version}/xml/features</features.repo.core>
|
| 36 | <features.repo.common>mvn:org.onap.appc/onap-appc-common/${project.version}/xml/features</features.repo.common>
|
| 37 | </properties>
|
| 38 | <dependencies>
|
| 39 | <dependency>
|
| 40 | <groupId>org.onap.appc</groupId>
|
| 41 | <artifactId>onap-appc-common</artifactId>
|
| 42 | <version>${project.version}</version>
|
| 43 | <type>xml</type>
|
| 44 | <classifier>features</classifier>
|
| 45 | </dependency>
|
| 46 | <dependency>
|
| 47 | <groupId>org.onap.appc</groupId>
|
| 48 | <artifactId>onap-appc-core</artifactId>
|
| 49 | <version>${project.version}</version>
|
| 50 | <type>xml</type>
|
| 51 | <classifier>features</classifier>
|
| 52 | </dependency>
|
| 53 | </dependencies>
|
| 54 | <build>
|
| 55 | <plugins>
|
| 56 | <plugin>
|
| 57 | <artifactId>maven-assembly-plugin</artifactId>
|
| 58 | <executions>
|
| 59 | <execution>
|
| 60 | <id>maven-repo-zip</id>
|
| 61 | <goals>
|
| 62 | <goal>single</goal>
|
| 63 | </goals>
|
| 64 | <phase>package</phase>
|
| 65 | <configuration>
|
| 66 | <appendAssemblyId>false</appendAssemblyId>
|
| 67 | <attach>false</attach>
|
| 68 | <finalName>stage/${application.name}-${project.version}</finalName>
|
| 69 | <descriptors>
|
| 70 | <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
|
| 71 | </descriptors>
|
| 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 | <appendAssemblyId>false</appendAssemblyId>
|
| 82 | <attach>true</attach>
|
| 83 | <finalName>${application.name}-${project.version}</finalName>
|
| 84 | <descriptors>
|
| 85 | <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
|
| 86 | </descriptors>
|
| 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>
|
| 110 | <excludeGroupIds>org.opendaylight</excludeGroupIds>
|
| 111 | <scope>provided</scope>
|
| 112 | </configuration>
|
| 113 | </execution>
|
| 114 | </executions>
|
| 115 | </plugin>
|
| 116 | <plugin>
|
| 117 | <artifactId>maven-resources-plugin</artifactId>
|
| 118 | <executions>
|
| 119 | <execution>
|
| 120 | <id>copy-version</id>
|
| 121 | <goals>
|
| 122 | <goal>copy-resources</goal>
|
| 123 | </goals>
|
| 124 | <!-- 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 | </executions>
|
| 140 | </plugin>
|
| 141 | </plugins>
|
| 142 | </build>
|
Patrick Brady | 350a1d9 | 2019-06-13 12:28:11 -0700 | [diff] [blame] | 143 | <version>1.5.3-SNAPSHOT</version>
|
Ryan Young | e35c3a0 | 2018-06-28 17:22:47 -0400 | [diff] [blame] | 144 | </project> |