OndroMih opened a new issue, #6145:
URL: https://github.com/apache/netbeans/issues/6145
### 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:
https://github.com/juneau001/jakartaee10-archetype/pull/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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists