fmt-maven-plugin: 2.22.0 Version Not Found

Describe the bug The latest release version cannot be found in maven central, but 2.21.1 can.

To Reproduce

<plugin>
    <groupId>com.spotify.fmt</groupId>
    <artifactId>fmt-maven-plugin</artifactId>
    <version>2.22.0</version>
    <executions>
        <execution>
            <goals>
                <goal>format</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Additional context

Plugin com.spotify.fmt:fmt-maven-plugin:2.22.0 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.spotify.fmt:fmt-maven-plugin:jar:2.22.0 (absent): com.spotify.fmt:fmt-maven-plugin:jar:2.22.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (10 by maintainers)

Most upvoted comments

What I think it was, but not confirmed, is that you have tried the version before it was available in maven central and your maven repository stored as unresolved dependency. That’s why cleaning worked and why people who tried after the artifact was fully released in maven central succeeded.

I am glad it worked anyway with a newer release for you.

Working fine here too!

Released a version 2.22.1 that’s exactly like 2.22, no aditions. It should arrive in mvn central either today or tomorrow. You can try with that version instead when it comes

@vladimirconev I think I know what is the issue, they published on maven as 2.22 and not 2.22.0 (but Github Release is 2.22.0) just a little mistake. image https://central.sonatype.com/artifact/com.spotify.fmt/fmt-maven-plugin

It’s not a mistake. We are following the pattern that was set before we took over the library, which doesn’t contain patch version number. We might change it in the future because the pattern is confusing.

The version in mvn repository is 2.22: https://mvnrepository.com/artifact/com.spotify.fmt/fmt-maven-plugin/2.22 2.22.0 is only the git tag: https://github.com/spotify/fmt-maven-plugin/releases/tag/2.22.0

And yeah, 2.22.0 will not be found.