Delany created MDEP-733:
---------------------------
Summary: resolve-plugins in dependencyManagement
Key: MDEP-733
URL: https://issues.apache.org/jira/browse/MDEP-733
Project: Maven Dependency Plugin
Issue Type: Improvement
Components: resolve-plugins
Affects Versions: 3.1.2
Reporter: Delany
If I include a nonsense plugin in my pom it will still build successfully every
time without warnings.
{code:java}
<?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>
{code}
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)