在intellij想法中打开-X和-e开关的位置

问题描述 投票:3回答:1

当我使用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

并给我一些提示:

```

[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 [ERROR]使用-X开关重新运行Maven以启用完整的调试日志记录。

```

但我不知道在哪里使用-e和-X开关。

maven intellij-idea
1个回答
3
投票

你可以为你的maven插件创建一个Run/Debug Configuration,在Command line字段中你可以输入选项。这是一个相当于命令行调用mvn -e -X clean package的示例:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.