Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Inception for Maven

Open
#2,510 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, sql

Research direction

The issue links the Gradle plugin's Inception documentation; start there to understand the existing behavior, then inspect the Maven plugin's configuration and test entry points. Define how Maven users would identify embedded SQL regions without repeated spotless comments. Done means the Maven plugin supports equivalent configurable treatment and has coverage for Java code containing SQL strings.

Written by the indexing model from the issue text.

Description

enhancement

Hello,

working on a multitude of Maven projects in a larger, dated codebase. We would like to streamline the formatting with Spotless, but there are embedded SQL strings in the Java code that should be left untouched without having to write the // spotless:off/on comments everywhere.

The Gradle plugin has an "Inception" feature: https://github.com/diffplug/spotless/tree/main/plugin-gradle#inception-languages-within-languages-within, which allows special treatment of hunks of code captured by a specified regular expression.

Is this planned to be added to the Maven plugin as well? If so, is there an estimated time of arrival?

Thanks

Dominant language
Java
Stars
5.7k
Forks
560
Avg merge
1d 13h
Merged PRs (30d)
43

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from diffplug/spotless

All issues in diffplug/spotless

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.