cooldown

Maven

On this page

cooldown gates Maven projects through --tool maven (alias mvn).

What it reads#

Maven treats a reactor, the root pom.xml and every module its <modules> reach, as one project, and each row names the module it belongs to. cooldown never reads a build plugin’s dependencies.

Registry#

Publish times come from Maven Central.

How it is driven#

cooldown runs mvn, or the program COOLDOWN_MVN names.

upgrade and fix rewrite only the text of each version they move:

  • a literal <version>
  • the property a version reads when nothing else reads it
  • the project’s own dependencyManagement entry

They verify every edit with mvn in a scratch copy of the project, through maven-help-plugin 3.5.1 and maven-dependency-plugin 3.8.1, and publish only POMs that Maven resolves to exactly the planned versions. The edit has to move nothing else in any project Maven builds there, so a module only an active profile lists counts as well.

They refuse while a mirror stands in for Maven Central, or while .mvn/maven.config or MAVEN_ARGS limits the build to part of the reactor or another POM, such as with -pl or -f.

--build runs mvn -B -ntp -DskipTests package.

Edge cases#

These are reported but never moved:

  • a version from a property that something else reads too, or that -D sets in .mvn/maven.config or MAVEN_ARGS
  • an imported BOM
  • a parent POM

A version range floats, so cooldown warns about it instead of judging it, as it does about a version that only a remote parent or BOM manages.

cooldown cannot tell which profiles Maven activates. So it plans nothing from a POM that declares a repository other than Maven Central, in a profile or not, and no dependency a profile declares too.

check cannot prove a Maven project’s lock current, so it reports it lock_unknown.

Esc

Type # for headings only ↑↓ move ↵ open Ctrl ↵ new tab Ctrl U/D scroll preview

Keyboard shortcuts

/ ⌘ K Ctrl K
Search
← →
Previous or next page
?
Show these shortcuts