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

A new maven web app project doesn't compile on Java 17 #6145

Closed
OndroMih opened this issue Jul 2, 2023 · 6 comments
Closed

A new maven web app project doesn't compile on Java 17 #6145

OndroMih opened this issue Jul 2, 2023 · 6 comments
Labels
kind:bug Bug report or fix needs:triage Requires attention from one of the committers

Comments

@OndroMih
Copy link
Contributor

OndroMih commented Jul 2, 2023

Apache NetBeans version

Apache NetBeans 18

What happened

A new Jakarta EE Web app (WAR) Maven project doesn't compile on Java 17. Build fails with the following error:

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:war (default-war) on project mavenproject2: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.3:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.3' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null

How to reproduce

  • Create a new project
  • Web Application
  • Click Next, Finish
  • Select the new project in the Projects view
  • Right-Click, then select Build

Did this work correctly in an earlier version?

No / Don't know

Operating System

Ubuntu

JDK

Zulu17.36+13-CA, OpenJDK 17.0.4

Apache NetBeans packaging

Apache NetBeans Snap Package

Anything else

This issue can be fixed by editing pom.xml file and setting the version of the WAR plugin to the latest version.

The problem is already fixed in the Maven archetype repo: juneau001/jakartaee10-archetype#2. The archetype needs to be released to Maven Central and version number updated in Netbeans.

Are you willing to submit a pull request?

Yes

@OndroMih OndroMih added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Jul 2, 2023
@OndroMih
Copy link
Contributor Author

OndroMih commented Jul 2, 2023

Hi @juneau001 , can you please release a new version of the Jakarta EE 10 archetype https://github.com/juneau001/jakartaee10-archetype?

@juneau001
Copy link
Contributor

Hi @OndroMih I will update the archetype. Sorry for the delay. I believe someone else is working on developing a different archetype for use with Apache NetBeans as well.

Thanks

@asbachb
Copy link
Collaborator

asbachb commented Jul 3, 2023

the "different archetype": #5969

@OndroMih
Copy link
Contributor Author

OndroMih commented Jul 3, 2023

I see this is a duplicate of #4552, so I'm closing it.

@OndroMih OndroMih closed this as completed Jul 3, 2023
@juneau001
Copy link
Contributor

I have released an update of the Jakarta EE 10 archetype including the enhancements from the PRs that were submitted by @OndroMih https://mvnrepository.com/artifact/io.github.juneau001/webapp-jakartaee10/1.1.0

@asbachb
Copy link
Collaborator

asbachb commented Jul 17, 2023

Should be fixed within: #6201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

3 participants