"update toolchain" here means idea's package plugin, which seems have no way to set up rules like rules in versions-maven-plugin. [image: image.png] Of course we can try to only use versions-maven-plugin.
But a setting like that just hides problem, it does not solve the problem. The real problem is that "An older version have a larger version number than a newer version"[1]. And nearly all rules about versioning forbids that [1]. Rob Spoor <apa...@icemanx.nl> 于2020年6月14日周日 下午7:03写道: > On 14/06/2020 12:40, Xeno Amess wrote: > > every time my update tool chain thinks 20030203.000550 is a greater > version > > than 2.7 (actually it is, if see it in number). > > So have we some way to delete it from maven central? (or rename it?) > > The same problem happened in BeanUtils, version 20030211.134440 > > That's why you can use a set of rules with the Maven versions plugin: > https://www.mojohaus.org/versions-maven-plugin/version-rules.html > > For instance, here's part of the rules I use: > > <rule comparisonMethod="maven" groupId="commons-collections" > artifactId="commons-collections"> > <ignoreVersions> > <!-- Ignore versions using dates --> > <ignoreVersion type="regex">200[34]\d{4}.*</ignoreVersion> > </ignoreVersions> > </rule> > > In a similar way, you can exclude alpha, beta, release-candidate and > milestone versions. You just need to find the proper regex. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > >