Currently, I'm using the maven-jaxb2-plugin to generate Java artefacts while consuming a soap web services via SSL. I configured my pom.xml per the answer here. But the certificate I used didn't contain any DNS/IP subjects of server. Then there will be some javax ssl exceptions for no alternative name for IP address if my wsdl url is like 'https://XXX.XXX.XXX.XXX:9443/services/testWS?wsdl' in pom.xml. Is there any way to configure jaxb to disable the hostname verification? Thanks.
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<goals>
<goal>set-system-properties</goal>
</goals>
<configuration>
<properties>
<property>
<name>javax.net.ssl.keyStore</name>
<value>${basedir}/src/test/key.jks</value>
</property>
<property>
<name>javax.net.ssl.keyStorePassword</name>
<value>changeit</value>
</property>
</properties>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.12.3</version>
<executions>
<execution>
<id>testproxy.wsdl</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>my.wsdl.testproxy</generatePackage>
<schemas>
<schema>
<url>http://XXX.XXX.XXX.XXX:9443/services/testWS?wsdl</url>
</schema>
</schemas>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>