Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-508

Misconfigured input parameters in yang-maven-plugin (YangToSourcesMojo.java)

    XMLWordPrintable

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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martin.ciglan Martin Ciglan
            michal.rehak Michal Rehak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: