|
22 | 22 | <protobuf.input.directory>${project.build.directory}/proto</protobuf.input.directory>
|
23 | 23 | <maven.deploy.skip>false</maven.deploy.skip>
|
24 | 24 | <grpc.version>1.69.0</grpc.version>
|
25 |
| - <protocCommand>java-sdk-protoc</protocCommand> |
26 | 25 | <protobuf.version>3.25.5</protobuf.version>
|
27 | 26 | </properties>
|
28 | 27 |
|
|
110 | 109 | </executions>
|
111 | 110 | </plugin>
|
112 | 111 | <plugin>
|
113 |
| - <groupId>kr.motd.maven</groupId> |
114 |
| - <artifactId>os-maven-plugin</artifactId> |
115 |
| - <version>1.7.0</version> |
116 |
| - <executions> |
117 |
| - <execution> |
118 |
| - <goals> |
119 |
| - <goal>detect</goal> |
120 |
| - </goals> |
121 |
| - </execution> |
122 |
| - </executions> |
123 |
| - </plugin> |
124 |
| - <plugin> |
125 |
| - <groupId>com.github.os72</groupId> |
126 |
| - <artifactId>protoc-jar-maven-plugin</artifactId> |
127 |
| - <version>3.11.4</version> |
| 112 | + <groupId>org.xolstice.maven.plugins</groupId> |
| 113 | + <artifactId>protobuf-maven-plugin</artifactId> |
| 114 | + <version>0.6.1</version> |
| 115 | + <configuration> |
| 116 | + <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact> |
| 117 | + <pluginId>grpc-java</pluginId> |
| 118 | + <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact> |
| 119 | + <protoSourceRoot>${protobuf.input.directory}</protoSourceRoot> |
| 120 | + </configuration> |
128 | 121 | <executions>
|
129 | 122 | <execution>
|
130 |
| - <phase>generate-sources</phase> |
131 | 123 | <goals>
|
132 |
| - <goal>run</goal> |
| 124 | + <goal>compile</goal> |
| 125 | + <goal>compile-custom</goal> |
133 | 126 | </goals>
|
134 |
| - <configuration> |
135 |
| - <protocCommand>java-sdk-protoc</protocCommand> |
136 |
| - <protocVersion>${protobuf.version}</protocVersion> |
137 |
| - <protocArtifact>com.google.protobuf:protoc:3.25.5</protocArtifact> |
138 |
| - <addProtoSources>inputs</addProtoSources> |
139 |
| - <includeMavenTypes>direct</includeMavenTypes> |
140 |
| - <includeStdTypes>true</includeStdTypes> |
141 |
| - <inputDirectories> |
142 |
| - <include>${protobuf.input.directory}</include> |
143 |
| - </inputDirectories> |
144 |
| - <includeDirectories> |
145 |
| - <include>${protobuf.input.directory}</include> |
146 |
| - </includeDirectories> |
147 |
| - <outputTargets> |
148 |
| - <outputTarget> |
149 |
| - <type>java</type> |
150 |
| - <outputDirectory>${protobuf.output.directory}</outputDirectory> |
151 |
| - </outputTarget> |
152 |
| - <outputTarget> |
153 |
| - <type>grpc-java</type> |
154 |
| - <outputDirectory>${protobuf.output.directory}</outputDirectory> |
155 |
| - <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}</pluginArtifact> |
156 |
| - </outputTarget> |
157 |
| - </outputTargets> |
158 |
| - </configuration> |
159 | 127 | </execution>
|
160 | 128 | </executions>
|
161 | 129 | </plugin>
|
|
0 commit comments