[YANGTOOLS-508] Misconfigured input parameters in yang-maven-plugin (YangToSourcesMojo.java) Created: 16/Sep/15  Updated: 10/Apr/22  Resolved: 24/Sep/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Michal Rehak Assignee: Martin Ciglan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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.



 Comments   
Comment by Michal Rehak [ 17/Sep/15 ]

https://git.opendaylight.org/gerrit/#/c/27113

Generated at Wed Feb 07 20:53:27 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.