Skip to content

Maven Explorer: executing a specific lifecycle phase opens generic goal picker instead of running that phase #1143

@moni-dips

Description

@moni-dips

Describe the bug
When using the Maven Explorer in VS Code, clicking the execute/play action next to a specific lifecycle phase such as compile does not run that phase directly. Instead, it opens a generic prompt asking me to choose a goal again. This is confusing and makes the UI look broken, because the action appears to be attached to a specific phase.

To Reproduce
Steps to reproduce the behavior:

  1. Open a Maven project in VS Code.
  2. Open the Maven Explorer.
  3. Expand a project’s Lifecycle section.
  4. Click the execute/play icon next to compile.
  5. A generic goal-selection prompt opens.

Expected behavior
The extension should run mvn compile directly for that project, or the UI should clearly indicate that the button opens a goal picker rather than executing the selected lifecycle phase.

Why this is a problem

The current behavior is misleading because the execute icon is shown next to a concrete lifecycle phase. Users reasonably expect that clicking execute on compile will execute compile, not ask them to choose compile again.

Environments (please complete the following information as much as possible):

  • OS: Windows 11
  • VS Code version: 1.113.0
  • Extension version 0.45.1

Screenshots

Image Image

Additional context
The UX violates the user’s mental model: an action rendered inline on a specific lifecycle phase should execute that phase, not reopen a global chooser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions