Singal, Kapil (ks220y) | f086bce | 2018-09-04 23:41:26 -0400 | [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 |
|
| 19 | <project xmlns="http://maven.apache.org/POM/4.0.0"
|
| 20 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 21 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
| 22 | <modelVersion>4.0.0</modelVersion>
|
| 23 | <parent>
|
| 24 | <groupId>org.onap.ccsdk.config</groupId>
|
| 25 | <artifactId>blueprints-processor</artifactId>
|
| 26 | <version>0.0.1-SNAPSHOT</version>
|
| 27 | </parent>
|
| 28 |
|
| 29 | <artifactId>blueprints-processor-installer</artifactId>
|
| 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.config/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.config</groupId>
|
| 43 | <artifactId>blueprints-processor-features</artifactId>
|
| 44 | <classifier>features</classifier>
|
| 45 | <type>xml</type>
|
| 46 | <exclusions>
|
| 47 | <exclusion>
|
| 48 | <groupId>*</groupId>
|
| 49 | <artifactId>*</artifactId>
|
| 50 | </exclusion>
|
| 51 | </exclusions>
|
| 52 | </dependency>
|
| 53 | <dependency>
|
| 54 | <groupId>org.onap.ccsdk.config</groupId>
|
| 55 | <artifactId>blueprints-data-adaptor-provider</artifactId>
|
| 56 | </dependency>
|
| 57 | <dependency>
|
| 58 | <groupId>org.onap.ccsdk.config</groupId>
|
| 59 | <artifactId>blueprints-rest-adaptor-provider</artifactId>
|
| 60 | </dependency>
|
| 61 | <dependency>
|
| 62 | <groupId>org.onap.ccsdk.config</groupId>
|
| 63 | <artifactId>blueprints-assignment-provider</artifactId>
|
| 64 | </dependency>
|
| 65 | <dependency>
|
| 66 | <groupId>org.onap.ccsdk.config</groupId>
|
| 67 | <artifactId>blueprints-generator-provider</artifactId>
|
| 68 | </dependency>
|
| 69 | <dependency>
|
| 70 | <groupId>org.onap.ccsdk.config</groupId>
|
| 71 | <artifactId>blueprints-model-provider</artifactId>
|
| 72 | </dependency>
|
| 73 | </dependencies>
|
| 74 |
|
| 75 | <build>
|
| 76 | <plugins>
|
| 77 | <plugin>
|
| 78 | <artifactId>maven-assembly-plugin</artifactId>
|
| 79 | <executions>
|
| 80 | <execution>
|
| 81 | <id>maven-repo-zip</id>
|
| 82 | <goals>
|
| 83 | <goal>single</goal>
|
| 84 | </goals>
|
| 85 | <phase>package</phase>
|
| 86 | <configuration>
|
| 87 | <attach>false</attach>
|
| 88 | <finalName>stage/${application.name}-${project.version}</finalName>
|
| 89 | <descriptors>
|
| 90 | <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
|
| 91 | </descriptors>
|
| 92 | <appendAssemblyId>false</appendAssemblyId>
|
| 93 | </configuration>
|
| 94 | </execution>
|
| 95 | <execution>
|
| 96 | <id>installer-zip</id>
|
| 97 | <goals>
|
| 98 | <goal>single</goal>
|
| 99 | </goals>
|
| 100 | <phase>package</phase>
|
| 101 | <configuration>
|
| 102 | <attach>true</attach>
|
| 103 | <finalName>${application.name}-${project.version}-installer</finalName>
|
| 104 | <descriptors>
|
| 105 | <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
|
| 106 | </descriptors>
|
| 107 | <appendAssemblyId>false</appendAssemblyId>
|
| 108 | </configuration>
|
| 109 | </execution>
|
| 110 | </executions>
|
| 111 | </plugin>
|
| 112 | <plugin>
|
| 113 | <groupId>org.apache.maven.plugins</groupId>
|
| 114 | <artifactId>maven-dependency-plugin</artifactId>
|
| 115 | <executions>
|
| 116 | <execution>
|
| 117 | <id>copy-dependencies</id>
|
| 118 | <goals>
|
| 119 | <goal>copy-dependencies</goal>
|
| 120 | </goals>
|
| 121 | <phase>prepare-package</phase>
|
| 122 | <configuration>
|
| 123 | <transitive>false</transitive>
|
| 124 | <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
|
| 125 | <overWriteReleases>false</overWriteReleases>
|
| 126 | <overWriteSnapshots>true</overWriteSnapshots>
|
| 127 | <overWriteIfNewer>true</overWriteIfNewer>
|
| 128 | <useRepositoryLayout>true</useRepositoryLayout>
|
| 129 | <addParentPoms>false</addParentPoms>
|
| 130 | <copyPom>false</copyPom>
|
| 131 | <includeArtifactIds>
|
| 132 | blueprints-processor-features,
|
| 133 | blueprints-data-adaptor-provider,
|
| 134 | blueprints-rest-adaptor-provider,
|
| 135 | blueprints-assignment-provider,
|
| 136 | blueprints-generator-provider,commons-lang,commons-collections,
|
| 137 | blueprints-model-provider,
|
| 138 | </includeArtifactIds>
|
| 139 | <scope>provided</scope>
|
| 140 | </configuration>
|
| 141 | </execution>
|
| 142 | </executions>
|
| 143 | </plugin>
|
| 144 | <plugin>
|
| 145 | <artifactId>maven-resources-plugin</artifactId>
|
| 146 | <version>2.6</version>
|
| 147 | <executions>
|
| 148 | <execution>
|
| 149 | <id>copy-version</id>
|
| 150 | <goals>
|
| 151 | <goal>copy-resources</goal>
|
| 152 | </goals><!-- here the phase you need -->
|
| 153 | <phase>validate</phase>
|
| 154 | <configuration>
|
| 155 | <outputDirectory>${basedir}/target/stage</outputDirectory>
|
| 156 | <resources>
|
| 157 | <resource>
|
| 158 | <directory>src/main/resources/scripts</directory>
|
| 159 | <includes>
|
| 160 | <include>install-feature.sh</include>
|
| 161 | </includes>
|
| 162 | <filtering>true</filtering>
|
| 163 | </resource>
|
| 164 | </resources>
|
| 165 | </configuration>
|
| 166 | </execution>
|
| 167 | </executions>
|
| 168 | </plugin>
|
| 169 | </plugins>
|
| 170 | </build>
|
| 171 | </project>
|