gpt4 book ai didi

java - IntelliJ 想法 : Maven compilation warning about supported annotation processor source version 'RELEASE_6' on Java 11

转载 作者:行者123 更新时间:2023-12-03 11:19:44 24 4
gpt4 key购买 nike

mvn clean install使用 Java 11 在 IntelliJ Idea 中智能执行我收到以下警告:

Warning:java: Supported source version 'RELEASE_6' from annotation processor 'net.java.dev.hickory.prism.internal.PrismGenerator' less than -source '11'


如何修复它以及它来自哪里?注意我使用:
  • Lombok 版1.18.12
  • Mapstruct 版本 1.3.1.Final

  • 我还使用默认设置在 IDE 中启用了注释处理:
  • Build, Execution, Deployment -> Compiler -> Annotation processors -> 检查 Enable annotation processing
  • 最佳答案

    原因可以在评论区找到,这是一个IntelliJ Idea bug IDEA-200481 .
    GitHub 上的 MapStruct 问题 (1644) 包含全面的解释 1644#437463737 .

    See IDEA-200481. IntelliJ is picking up the provided dependencies when doing the compilation.

    ...skipped... We can't move the hickory dependency to the annotationProcessorPaths section of the maven compiler because the @GeneratePrisms annotations are part of the dependency, so we won't be able to use them. If you think that we could do something on our side reopen this issue.

    关于java - IntelliJ 想法 : Maven compilation warning about supported annotation processor source version 'RELEASE_6' on Java 11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62932438/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com