Merge "Improving CMD-exec err msgs/handling."
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / blueprints / blueprint-proto / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~  Copyright © 2019 IBM.
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
18 <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">
19     <modelVersion>4.0.0</modelVersion>
20
21     <parent>
22        <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
23        <artifactId>blueprints</artifactId>
24        <version>1.0.0-SNAPSHOT</version>
25     </parent>
26
27     <artifactId>blueprint-proto</artifactId>
28
29     <name>Controller Blueprints Proto</name>
30     <description>Controller Blueprints Proto</description>
31
32     <properties>
33         <sonar.skip>true</sonar.skip>
34     </properties>
35
36     <dependencies>
37         <dependency>
38             <groupId>com.github.marcoferrer.krotoplus</groupId>
39             <artifactId>kroto-plus-coroutines</artifactId>
40         </dependency>
41     </dependencies>
42
43     <build>
44         <plugins>
45             <plugin>
46                 <groupId>org.xolstice.maven.plugins</groupId>
47                 <artifactId>protobuf-maven-plugin</artifactId>
48                 <version>0.6.1</version>
49                 <configuration>
50                     <protocArtifact>
51                         com.google.protobuf:protoc:3.10.0:exe:${os.detected.classifier}
52                     </protocArtifact>
53                     <protoSourceRoot>${project.basedir}/../../../../../components/model-catalog/proto-definition/proto
54                     </protoSourceRoot>
55                 </configuration>
56                 <executions>
57                     <execution>
58                         <goals>
59                             <goal>compile</goal>
60                         </goals>
61                     </execution>
62                     <execution>
63                         <id>grpc-java</id>
64                         <goals>
65                             <goal>compile-custom</goal>
66                         </goals>
67                         <configuration>
68                             <pluginId>grpc-java</pluginId>
69                             <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
70                             </pluginArtifact>
71                         </configuration>
72                     </execution>
73                     <!--
74                     <execution>
75                         <id>grpc-coroutines</id>
76                         <goals>
77                             <goal>compile-custom</goal>
78                         </goals>
79                         <configuration>
80                             <pluginId>kroto-plus</pluginId>
81                             <pluginArtifact>
82                                 com.github.marcoferrer.krotoplus:protoc-gen-kroto-plus:${kroto-plus.version}:jar:jvm8
83                             </pluginArtifact>
84                             <pluginParameter>ConfigPath=${project.basedir}/krotoPlusConfig.asciipb</pluginParameter>
85                         </configuration>
86                     </execution>
87                     -->
88                 </executions>
89             </plugin>
90             <plugin>
91                 <groupId>org.jetbrains.kotlin</groupId>
92                 <artifactId>kotlin-maven-plugin</artifactId>
93                 <version>${kotlin.maven.version}</version>
94                 <executions>
95                     <execution>
96                         <id>compile</id>
97                         <goals>
98                             <goal>compile</goal>
99                         </goals>
100                         <configuration>
101                             <sourceDirs>
102                                 <sourceDir>${project.basedir}/target/generated-sources/protobuf/java</sourceDir>
103                                 <sourceDir>${project.basedir}/target/generated-sources/protobuf/grpc-java</sourceDir>
104                                 <!--<sourceDir>${project.basedir}/target/generated-sources/protobuf/kroto-plus</sourceDir>-->
105                             </sourceDirs>
106                         </configuration>
107                     </execution>
108                 </executions>
109             </plugin>
110         </plugins>
111         <extensions>
112             <extension>
113                 <groupId>kr.motd.maven</groupId>
114                 <artifactId>os-maven-plugin</artifactId>
115                 <version>1.6.2</version>
116             </extension>
117         </extensions>
118     </build>
119 </project>