-
Notifications
You must be signed in to change notification settings - Fork 912
Fix #8087-Unable to add new web service client #8228
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
base: master
Are you sure you want to change the base?
Conversation
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.
Thank you! In general looks sane to me. I left inline comments.
|
|
||
| public static final String MAVEN_PLUGINS_GROUP_ID = "org.apache.maven.plugins"; //NOI18N | ||
| public static final String WAR_PLUGIN_ARTIFACT_ID = "maven-war-plugin"; //NOI18N | ||
| public static final String WAR_PLUGIN_VERSION = "2.3.4"; //NOI18N |
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.
I would bump to 3.4.0 if there is not a very good reason to stay on the old version. I remember that I bumped several projects to a 3.X version as 2.X failed when used with JDK 21+
| */ | ||
| public final class MavenModelUtils { | ||
|
|
||
| private static Profile profile; |
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.
This will become a problem. If you have one maven project with JakartaEE and one with JavaEE open, both will use the same profile. You will need to pass the "isJakarta" property (or the profile) from the external entry points, to decide per call.
A passing question: is it save to assume this is only called for JavaEE/JakarataEE projects? If it is called for JavaSE projects, there will be no profile.
maven-war-plugin -Add support for jakarta namespaces for Jakarta EE 9 and later -Change jax-ws group id to 'com.sun.xml.ws' -Add instance variables to 'JaxWsClientCreator' that will help with the new logic to support jakarta namespaces and reduce method calls -Use constants when possible -Use diamond inference -Use try-with-resources -Increase array size
Add missing Servlet version support Add missing AppClient descriptor for Jakarta EE 11 Add missing AppClient resolvers Java EE 7 to Jakarta EE 11 Bump default profile return to Jakarta EE 8
Add @OverRide annotation Use diamond operator Use parseBoolean over valueOf Use Multi-catch Bump default deployment descriptor to AppClient 8 Replace usage of deprecated methods from codehaus
Remove subtypes from @ProjectServiceProvider
when computing the profile in all implementations. -Add getSourceLevel method to MavenProjectSupport, useful with JSE maven projects
-Change logic in getJ2eeProfile() and use the new method getProfile() -Generate new code for equals() and hashCode() methods -Use Pattern Matching for instanceof -Use Switch Expressions
-Remove subtypes from @ProjectServiceProvider -Use psf LOGGER -
-Fix wrong if statement -Remove version model when calling addJaxWSPlugin(), the default version will vary for the computed Profile, Java EE 8 will use model 2.2, Jakarta EE 9/10/11 will use 3.0.
-Add support for Car and Jar projects to isJakartaEENameSpace() -Add method getSourceLevel()
file -Add module maven.jaxws as a friend
-Pattern Matching for instanceof -Switch Expressions
-Add useful variable for debugging -Remove unused imports
types should be in the same if statement.
retrieve the correct Profile.
Use try-with-resources
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.
left some comments while looking through it - nice cleanups!
(please don't forget to squash btw)
enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ear/EarImpl.java
Outdated
Show resolved
Hide resolved
enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ear/EarImpl.java
Outdated
Show resolved
Hide resolved
enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ear/EarImpl.java
Show resolved
Hide resolved
enterprise/maven.jaxws/src/org/netbeans/modules/maven/jaxws/WSUtils.java
Outdated
Show resolved
Hide resolved
-Remove the redundant Xpp3Dom variable -close all wrapped streams in try-with-resources with 'bw'
|
@pepness what is the state of this? I think it would be good to rebase this onto current master, cleanup the history and check if all comments are addressed. The static |
Fix issue 8087
NetBeans Notes:
com.sun.xml.wsJaxWsClientCreatorthat will help with the new logic to support jakarta namespaces and reduce method callsprojects
NetBeans Testing:
maven.jaxwsWeb Service from WSDLandWeb Service ClientJakarta EE 8



Jakarta EE 9
Jakarta EE 10