Skip to content

Maven commandlet runs from workspace root instead of project directory #2280

Description

@Hiepiscus

Actual behavior

When running the Maven commandlet from the GUI, Maven is executed from the workspace root instead of the actual project directory.

Reproduce

  1. Run AppLauncher.
  2. Select a project and workspace.
  3. Open the Commands view.
  4. Select the mvn commandlet.
  5. Enter the following arguments: clean test
  6. Execute the commandlet
  7. error: The goal you specified requires a project to execute but there is no POM in this directory (~\workspaces\main). Please verify you invoked Maven from the correct directory. -> [Help 1]

Expected behavior

The Maven commandlet should be executed from the correct project directory that contains the pom.xml, or the GUI should provide a way to select or configure the execution directory before running the commandlet.

For example, if the selected workspace contains a Maven project in a subdirectory, Maven should be executed from that project directory instead of the workspace root.

IDEasy status

IDE_ROOT is set to ~/projects
IDE_HOME is set to ~/projects/project
Your version of IDEasy is 2026.07.001.
Your version of IDEasy is 2026.07.001 but version 2026.07.002 is available. Please run the following command to upgrade to the latest version:
ide upgrade
Your operating system is windows(10.0)@x64 [Windows 11@amd64]
You are online.
Found bash executable at: C:/Program Files/Git/usr/bin/bash.***
Found git executable at: C:/Program Files/Git/mingw64/bin/git.***
Your settings are up-to-date.
Successfully completed ide (status)

Related/Dependent issues

No response

Comments/Hints

No response

Metadata

Metadata

Assignees

Labels

GUIGraphical User Interface of IDEasy (aka dashboard) build with JavaFxcommandletide sub-commandmvnrelated to apache maven build tool

Type

Projects

Status
🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions