maven icon indicating copy to clipboard operation
maven copied to clipboard

Includes are not added to existing project resource

Open slawekjaranowski opened this issue 6 months ago • 1 comments

Affected version

4.0.0-rc-3

Bug description

In plugin (Maven 3 api) code like


project.getResources().get(0).addInclude("test");

has no efect.

Includes are not added to existing project resource.

There are no warnings or errors, that list can not by modified

slawekjaranowski avatar Jun 14 '25 10:06 slawekjaranowski

The underlying model does not use Resource objects anymore, see https://github.com/apache/maven/blob/c0b9106121a58f7c84e04e53d8e9c6044ef9fbb0/impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java#L822-L829 This may be fixable by wrapping the underlying SourceRoot in a smarter manner.

gnodet avatar Jun 16 '25 19:06 gnodet