Skip to content

Drop the JUnit 4 option from the quickstart archetype - #158

Merged
slachiewicz merged 1 commit into
apache:masterfrom
slachiewicz:quickstart-junit4-removal
Oct 31, 2026
Merged

slachiewicz merged 1 commit into
apache:masterfrom
slachiewicz:quickstart-junit4-removal

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The quickstart archetype no longer generates JUnit 4 projects. junitVersion is the version of the JUnit BOM the generated POM imports, with junit-jupiter-api and junit-jupiter-params from it; a 4.x value now fails to resolve that BOM. Any BOM version works, so JUnit 6 projects can be generated too.

A Java 7 target (javaCompilerVersion=7) still generates, but its tests no longer build, since JUnit 5 needs Java 8. The JUnit 4 and Java 7 ITs go; it-java-1.8 keeps the 1.x version spelling they covered.

Fixes #128

Part of apache/maven#13766

@slachiewicz slachiewicz added the removed Pull requests that remove features label Oct 31, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 31, 2026 14:12
@slachiewicz
slachiewicz merged commit 7d51443 into apache:master Oct 31, 2026
19 checks passed
@slachiewicz
slachiewicz deleted the quickstart-junit4-removal branch October 31, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

removed Pull requests that remove features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maven Quickstart Archetype does not work with JUnit 6

1 participant