mathieucarbou / license-maven-plugin

Manage license headers in your source files

Home Page:https://oss.carbou.me/license-maven-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid plugin configuration: properties

CatPlanet opened this issue · comments

Version affected

4.2.rc3

Describe the bug

Using example from documentation results in warning in IDE (Eclipse):

I tried to move those properties into global but they don't get recognised this way.

How to Reproduce

Copy-paste example from documentation and watch warning pop out.

Not a bug. This is Eclipse an parsing issue. The tag is stil there directly under configuration.

  @Parameter(alias = "properties")
  public Map<String, String> defaultProperties = new HashMap<String, String>();

Changed to <defaultProperties> and it works without an issue.

That was eclipse m2e bug eclipse-m2e/m2e-core#598 and since version 2.x aliases are fixed. They worked before but, as you can see on OP screenshot, it issued a harmless warning.
It's fixable by either using real property name (not aliased one), updating IDE/plugin or ignoring whole issue altogether.