Skip to content

Need more clarification for: getRuntimeClasspathElements() from the type MavenProject is deprecated. #11602

@eitan-rosenberg

Description

@eitan-rosenberg

Affected version

4.0.0-rc-5

Bug description

I am migrating a Mojo of mine to Maven 4.0.
I am using org.apache.maven.project.MavenProject and I am getting
"The method getRuntimeClasspathElements() from the type MavenProject is deprecated"

MavenProject.getRuntimeClasspathElements() is deprecated, and the documentation is pointing to org.apache.maven.api.JavaPathType.

Is there somewhere an example of how to use org.apache.maven.api.JavaPathType ?
Can I safely use getRuntimeClasspathElements ?

Thanks for any response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions