shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[BUG] <ci> main ci is failed

Open yuluo-yx opened this issue 2 months ago • 4 comments

Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project shenyu-examples-mcp: Compilation failure: Compilation failure: 
Error:  /home/runner/work/shenyu/shenyu/shenyu-examples/shenyu-examples-mcp/src/main/java/org/apache/shenyu/controller/OrderController.java:[63,21] cannot find symbol
Error:    symbol:   method bodyToJson()
Error:    location: @interface org.apache.shenyu.client.mcp.common.annotation.ShenyuMcpRequestConfig
Error:  /home/runner/work/shenyu/shenyu/shenyu-examples/shenyu-examples-mcp/src/main/java/org/apache/shenyu/controller/OrderController.java:[99,21] cannot find symbol
Error:    symbol:   method bodyToJson()
Error:    location: @interface org.apache.shenyu.client.mcp.common.annotation.ShenyuMcpRequestConfig
Error:  -> [Help 1]
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error:  
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Error:  
Error:  After correcting the problems, you can resume the build with the command
Error:    mvn <args> -r
Error: Process completed with exit code 1.

https://github.com/apache/shenyu/actions/runs/18767452390/job/53545654399

yuluo-yx avatar Oct 25 '25 16:10 yuluo-yx

👋 Hello @Aias00

A new issue has been opened by @yuluo-yx:

  • Title: [BUG] main ci is failed
  • Link: https://github.com/apache/shenyu/issues/6214

Please review when you have time. Thank you! 🙏

github-actions[bot] avatar Oct 25 '25 16:10 github-actions[bot]

/assign /area ci

yuluo-yx avatar Oct 25 '25 16:10 yuluo-yx

@478320 hi, if have time. pls take a look.

The ci has "bodyToJson", but i not found it in shenyu project code. thx

public @interface ShenyuMcpRequestConfig {

    /**
     * headers.
     *
     * @return the headers
     */
    ShenyuMcpHeader[] headers() default {};

    /**
     * bodyJson.
     * @return the bodyJson
     */
    String bodyJson() default "";

}

yuluo-yx avatar Oct 28 '25 15:10 yuluo-yx

@478320 hi, if have time. pls take a look.

The ci has "bodyToJson", but i not found it in shenyu project code. thx

public @interface ShenyuMcpRequestConfig {

    /**
     * headers.
     *
     * @return the headers
     */
    ShenyuMcpHeader[] headers() default {};

    /**
     * bodyJson.
     * @return the bodyJson
     */
    String bodyJson() default "";

}

Thank you for pointing out this issue. It may have been caused by mvnd’s smart caching, which resulted in using outdated dependencies. I will work on resolving this problem.

478320 avatar Oct 29 '25 07:10 478320