scala-steward icon indicating copy to clipboard operation
scala-steward copied to clipboard

Maven build plugin versions do not get updated

Open andreisilviudragnea opened this issue 3 years ago • 3 comments

It seems that a version referenced in a <project> <build> <plugins> <plugin> <version> path never gets updated.

For example, scala-maven-plugin never gets updated.

Checking the source code, it looks like the dependency:list Maven command does not list plugin dependencies.

andreisilviudragnea avatar Jan 12 '22 12:01 andreisilviudragnea

Maybe similar to https://github.com/scala-steward-org/scala-steward/issues/2099

exoego avatar Jan 12 '22 13:01 exoego

Compared to #2099, it looks like Scala Steward does not detect the update at all, let alone try to update the version.

There is no log related to any Maven plugin version update.

andreisilviudragnea avatar Jan 12 '22 13:01 andreisilviudragnea

I think one possibility for Scala Steward to retrieve the build plugins too would be to call mvn help:effective-pom in MavenAlg and to extract the plugins from that.

In a second step the effective POM could also be used instead of list:dependencies and list:repositories to also retrieve dependencies and their resolvers. Advantages of that would be that we would call mvn only once and could use a plain XML parser for parsing the effective POM.

fthomas avatar Dec 19 '22 07:12 fthomas