[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 |
||
| Description |
|
In yang-maven-plugin:YangToSourcesMojo.java there is following annotation for field inspectDependencies: @Parameter(property = "inspectDependencies", required = true, readonly = true) 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) 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: 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 ] |