Timoney, Dan (dt5972) | 4a46ddd | 2019-01-08 14:20:28 -0500 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright © 2017-2018 AT&T Intellectual Property. |
| 4 | Modifications Copyright © 2018 IBM. |
| 5 | |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | --> |
| 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"> |
| 19 | <modelVersion>4.0.0</modelVersion> |
| 20 | <parent> |
| 21 | <groupId>org.onap.ccsdk.parent</groupId> |
| 22 | <artifactId>odlparent-lite</artifactId> |
| 23 | <version>1.2.0</version> |
| 24 | <relativePath/> |
| 25 | </parent> |
| 26 | |
| 27 | <groupId>org.onap.ccsdk.features</groupId> |
| 28 | <artifactId>blueprints-processor-installer</artifactId> |
| 29 | <version>0.4.0-SNAPSHOT</version> |
| 30 | <packaging>pom</packaging> |
| 31 | <name>Blueprints Processor :: ${project.artifactId}</name> |
| 32 | |
| 33 | <properties> |
| 34 | <application.name>blueprints-processor</application.name> |
| 35 | <features.boot>blueprints-processor-features</features.boot> |
| 36 | <features.repositories>mvn:org.onap.ccsdk.features/ccsdk-features/blueprints-processor-features/${project.version}/xml/features</features.repositories> |
| 37 | <include.transitive.dependencies>false</include.transitive.dependencies> |
| 38 | </properties> |
| 39 | |
| 40 | <dependencies> |
| 41 | <dependency> |
| 42 | <groupId>org.onap.ccsdk.features</groupId> |
| 43 | <artifactId>ccsdk-blueprints-processor</artifactId> |
| 44 | <version>${project.version}</version> |
| 45 | <classifier>features</classifier> |
| 46 | <type>xml</type> |
| 47 | <exclusions> |
| 48 | <exclusion> |
| 49 | <groupId>*</groupId> |
| 50 | <artifactId>*</artifactId> |
| 51 | </exclusion> |
| 52 | </exclusions> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>org.onap.ccsdk.features</groupId> |
| 56 | <artifactId>blueprints-data-adaptor-provider</artifactId> |
| 57 | <version>${project.version}</version> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>org.onap.ccsdk.features</groupId> |
| 61 | <artifactId>blueprints-rest-adaptor-provider</artifactId> |
| 62 | <version>${project.version}</version> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.onap.ccsdk.features</groupId> |
| 66 | <artifactId>blueprints-assignment-provider</artifactId> |
| 67 | <version>${project.version}</version> |
| 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>org.onap.ccsdk.features</groupId> |
| 71 | <artifactId>blueprints-generator-provider</artifactId> |
| 72 | <version>${project.version}</version> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>org.onap.ccsdk.features</groupId> |
| 76 | <artifactId>blueprints-model-provider</artifactId> |
| 77 | <version>${project.version}</version> |
| 78 | </dependency> |
| 79 | </dependencies> |
| 80 | |
| 81 | <build> |
| 82 | <plugins> |
| 83 | <plugin> |
| 84 | <artifactId>maven-assembly-plugin</artifactId> |
| 85 | <executions> |
| 86 | <execution> |
| 87 | <id>maven-repo-zip</id> |
| 88 | <goals> |
| 89 | <goal>single</goal> |
| 90 | </goals> |
| 91 | <phase>package</phase> |
| 92 | <configuration> |
| 93 | <attach>true</attach> |
| 94 | <finalName>stage/${application.name}-${project.version}</finalName> |
| 95 | <descriptors> |
| 96 | <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor> |
| 97 | </descriptors> |
| 98 | <appendAssemblyId>true</appendAssemblyId> |
| 99 | </configuration> |
| 100 | </execution> |
| 101 | <execution> |
| 102 | <id>installer-zip</id> |
| 103 | <goals> |
| 104 | <goal>single</goal> |
| 105 | </goals> |
| 106 | <phase>package</phase> |
| 107 | <configuration> |
| 108 | <attach>true</attach> |
| 109 | <finalName>${application.name}-${project.version}-installer</finalName> |
| 110 | <descriptors> |
| 111 | <descriptor>src/assembly/assemble_installer_zip.xml</descriptor> |
| 112 | </descriptors> |
| 113 | <appendAssemblyId>false</appendAssemblyId> |
| 114 | </configuration> |
| 115 | </execution> |
| 116 | </executions> |
| 117 | </plugin> |
| 118 | <plugin> |
| 119 | <groupId>org.apache.maven.plugins</groupId> |
| 120 | <artifactId>maven-dependency-plugin</artifactId> |
| 121 | <executions> |
| 122 | <execution> |
| 123 | <id>copy-dependencies</id> |
| 124 | <goals> |
| 125 | <goal>copy-dependencies</goal> |
| 126 | </goals> |
| 127 | <phase>prepare-package</phase> |
| 128 | <configuration> |
| 129 | <transitive>false</transitive> |
| 130 | <outputDirectory>${project.build.directory}/assembly/system</outputDirectory> |
| 131 | <overWriteReleases>false</overWriteReleases> |
| 132 | <overWriteSnapshots>true</overWriteSnapshots> |
| 133 | <overWriteIfNewer>true</overWriteIfNewer> |
| 134 | <useRepositoryLayout>true</useRepositoryLayout> |
| 135 | <addParentPoms>false</addParentPoms> |
| 136 | <copyPom>false</copyPom> |
| 137 | <includeGroupIds>org.onap.ccsdk.features</includeGroupIds> |
| 138 | <scope>provided</scope> |
| 139 | </configuration> |
| 140 | </execution> |
| 141 | </executions> |
| 142 | </plugin> |
| 143 | <plugin> |
| 144 | <artifactId>maven-resources-plugin</artifactId> |
| 145 | <version>2.6</version> |
| 146 | <executions> |
| 147 | <execution> |
| 148 | <id>copy-version</id> |
| 149 | <goals> |
| 150 | <goal>copy-resources</goal> |
| 151 | </goals><!-- here the phase you need --> |
| 152 | <phase>validate</phase> |
| 153 | <configuration> |
| 154 | <outputDirectory>${basedir}/target/stage</outputDirectory> |
| 155 | <resources> |
| 156 | <resource> |
| 157 | <directory>src/main/resources/scripts</directory> |
| 158 | <includes> |
| 159 | <include>install-feature.sh</include> |
| 160 | </includes> |
| 161 | <filtering>true</filtering> |
| 162 | </resource> |
| 163 | </resources> |
| 164 | </configuration> |
| 165 | </execution> |
| 166 | </executions> |
| 167 | </plugin> |
| 168 | </plugins> |
| 169 | </build> |
| 170 | </project> |