Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-528

Plugin descriptor is missing configuration entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 2.10
    • None
    • analyze
    • None

    Description

      The plugin descriptor seem to be missing some <configuration> entries, which leads to XML errors in IDEs.

      According to the documentation (https://maven.apache.org/plugins/maven-dependency-plugin/examples/exclude-dependencies-from-dependency-analysis.html) the analyse goal supports an "ignoredUsedUndeclaredDependencies" parameter. This parameter works as expected when following the instructions on the mentioned documentation page.

      However, the IDE reports invalid XML inside the <configuation>-tag, for the >ignoredUsedUndeclaredDependencies> tag. Looking at the plugin descriptor plugin.xml inside the maven-dependency-plugin-2.10.jar, there is a configuration-entry that is missing some parameters:

            <configuration>
              <analyzer implementation="java.lang.String" default-value="default">${analyzer}</analyzer>
              <baseDir implementation="java.io.File" default-value="${basedir}"/>
              <failOnWarning implementation="boolean" default-value="false">${failOnWarning}</failOnWarning>
              <ignoreNonCompile implementation="boolean" default-value="false">${ignoreNonCompile}</ignoreNonCompile>
              <outputDirectory implementation="java.io.File" default-value="${project.build.directory}"/>
              <outputXML implementation="boolean" default-value="false">${outputXML}</outputXML>
              <project implementation="org.apache.maven.project.MavenProject" default-value="${project}"/>
              <scriptableFlag implementation="java.lang.String" default-value="$$$%%%">${scriptableFlag}</scriptableFlag>
              <scriptableOutput implementation="boolean" default-value="false">${scriptableOutput}</scriptableOutput>
              <skip implementation="boolean" default-value="false">${mdep.analyze.skip}</skip>
              <verbose implementation="boolean" default-value="false">${verbose}</verbose>
            </configuration>
      

      Seems like this descriptor needs to be updated/re-generated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            matinh Martin Höller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: