Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.1.2
-
None
-
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.