Fix SDK Vulnerabilities
[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-2022 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>${revision}</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     <dependencies>
42         <dependency>
43             <groupId>com.google.protobuf</groupId>
44             <artifactId>protobuf-java</artifactId>
45         </dependency>
46     </dependencies>
47
48     <build>
49         <plugins>
50             <plugin>
51                 <groupId>org.codehaus.mojo</groupId>
52                 <artifactId>build-helper-maven-plugin</artifactId>
53                 <executions>
54                     <execution>
55                         <id>add-source</id>
56                         <phase>generate-sources</phase>
57                         <goals>
58                             <goal>add-source</goal>
59                         </goals>
60                         <configuration>
61                             <sources>
62                                 <source>${protobuf-generated-files.directory}</source>
63                             </sources>
64                         </configuration>
65                     </execution>
66                 </executions>
67             </plugin>
68             <plugin>
69                 <groupId>com.github.os72</groupId>
70                 <artifactId>protoc-jar-maven-plugin</artifactId>
71                 <executions>
72                     <execution>
73                         <id>generate-sources</id>
74                         <phase>generate-sources</phase>
75                         <goals>
76                             <goal>run</goal>
77                         </goals>
78                         <configuration>
79                             <protocArtifact>com.google.protobuf:protoc:${protobuf.version}</protocArtifact>
80                             <inputDirectories>
81                                 <include>${project.basedir}/src/main/proto</include>
82                             </inputDirectories>
83                             <outputTargets>
84                                 <outputTarget>
85                                     <type>java</type>
86                                     <addSources>none</addSources>
87                                     <outputDirectory>${protobuf-generated-files.directory}</outputDirectory>
88                                 </outputTarget>
89                             </outputTargets>
90                         </configuration>
91                     </execution>
92                 </executions>
93             </plugin>
94         </plugins>
95     </build>
96
97 </project>