This is an automated email from the ASF dual-hosted git repository.

zrlw pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new 334d283638 Fix the source directory was not attached when the protoc 
error message was not empty (#15553)
334d283638 is described below

commit 334d28363854e66e1d8f983d9547279fb88811c8
Author: Sean Yang <[email protected]>
AuthorDate: Tue Jul 15 17:44:55 2025 +0800

    Fix the source directory was not attached when the protoc error message was 
not empty (#15553)
    
    * Fix the source directory was not attached when the protoc error message 
was not empty
    
    ---------
    
    Co-authored-by: zrlw <[email protected]>
---
 .../org/apache/dubbo/maven/plugin/protoc/DubboProtocCompilerMojo.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/dubbo-maven-plugin/src/main/java/org/apache/dubbo/maven/plugin/protoc/DubboProtocCompilerMojo.java
 
b/dubbo-maven-plugin/src/main/java/org/apache/dubbo/maven/plugin/protoc/DubboProtocCompilerMojo.java
index 5cd40bd3ae..b9ec347a14 100644
--- 
a/dubbo-maven-plugin/src/main/java/org/apache/dubbo/maven/plugin/protoc/DubboProtocCompilerMojo.java
+++ 
b/dubbo-maven-plugin/src/main/java/org/apache/dubbo/maven/plugin/protoc/DubboProtocCompilerMojo.java
@@ -173,9 +173,8 @@ public class DubboProtocCompilerMojo extends AbstractMojo {
                     "protoc did not exit cleanly. Review output for more 
information.");
             } else if (StringUtils.isNotBlank(getError())) {
                 getLog().warn("PROTOC: " + getError());
-            } else {
-                linkProtoFilesToMaven();
             }
+            linkProtoFilesToMaven();
         } catch (CommandLineException e) {
             throw new MojoExecutionException(e);
         }

Reply via email to