Details
-
Improvement
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
Description
In yang-maven-plugin:YangToSourcesMojo.java there is following annotation for field inspectDependencies:
@Parameter(property = "inspectDependencies", required = true, readonly = true)
private boolean inspectDependencies;
When opening pom.xml referring to this plugin and providing basic configuration in intellij idea there are following error messages raised:
Element inspectDependencies is not allowed here (at line 58)
Cannot resolve symbol 'inspectDependencies' at line 58
According to https://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/org/apache/maven/plugins/annotations/Parameter.html I guess intellij idea is right.
We probably need something like this:
@Parameter(property = "inspectDependencies", required = true)
private boolean inspectDependencies;
readonly is false by default. Applying this (having required attribute set to false) fixes the problem in IDE.