Skip to content

[MPLUGIN-495] WARNINGs based on usage of @Component for MavenSession/MavenProject instead of @Parameter #809

@jira-importer

Description

@jira-importer

Karl Heinz Marbaise opened MPLUGIN-495 and commented

A change of parameters like this:

@Parameter(defaultValue = "${project}", readonly = true, required = true)

into:

@Component

This will result in WARNINGs like this:

Warning:  Deprecated @Component annotation for 'session' field in org.apache.maven.plugins.dependency.GetMojo: replace with @Parameter( defaultValue = "${session}", readonly = true )

The shown deprecation message is wrong. It is fine to use that for components to be injected.


Affects: 3.10.2

Issue Links:

  • MDEP-894 Use @Component instead of @Parameter for session/project

Remote Links:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpriority:criticalCrashes, loss of data, severe memory leak

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions