Skip to content

Instantly share code, notes, and snippets.

@hilmarf
Last active January 27, 2026 13:56
Show Gist options
  • Select an option

  • Save hilmarf/abe357d3ef43e6a53a5f0f65bf1ddea7 to your computer and use it in GitHub Desktop.

Select an option

Save hilmarf/abe357d3ef43e6a53a5f0f65bf1ddea7 to your computer and use it in GitHub Desktop.
mvn versions:display-...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<configuration>
<ruleSet>
<ignoreVersions>
<ignoreVersion>
<type>regex</type>
<!-- Development -->
<version>(?i).*[\.-]Dev-?\d+</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<!-- Alpha -->
<version>(?i).*[\.-]Alpha\d+</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<!-- Beta -->
<version>(?i).*[\.-]Beta-?\d+</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<!-- Milestones -->
<version>(?i).*-M\d+</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<!-- Release Candidates -->
<version>(?i).*-RC[\.-]?\d*</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<version>.*\.(C|M)R\d*</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<version>.*-(ij253|jbossorg|atlassian|jboss)-\d+</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<version>
.*-(does-not-exist|nf-execution|preview|ce|ccs)</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<version>.*-internal\d+</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<version>.*_special_\d+</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<!-- Date and Time -->
<version>\d{8}\.\d{6}</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<!-- Date only -->
<version>\d{8}</version>
</ignoreVersion>
<ignoreVersion>
<type>regex</type>
<!-- Timestamp -->
<version>\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}.*</version>
</ignoreVersion>
</ignoreVersions>
</ruleSet>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment