簡體   English   中英

IntelliJ 引入 maven-enforcer-plugin 而不是它明確的一部分 pom.xml

[英]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作為最小值。 但是,此時我很難找到相同的設置。 有人能指出IntelliJMaven版本邊界的設置在哪里嗎?

我正在使用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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM