Skip to content

Prepare for Maven 4 #8648

@homberghp

Description

@homberghp

Description

The current Apache Maven support in NetBeans is tightly bound to Maven 3.x.y.

Maven 4 introduces a number of improvements, one of which is a proper API in a separate package/module.
Moving from maven 3.9.x to maven 4 is not trivial, because of the API changes.
The Apache Maven project strives to be backward compatible, in particular with to respect to the supported Maven Model versions.

We that the introduction of a proper Maven API simplifies integration into NetBeans as Maven client application.

The new integration should :

  • Support execution of Maven goals projects based on model versions > 4.0.0
  • Support editor hints of a Maven 4 pom.xml file based on model version supported by Maven 4.
  • Listening for and understanding of Maven goal execution events.
  • Support Maven 4 features introduced with Maven model version >= 4.1.0

This issue will be used to log advancement in this endeavour.

Several suggestions have been made to move NetBeans forward in this direction.
One is to use the mvnw wrapper as execution vehicle for the time.
This can be based on Mavens ExecutorTool and ToolboxTool.
These Maven API interfaces may be usable be used to adapt NetBeans MavenCommandLineExecutor.

Use case/motivation

To move NetBeans forward.

Related issues

Issue #8632

Are you willing to submit a pull request?

Yes, when I have something worth pulling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Maven[ci] enable "build tools" testskind:featureA feature requestneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions