Skip to content

Commit 334d283

Browse files
oxseanzrlw
andauthored
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 <zrlw@sina.com>
1 parent f83f654 commit 334d283

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

dubbo-maven-plugin/src/main/java/org/apache/dubbo/maven/plugin/protoc/DubboProtocCompilerMojo.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {
173173
"protoc did not exit cleanly. Review output for more information.");
174174
} else if (StringUtils.isNotBlank(getError())) {
175175
getLog().warn("PROTOC: " + getError());
176-
} else {
177-
linkProtoFilesToMaven();
178176
}
177+
linkProtoFilesToMaven();
179178
} catch (CommandLineException e) {
180179
throw new MojoExecutionException(e);
181180
}

0 commit comments

Comments
 (0)