問題描述
intellij idea中‑X和‑e開關在哪裡打開 (Where to open the ‑X and ‑e switch in intellij idea)
當我使用 intellij idea 運行 elasticsearch 時,出現以下錯誤
[ERROR] Failed to execute goal org.apache.maven.plugins:maven‑remote‑resources‑plugin:1.5:process (default) on project elasticsearch: Resources archive cannot be found. Failure to find org.elasticsearch:dev‑tools:jar:2.2.0‑SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of oss‑snapshots has elapsed or updates are forced
並給我一些提示:
[ERROR] To see the full stack trace of the errors, re‑run Maven with the ‑e switch.
[ERROR] Re‑run Maven using the ‑X switch to enable full debug logging.
但我不知道在哪裡使用‑e 和 ‑X 切換。
參考解法
方法 1:
You can create a Run/Debug Configuration
for your maven plugin, and in the field Command line
you can enter the options. This is an example which is equivalent to the command line call mvn ‑e ‑X clean package
:
(by user1900344、JimHawkins)