Proper way to develop a WS client using JAX-WS and Maven's jaxws-maven-plugin


I'm using "jaxws-maven-plugin" to generate WS stub classes, as shown below:


This plugin binds to the "install" phase of the lifecycle. Sources and class files are generated properly, however IntelliJ didn't recognize them in the editor. So I added the WS classes directory in Module Settings / Dependencies. However, IDE still gives me "Incompatible types" errors on occassions, e.g. in this one:

    ProvisionPortType provisionPort = this.zteService.getProvisionPort()

gives "Incompatible types. Required, found"

Am I doing something wrong here? Is this the proper way to do this?

Please sign in to leave a comment.