Skip to content

Update to use Maven 4 #560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Update to use Maven 4 #560

wants to merge 4 commits into from

Conversation

sormuras
Copy link
Member

@sormuras sormuras commented May 28, 2025

Overview

Test-drive Maven 4 with JUnit's sample projects.

This PR also prevents the following warnings to be emitted:

Warning:  Version not locked for default bindings plugins [maven-resources-plugin, maven-compiler-plugin], you should define versions in pluginManagement section of your pom.xml or parent

Warning:  bootstrap class path not set in conjunction with -source 8
Warning:  source value 8 is obsolete and will be removed in a future release
Warning:  target value 8 is obsolete and will be removed in a future release
Warning: [WARNING] To suppress warnings about obsolete options, use -Xlint:-options.

I hereby agree to the terms of the JUnit Contributor License Agreement.

@@ -9,8 +9,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this change required to make it work?

Copy link
Member Author

@sormuras sormuras May 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is required to no longer use the obsolete options - and prevent those warnings to be emitted:

Warning:  bootstrap class path not set in conjunction with -source 8
Warning:  source value 8 is obsolete and will be removed in a future release
Warning:  target value 8 is obsolete and will be removed in a future release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants