GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Can't override ratchetFrom on Maven command-line · Issue #2842 · diffplug/spotless

Can't override ratchetFrom on Maven command-line #2842

New issue
Copy link
New issue
Copy link
Closed
#2896
Closed
Can't override ratchetFrom on Maven command-line#2842
#2896
Copy link

Description

@mkhl
mkhl
opened on Jan 29, 2026
Issue body actions

I have a maven project that uses the spotless plugin and configures <ratchetFrom>origin/main</ratchetFrom>.

I'd like to be able to override that settings from the command-line. The spotless:check and spotless:apply goals both advertise accepting a ratchetFrom parameter (visible for example with mvn help:describe -Dplugin=spotless -Dgoal=check -Ddetail, but undocumented), but mvn spotless:check -DratchetFrom=NONE uses the ratchetFrom configuration from the POM.

I believe this is caused by AbstractSpotlessMojo discarding the NONE value before checking whether it overrides the configuration, presumably treating it as if the used hadn't provided it.

Activity

  1. mkhl
    added a commit that references this issue on Mar 31, 2026

    consider user property ratchetFrom to have priority over formatter co…

    This issue will close once commit ce3ddcf is merged into the 'main' branch.
    ce3ddcf
  2. nedtwigg
    closed this as completedin #2896on May 14, 2026
  3. nedtwigg
    added a commit that references this issue on May 14, 2026

    [maven] consider user property ratchetFrom to have priority over form…

    This issue will close once commit 956b2e2 is merged into the 'main' branch.
    956b2e2
  4. tchoi-rs
    added a commit that references this issue on Nov 23, 2026

    build: cut CI Spotless check from ~80s to seconds by checking only ch…

    6af3672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.