-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fix for Java 24 w/ upcoming new Eclipse Sisu #2311
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
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f46e2e4
Fix for Java 24 w/ upcoming new Eclipse Sisu
cstamas 414a8bb
Align ASM with the one we want always
cstamas 342d65f
Use snapshots
cstamas 56dd285
Reformat
cstamas 832e94b
Plugin repo needed as well
cstamas c4d4683
Merge remote-tracking branch 'upstream/master' into fix-java24
cstamas c7f03ee
Take Java 24 to dance as well
cstamas 7ae9d2b
Drop unneeded changes
cstamas 399677a
Naive attempt to fix ITs
cstamas 6f472fa
Up PMD
cstamas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,7 +164,7 @@ under the License. | |
<plexusXmlVersion>4.1.0</plexusXmlVersion> | ||
<resolverVersion>2.0.8</resolverVersion> | ||
<securityDispatcherVersion>4.1.0</securityDispatcherVersion> | ||
<sisuVersion>0.9.0.M3</sisuVersion> | ||
<sisuVersion>0.9.0-SNAPSHOT</sisuVersion> | ||
<slf4jVersion>2.0.17</slf4jVersion> | ||
<stax2ApiVersion>4.2.2</stax2ApiVersion> | ||
<wagonVersion>3.5.3</wagonVersion> | ||
|
@@ -411,12 +411,6 @@ under the License. | |
<artifactId>org.eclipse.sisu.inject</artifactId> | ||
<version>${sisuVersion}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.sisu</groupId> | ||
<artifactId>org.eclipse.sisu.inject</artifactId> | ||
<version>${sisuVersion}</version> | ||
<classifier>no_asm</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>jakarta.inject</groupId> | ||
<artifactId>jakarta.inject-api</artifactId> | ||
|
@@ -697,6 +691,33 @@ under the License. | |
</dependencies> | ||
--> | ||
|
||
<repositories> | ||
<repository> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
<id>central-portal-snapshots</id> | ||
<name>Central Portal Snapshots</name> | ||
<url>https://central.sonatype.com/repository/maven-snapshots/</url> | ||
</repository> | ||
</repositories> | ||
<pluginRepositories> | ||
<pluginRepository> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
<id>central-portal-snapshots</id> | ||
<name>Central Portal Snapshots</name> | ||
<url>https://central.sonatype.com/repository/maven-snapshots/</url> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
|
@@ -796,6 +817,29 @@ under the License.</licenseText> | |
</excludes> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.eclipse.sisu</groupId> | ||
<artifactId>sisu-maven-plugin</artifactId> | ||
<version>${sisuVersion}</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.ow2.asm</groupId> | ||
<artifactId>asm</artifactId> | ||
<version>${asmVersion}</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-pmd-plugin</artifactId> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why cost of carry? the plugin seems not in use: |
||
<dependencies> | ||
<dependency> | ||
<groupId>net.sourceforge.pmd</groupId> | ||
<artifactId>pmd-core</artifactId> | ||
<version>7.12.0</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
<plugins> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have logger for this? using system directly would cause spotbugs violations. We having this code pattern all over, so its justiciable, still questionable as bigger picture.
https://stackoverflow.com/questions/8601831/do-not-use-system-out-println-in-server-side-code
Why cannot we throw anymore, please? Of course we dont want to lose the information. As we having error we can not tread, how and why continue?
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot throw, as this code (whole
maven-executor
) purpose is to execute Maven (embedded in JVM, or forked as in forked child process) real Maven mvn command in IT-like scenarios (this very code is used in Maven ITs). This codebase supports Maven 3 and Maven 4 transparently. The goal of PR is to "prepare it for Java 24".All existing Maven versions released so far (including Maven 4 rc releases) emit warning on Java 24, and there is nothing to be done here (the MNG-8399 and/or alike). Hence, to make this code work on Java 24 AND be able to use current releases (ie. 3.9.9 or 4-rc-3), it cannot throw anymore, as err logging is part of "normal operation" on those Maven versions on Java 24. Or in other words, if we'd throw here (as before), we would not be able to run Maven 3.9.9 and 4-rc-3 and older Maven versions using Java 24, only "fixed" Maven 3.9.10 and upcoming 4-rc-4, and that would narrow the capabilities of this module too much.
The point of this PR is to prepare codebase be able to run on Java 24 as is, and this throw was one of the obstacles preventing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx.