Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用特定依赖项时,Maven 需要“警告”我,例如在编译或打包项目时在控制台上显示警告消息。我在依赖 pom.xml 规范中没有找到任何东西。
谢谢。
您可以使用maven-enforcer-plugin来检查这种依赖关系并在这种情况下破坏构建。这可能会解决一半,但不是 100%。在这种情况下,您可能可以编写自定义规则来满足需求。