Can you help? I want to suppress this notification:
[INFO] The following plugin updates are available:
[INFO] io.github.git-commit-id:git-commit-id-maven-plugin . 7.0.0 -> 9.0.2
I've got a pom file. I use the versions-maven-plugin, v2.20.1 , specifically with the display-plugin-updates goal, to see any plugins that are out of date. I want to configure two exclusion categories :
-alpha and -beta plugins.
- any version for a particular build plugin artifact that I specify
I've got the first part working this way:
<project ...
<build>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.20.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>display-dependency-updates</goal>
<goal>display-plugin-updates</goal>
</goals>
<configuration>
<ruleSet>
<ignoreVersions>
<ignoreVersion>
<type>regex</type>
<version>.+-alpha.*</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<version>.+-beta.*</version>
</ignoreVersion>
</ignoreVersions>
</ruleSet>
</configuration>
</execution>
</executions>
</plugin>
This works. It stops telling me about -alpha and -beta versions of plugins. I think those ignoreVersion elements will also tell the versions plugin to ignore alpha and beta for build dependencies. That's ok. I don't think I care.
For the second case, excluding a particular plugin artifact from consideration, the plugin is git-commit-id-maven-plugin from group io.github.git-commit-id. I first tried this:
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>display-dependency-updates</goal>
<goal>display-plugin-updates</goal>
</goals>
<configuration>
<pluginDependencyExcludes>io.github.git-commit-id:git-commit-id-maven-plugin</pluginDependencyExcludes>
...
This does not do what I hoped it would do. With mvn versions:display-plugin-updates, I still get notifications:
[INFO] --- versions:2.20.1:display-plugin-updates (default-cli) @ devportal-exp-backend ---
[INFO]
[INFO] The following plugin updates are available:
[INFO] io.github.git-commit-id:git-commit-id-maven-plugin . 7.0.0 -> 9.0.2
[INFO]
I also tried this:
<configuration>
<ruleSet>
...
<rules>
<rule>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<ignoreVersions>
<ignoreVersion>
<version>7.0.0</version>
</ignoreVersion>
</ignoreVersions>
</rule>
</rules>
This form is used in the documentation, but it does not suppress the message as I hoped.
I also tried both of the above forms but moving the configuration element under the plugin element, rather than having it under the execution element. That made no difference.
Is there a way to do what I want? which is: suppress this notification:
[INFO] The following plugin updates are available:
[INFO] io.github.git-commit-id:git-commit-id-maven-plugin . 7.0.0 -> 9.0.2
I read the documentation, the forums, and the source code. I cannot sort this out and I cannot find an example that works.
Thanks.
Can you help? I want to suppress this notification:
I've got a pom file. I use the
versions-maven-plugin, v2.20.1 , specifically with thedisplay-plugin-updatesgoal, to see any plugins that are out of date. I want to configure two exclusion categories :-alphaand-betaplugins.I've got the first part working this way:
This works. It stops telling me about
-alphaand-betaversions of plugins. I think thoseignoreVersionelements will also tell the versions plugin to ignore alpha and beta for build dependencies. That's ok. I don't think I care.For the second case, excluding a particular plugin artifact from consideration, the plugin is
git-commit-id-maven-pluginfrom groupio.github.git-commit-id. I first tried this:This does not do what I hoped it would do. With
mvn versions:display-plugin-updates, I still get notifications:I also tried this:
This form is used in the documentation, but it does not suppress the message as I hoped.
I also tried both of the above forms but moving the
configurationelement under thepluginelement, rather than having it under theexecutionelement. That made no difference.Is there a way to do what I want? which is: suppress this notification:
I read the documentation, the forums, and the source code. I cannot sort this out and I cannot find an example that works.
Thanks.