java.lang.NoClassDefFoundError: eu/solven/cleanthat/language/IEngineProperties
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- java
- Domain
- build-system, tooling
Research direction
Start by reproducing the reported Maven plugin configuration with Java 21 and the cleanthat step enabled. Inspect how the cleanthat step is resolved and run the reported check goal; done means the configuration no longer fails with NoClassDefFoundError for eu/solven/cleanthat/language/IEngineProperties.
Written by the indexing model from the issue text.
Description
- summary of problem
java.lang.NoClassDefFoundError - Maven version
4.0.0.RC2 - spotless version:
maven plugin 2.44.0.BETA4 - operating system and version
Windows 64 Pro/Java 21
The maven config in my project like this.
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.44.0.BETA4</version>
<configuration>
<java>
<!-- These are the defaults, you can override if you want -->
<includes>
<include>src/main/java/**/*.java</include>
<include>src/test/java/**/*.java</include>
</includes>
<!-- Cleanthat will refactor your code, but it may break your style: apply it before your formatter -->
<cleanthat/>
<googleJavaFormat>
<version>1.25.2</version>
<style>AOSP</style>
<reflowLongStrings>true</reflowLongStrings>
</googleJavaFormat>
<!-- <eclipse/> -->
<!-- <prettier/> -->
<importOrder/>
<removeUnusedImports/>
<formatAnnotations/>
</java>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
[INFO] Index file does not exist. Fallback to an empty index
[ERROR] Step 'cleanthat' found problem in 'ApplicationEvents.java':
eu/solven/cleanthat/language/IEngineProperties
java.lang.NoClassDefFoundError: eu/solven/cleanthat/language/IEngineProperties
- Dominant language
- Java
- Stars
- 5.7k
- Forks
- 560
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 43
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from diffplug/spotless
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 66/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
All issues in diffplug/spotless
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100