-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin dependencies are not checked #34
Comments
It looks like this was recently broken. When I look at a site I built a few months back, the plugin dependencies are listed. It doesn't appear to be an issue with the java/plugin version, my hunch is that something changed between maven 3.0 and 3.3 to break this functionality. |
The question is how the plugin dependencies have been defined. If they have been defined via a property like this: <properties>
<dep.version>1.0</dep.version>
</properties>
<...
<plugins>
<plugin>
<groupId>...</groupId>
<dependencies>
<dependency>
...
<version>${dep.version}</version>
</dependency>
</dependencies> it will be updated via |
Hello, I'm not able to reopen this issue, but I do have the same problem. With the following POM: <?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<prerequisites>
<maven>3.5.0</maven>
</prerequisites>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<configuration>
<plugins>
<plugin>
<groupId>com.mebigfatguy.fb-contrib</groupId>
<artifactId>fb-contrib</artifactId>
<version>7.0.1</version>
</plugin>
</plugins>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> One would expect that a command like A plugin dependency is still a dependency, so adding this check in the Cheers, |
Ok reopened. First you use prerequisites on your jar packaging is simply wrong and will produce a WARNING in Maven 3.5.0. Thanks for those supplemental informations... |
Hi, You're welcome, and thanks for the very useful plugin! Cheers, |
So I have enhanced the <build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<configuration>
<plugins>
<plugin>
<groupId>com.mebigfatguy.fb-contrib</groupId>
<artifactId>fb-contrib</artifactId>
<version>7.0.1</version>
</plugin>
</plugins>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> and also it support the usage via pluginManagement like this: <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>localhost</groupId>
<artifactId>dummy-maven-plugin</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
...
</project> |
When plugins have declared dependencies, those dependencies are not version-checked.
We use plugin dependencies extensively for tools like PMD, Checkstyle, FindBugs, etc, to ensure that the plugin is using the latest version of the underlying library, but we have to check for updates manually.
The text was updated successfully, but these errors were encountered: