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