blob: 8a5c00efb4164ee0b8ed9f708ee1aac4470ec2e7 [file] [log] [blame]
Alexis de Talhouët9d88d3f2019-01-18 13:50:18 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright (C) 2019 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)0e2eb6a2019-03-14 10:49:03 -040017<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ët9d88d3f2019-01-18 13:50:18 -050018 <modelVersion>4.0.0</modelVersion>
19
20 <parent>
21 <groupId>org.onap.ccsdk.parent</groupId>
22 <artifactId>odlparent-lite</artifactId>
Timoney, Dan (dt5972)0e2eb6a2019-03-14 10:49:03 -040023 <version>1.2.1</version>
Alexis de Talhouët9d88d3f2019-01-18 13:50:18 -050024 <relativePath/>
25 </parent>
26
27 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
28 <artifactId>grpc-client-installer</artifactId>
29 <version>0.4.1-SNAPSHOT</version>
30 <packaging>pom</packaging>
31
32 <name>ccsdk-sli-adaptors :: grpc-client :: ${project.artifactId}</name>
33
34 <properties>
35 <application.name>ccsdk-grpc-client</application.name>
36 <features.boot>${application.name}</features.boot>
37 <features.repositories>mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features
38 </features.repositories>
39 <include.transitive.dependencies>false</include.transitive.dependencies>
40 </properties>
41
42 <dependencies>
43
44 <dependency>
45 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
46 <artifactId>ccsdk-grpc-client</artifactId>
47 <version>${project.version}</version>
48 <type>xml</type>
49 <classifier>features</classifier>
50 <exclusions>
51 <exclusion>
52 <groupId>*</groupId>
53 <artifactId>*</artifactId>
54 </exclusion>
55 </exclusions>
56 </dependency>
57
58 <dependency>
59 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
60 <artifactId>grpc-client-provider</artifactId>
61 <version>${project.version}</version>
62 </dependency>
63
64 </dependencies>
65
66 <build>
67 <plugins>
68 <plugin>
69 <artifactId>maven-assembly-plugin</artifactId>
70 <version>2.6</version>
71 <executions>
72 <execution>
73 <id>maven-repo-zip</id>
74 <goals>
75 <goal>single</goal>
76 </goals>
77 <phase>package</phase>
78 <configuration>
79 <attach>true</attach>
80 <finalName>stage/${application.name}-${project.version}</finalName>
81 <descriptors>
82 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
83 </descriptors>
84 <appendAssemblyId>true</appendAssemblyId>
85 </configuration>
86 </execution>
87 <execution>
88 <id>installer-zip</id>
89 <goals>
90 <goal>single</goal>
91 </goals>
92 <phase>package</phase>
93 <configuration>
94 <attach>true</attach>
95 <finalName>${application.name}-${project.version}-installer</finalName>
96 <descriptors>
97 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
98 </descriptors>
99 <appendAssemblyId>false</appendAssemblyId>
100 </configuration>
101 </execution>
102 </executions>
103 </plugin>
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-dependency-plugin</artifactId>
107 <executions>
108 <execution>
109 <id>copy-dependencies</id>
110 <goals>
111 <goal>copy-dependencies</goal>
112 </goals>
113 <phase>prepare-package</phase>
114 <configuration>
115 <transitive>false</transitive>
116 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
117 <overWriteReleases>false</overWriteReleases>
118 <overWriteSnapshots>true</overWriteSnapshots>
119 <overWriteIfNewer>true</overWriteIfNewer>
120 <useRepositoryLayout>true</useRepositoryLayout>
121 <addParentPoms>false</addParentPoms>
122 <copyPom>false</copyPom>
Alexis de Talhouëtafde7322019-01-18 15:14:23 -0500123 <includeGroupIds>
124 org.onap.ccsdk.sli.adaptors,
125 org.onap.ccsdk.apps.components,
126 io.grpc,
127 io.netty,
128 com.google.protobuf,
129 io.opencensus,
130 com.google.api.grpc,
131 com.google.errorprone,
132 org.codehaus.mojo
133 </includeGroupIds>
Alexis de Talhouët9d88d3f2019-01-18 13:50:18 -0500134 <scope>provided</scope>
135 </configuration>
136 </execution>
137 </executions>
138 </plugin>
139 <plugin>
140 <artifactId>maven-resources-plugin</artifactId>
141 <version>2.6</version>
142 <executions>
143 <execution>
144 <id>copy-version</id>
145 <goals>
146 <goal>copy-resources</goal>
147 </goals><!-- here the phase you need -->
148 <phase>validate</phase>
149 <configuration>
150 <outputDirectory>${basedir}/target/stage</outputDirectory>
151 <resources>
152 <resource>
153 <directory>src/main/resources/scripts</directory>
154 <includes>
155 <include>install-feature.sh</include>
156 </includes>
157 <filtering>true</filtering>
158 </resource>
159 </resources>
160 </configuration>
161 </execution>
162
163 </executions>
164 </plugin>
165
166 </plugins>
167 </build>
168</project>