Skip to content

Plugin uses Maven 2 API, requires still outdated Maven 3.0.0-API and will break in Maven 4 (soon to be released) #1651

Closed
@bmarwell

Description

@bmarwell

Warning when building with Maven 3.9.1:

[WARNING] Parameter 'artifactRepository' is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead.

${repositorySystemSession} is available with Maven 3.2.5, which is the minimum needed version for the other maven plugins anyway.

  • Remove outdated maven 2 api from org.codehaus (basicPluginSupport)
  • Remove use of ArtifactRepository
  • Use at least maven 3.2.5
  • Sync all maven versions. Currently requirement is set to 3.0.0, API used is 2.0, Maven imported is 3.8.6, annotations is even yet another version!
  • Add tests with maven 4-Alpha versions (extend the build matrix)
  • Define a default value for runtimeVersion, so build doesn't just break without parameters.
  • set maven-core scope to provided
  • replace @Component(role = AntHelper.class) AntHelper ant in AbstractLibertySupport
  • make ...Support classes abstract. The will inherit from AbstractMojo but will not have an executable goal on their own.
  • replace AntHelper

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions