那里執行了一個特定的 Maven 插件,我很難找出它的來源,因為它的編譯依賴關系鏈接被破壞,因此洗掉或替換它。我說的是
This might be an issue with my Maven 3.3.9 with a custom settings.xml and a specific IntelliJ Idea. I assume the verbose output would lead to the true origin.
Solution 2:
Upon installing Netbeans (I use IntelliJ Idea by default), the Effective tab of the POM editor finally led me to the true origin where the plugin is defined.

Sadly, IntelliJ Idea doesn't provide such navigation through its effective POM and navigating to the origin is virtually impossible without manual clicking through parent POMs.
uj5u.com熱心網友回復:
有 幫助:Effective-Pom:
mvn -Dverbose=true -Doutput=./effective-pom.xml help:effective-pom
我們可以分析我們的“有效 pom”(Pom#inheritance,Pom#super-Pom)。
- 該
verbose標志還將添加源 pom(工件)作為每個輸出行的注釋。 output設定輸出檔案。(默認:列印到控制臺)
“除其他外”它允許我們定位/覆寫任何繼承的插件/依賴項/“pom 元素”。
不幸的是,輸出生成:
- 對于“瑣碎”專案,“數百”行 pom.xml 檔案。
- 對于“非平凡”(spring-boot-starter),它很容易進入“一萬”(pom 行)。
在 智能我們有一個“顯示有效 Pom”命令,它基本上呼叫提到的目標并顯示輸出(不幸的是在社區版中!?)沒有“詳細”。
網豆 在其“Pom 編輯器”中有一個“有效”選項卡:
- 滾動/游標在這里也“麻煩”,但我們有“完整”:
- “導航”(視窗)支持
- 文字搜索
- 代碼提示等...
(,“圖形”視圖也非常好......(以及“maven IDES(我知道)”中的獨特功能,并且可以無根安裝;)!
更新:
所以 mojo 似乎按照檔案作業:
<verbose>boolean (因為: )3.2.0 輸出 POM 輸入位置作為注釋。默認值為:
false。用戶屬性是:
verbose。
為了verbose產生效果,我們需要:
<project ...>
...
<build>
<plugins>
<artifactId>maven-help-plugin</artifactId>
<version>3.2.0</version> <!-- or higher! -->
</plugins>
</build>
...
</project>
...分別可以(沒有pom修改):
mvn -Dverbose=true -Doutput=./eff.pom.xml \
org.apache.maven.plugins:maven-help-plugin:3.2.0:effective-pom
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/401730.html
標籤:java maven pom.xml maven-plugin reflections
上一篇:Cassandra - A Decentralized Structured Storage System 論文總結
