Update CBS-Client to read policy configuration from a file exposed by policy-sidecar...
[dcaegen2/services/sdk.git] / services / hv-ves-client / protobuf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ DCAEGEN2-SERVICES-SDK
5   ~ ================================================================================
6   ~ Copyright (C) 2019-2021 Nokia
7   ~ ================================================================================
8   ~ Licensed under the Apache License, Version 2.0 (the "License");
9   ~ you may not use this file except in compliance with the License.
10   ~ You may obtain a copy of the License at
11   ~
12   ~      http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~ Unless required by applicable law or agreed to in writing, software
15   ~ distributed under the License is distributed on an "AS IS" BASIS,
16   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~ See the License for the specific language governing permissions and
18   ~ limitations under the License.
19   ~ ============LICENSE_END=========================================================
20   -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <artifactId>dcaegen2-services-sdk-services-hvvesclient</artifactId>
28         <groupId>org.onap.dcaegen2.services.sdk</groupId>
29         <version>1.8.5-SNAPSHOT</version>
30     </parent>
31
32     <name>High Volume VES Collector Client :: Protobuf</name>
33     <artifactId>hvvesclient-protobuf</artifactId>
34     <description>Module for generating java classes from Google Protocol Buffers files</description>
35
36     <properties>
37         <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
38         </protobuf-generated-files.directory>
39     </properties>
40
41     <build>
42         <plugins>
43             <plugin>
44                 <groupId>org.codehaus.mojo</groupId>
45                 <artifactId>build-helper-maven-plugin</artifactId>
46                 <executions>
47                     <execution>
48                         <id>add-source</id>
49                         <phase>generate-sources</phase>
50                         <goals>
51                             <goal>add-source</goal>
52                         </goals>
53                         <configuration>
54                             <sources>
55                                 <source>${protobuf-generated-files.directory}</source>
56                             </sources>
57                         </configuration>
58                     </execution>
59                 </executions>
60             </plugin>
61             <plugin>
62                 <groupId>com.github.os72</groupId>
63                 <artifactId>protoc-jar-maven-plugin</artifactId>
64                 <executions>
65                     <execution>
66                         <phase>generate-sources</phase>
67                         <goals>
68                             <goal>run</goal>
69                         </goals>
70                         <configuration>
71                             <protocArtifact>com.google.protobuf:protoc:${protobuf.version}</protocArtifact>
72                             <inputDirectories>
73                                 <include>${project.basedir}/src/main/proto</include>
74                             </inputDirectories>
75                             <outputTargets>
76                                 <outputTarget>
77                                     <type>java</type>
78                                     <addSources>none</addSources>
79                                     <outputDirectory>${protobuf-generated-files.directory}</outputDirectory>
80                                 </outputTarget>
81                             </outputTargets>
82                         </configuration>
83                     </execution>
84                 </executions>
85             </plugin>
86         </plugins>
87     </build>
88
89     <dependencies>
90         <dependency>
91             <groupId>com.google.protobuf</groupId>
92             <artifactId>protobuf-java</artifactId>
93         </dependency>
94     </dependencies>
95
96 </project>