It appears that between 5.0 and 5.1, using a
classifier when publishing JARs using the Maven Publishing plugin has been depreciated. I mention this because many of the fields are now marked deprecated in the v5.1 docs, but they were not in the v5.0 docs. I didn’t however see any mention of this deprecation in the v5.1 release notes, but perhaps I missed it.
What is the new way to specify a
classifier when publishing JARs to Maven repos?
Note that the current version of the Maven Publishing Docs still list
classifier in the complete example.