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

[MCHECKSTYLE-431] Avoid creating unnecessary target files for pom projects

Open
#341 11 comments 0 reactions 0 assignees View on GitHub

@efegokdemir is already working on this.

Since Sep 24, 2026.

  • #712 by @efegokdemir — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Start by reproducing the Maven configuration and output for a pom project, then trace where target/checkstyle-cachefile, target/checkstyle-checker.xml, target/checkstyle-result.xml, and target/checkstyle-suppressions.xml are generated. Done means a pom project without Java code no longer creates these files while the check goal still runs successfully.

Written by the indexing model from the issue text.

Description

enhancement priority:minor

Alexis Jehan opened MCHECKSTYLE-431 and commented

Because pom projects do not have Java code, It is not necessary to create "target/checkstyle-cachefile", "target/checkstyle-checker.xml", "target/checkstyle-result.xml" and "target/checkstyle-suppressions.xml" files for these projects.

Maven configuration:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-checkstyle-plugin</artifactId>
	<version>3.2.1</version>
	<dependencies>
		<dependency>
			<groupId>com.puppycrawl.tools</groupId>
			<artifactId>checkstyle</artifactId>
			<version>10.9.3</version>
		</dependency>
	</dependencies>
	<configuration>
		<configLocation>checkstyle.xml</configLocation>
		<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
		<includeTestSourceDirectory>true</includeTestSourceDirectory>
		<violationSeverity>info</violationSeverity>
	</configuration>
	<executions>
		<execution>
			<id>checkstyle-check</id>
			<phase>validate</phase>
			<goals>
				<goal>check</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Maven output:

[INFO] --- checkstyle:3.2.1:check (checkstyle-check) @ parent-project ---
[INFO] You have 0 Checkstyle violations.

Content of the generated "target/checkstyle-result.xml":

<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="10.9.3">
</checkstyle>

Affects: 3.2.1

Dominant language
Java
Stars
98
Forks
69
Avg merge
12h 42m
Merged PRs (30d)
6

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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 apache/maven-checkstyle-plugin

All issues in apache/maven-checkstyle-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.