-
-
Notifications
You must be signed in to change notification settings - Fork 459
Description
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).