Skip to content

Deprecation warnings when building with Maven 3.9.x #3512

@wborn

Description

@wborn

Recent Maven versions log warnings when using deprecated features.


When the Karaf Maven plug-in is used many of these warnings show up:

[WARNING] Parameter 'localRepository' 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.

I've created KARAF-7685 for this.


Another deprecation warning being logged is:

[WARNING] Parameter 'compilerArguments' is deprecated: use {@link #compilerArgs} instead.

That can be fixed by passing these arguments in the config using

              <arg>-annotationpath</arg>
              <arg>CLASSPATH</arg>
              <arg>-classpath</arg>
              <arg>${project.build.directory}/dependency</arg>

However that will likely cause issues when developing with Eclipse, because the lastNPE plug-in does not take these args into consideration (lastnpe/eclipse-external-annotations-m2e-plugin#11).

Metadata

Metadata

Assignees

No one assigned

    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