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

resolve-plugins in dependencyManagement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.2
    • None
    • resolve-plugins
    • None

    Description

      If I include a nonsense plugin in my pom it will still build successfully every time without warnings.

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>pluggy</groupId>
        <artifactId>pluggy</artifactId>
        <version>1</version>
        <name>Pluggy</name>
        <build>
          <plugins>
            <plugin>
              <groupId>sdfgsdfg</groupId>
              <artifactId>sdfgsdfg</artifactId>
              <version>2452</version>
            </plugin>
          </plugins>
        </build>
      </project>
      

      The model parser doesn't complain, and I can use enforcer rules to check the OS, JDK, but not the plugins. I have to run dependency:resolve-plugins to get an error. In a multi-module build this is repeated for each project. I only need this to happen once, for all those plugins defined in pluginManagement of my top project.

      Attachments

        Activity

          People

            Unassigned Unassigned
            delany Delany
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: