![](/img/trans.png)
[英]maven-enforcer-plugin complains about dependencies that I cannot find in pom.xml files
[英]IntelliJ pulling in maven-enforcer-plugin without it being explicitly part of the pom.xml
從IntelliJ
進行構建時,我收到錯誤消息
org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Detected Maven Version: 3.3.9 is not in the allowed range 3.6.0.
我的 maven 版本是3.3.9
,這是我要堅持的版本。 我確實記得第一次打開IntelliJ
時,通過一個 UI 要求我為Maven
指定最小和最大版本,我確實指定了3.6
作為最小值。 但是,此時我很難找到相同的設置。 有人能指出IntelliJ
對Maven
版本邊界的設置在哪里嗎?
我正在使用IntelliJ 2017.3.5
你可以試試這條路
-> Menu > Preferences > Type: Maven or Go to Building, Execution: Maven > select your version - 3.3.9 from Maven home directory: dropwdown
確保您已下載 maven 環境並將其設置為 PC 上的全局變量
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.