In the IntelliJ Maven Projects tree-view pane, you can see the Lifecycle tasks for all of the maven modules.

By default, these show "Basic Tasks Only". I can untick this, but then I see everything.....

Is it possible to add just one task (integration-test) to the "Basic Tasks Only" list?

i.e. can the IntelliJ Maven Integration plugin be configured?

Or can I write my own plugin to configure this at runtime?

Any tips appreciated. IntelliJ 12.1.4.

有帮助吗?

解决方案

Maven plugin is not configurable like this, it is either showing only basic phases or full lifecycle. A typical workaround for your use case would be to create a Maven run configuration based on the phase you want to launch. If you really want to fine grain the visible phases inside the Maven tool window, you would have to modify the IntelliJ Community Edition, whose code is available, patches are always welcome by JetBrains.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top