gpt4 book ai didi

java - 如何分析 Maven pom.xml 的错误(用于冗余或忽略属性的 pom linter?)

转载 作者:行者123 更新时间:2023-12-01 12:17:37 26 4
gpt4 key购买 nike

我的 pom.xml很乱,随着时间的推移收集了cruft。有没有自动的方法来“清理”一个pom?就像一个短绒,但对于 maven。
在 IntelliJ 中我可以运行 Analyze > Inspect Code并获取未使用的函数、愚蠢的迭代器和可能的错误的列表。我想我正在为我的 pom 寻找同样的东西

  • 未使用的存储库,pluginRepositories
  • 未使用的属性
  • 与插件中指定的设置冲突的属性
  • 更新版本的依赖关系( mvn versions:display-dependency-updates 有效,但不限于非破坏性版本更新)
  • 最佳答案

    听起来没有像 jshint.com 这样的 pom.xml linter,我可以将我的 pom 粘贴到其中并获得建议。

    关于java - 如何分析 Maven pom.xml 的错误(用于冗余或忽略属性的 pom linter?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63018251/

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