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

时间:2016-03-30 01:53:42

标签: maven intellij-idea

当我使用itellij 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]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 [错误]使用-X开关重新运行Maven以启用完整的调试日志记录。

```

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

1 个答案:

答案 0 :(得分:3)

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

的示例

enter image description here