Skip to content
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

Support for version 22 #1756

Closed
eitan-rosenberg opened this issue May 17, 2024 · 8 comments
Closed

Support for version 22 #1756

eitan-rosenberg opened this issue May 17, 2024 · 8 comments

Comments

@eitan-rosenberg
Copy link

I am using:
openjdk-22.0.1_windows
Eclipse eclipse-SDK-4.31
M2E 2.6.0
apache-maven-3.9.6

My project is:
<maven.compiler.target>22</maven.compiler.target>
<maven.compiler.source>22</maven.compiler.source>

For compile and dependency download, every thing works fine.
When I try to use "Apache Maven Dependency Plugin" there is no support for version 22.
I am aware that this plugin is not part of M2E.

The only way I manage to make it work is to change the project manually to version 21.
Is there another way to do it ?
Any idea when there will be support for version 22 ?

Thanks for any response.

@akurtakov
Copy link
Contributor

Does maven-dependency-plugin work with version 22 on the console/pure maven build?

@eitan-rosenberg
Copy link
Author

Does maven-dependency-plugin work with version 22 on the console/pure maven build?

Both method fail with:
org.apache.maven.plugins:maven-dependency-plugin:3.6.1:analyze failed: Unsupported class file major version 66

Seems like It's a version problem.

Me2 is not the blame.

The only way I manage to make it work is to change the project manually to version 21

@eitan-rosenberg
Copy link
Author

Do we have to wait for the next release of maven ?

@eitan-rosenberg
Copy link
Author

.

@HannesWell
Copy link
Contributor

Do we have to wait for the next release of maven ?

I haven't analyzed that, but the next release of maven is about to happen soon and m2e will then include it with #1763.
But it could also be that a new release of the maven-dependency-plugin is required?

@eitan-rosenberg
Copy link
Author

Thanks,
But it could also be that a new release of the maven-dependency-plugin is required?
Since the problem occurs when using pure maven build, I think that this is the problem (I will be happy if you prove me wrong...)

@laeubi
Copy link
Member

laeubi commented May 25, 2024

This has nothing to do with m2e if it does not work in a plain maven build either.

@HannesWell
Copy link
Contributor

Thanks, But it could also be that a new release of the maven-dependency-plugin is required? Since the problem occurs when using pure maven build, I think that this is the problem (I will be happy if you prove me wrong...)

I'll be happy if the issue is resolved. So whatever solves it is good. :)
I suggest you monitor #1763 and try out the latest snapshot build ones it has been merged:
https://download.eclipse.org/technology/m2e/snapshots/2.6.1/

Feel free to report back if that is a solution, others might face the same problem.

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

No branches or pull requests

4 participants