I am currently trying to set up a maven project that generates some Java code based on some WSDL files.
Unfortunately I am having some problems because my test environment doesn't have a valid SSL certificate (I have confirmed this by using chrome). Because this is happening in a test environment I am not concerned about security. I just want my code generation to work.
The following shows how I currently use the plugin cxf-codegen-plugin
        <plugin>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-codegen-plugin</artifactId>
            <version>3.1.8</version>
            <executions>
                <execution>
                    <id>generate-sources</id>
                    <phase>generate-sources</phase>
                    <configuration>
                        <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
                        <defaultOptions>
                            <bindingFiles>
                                <bindingFile>${basedir}/src/main/jaxb/jaxb.bindings.xml</bindingFile>
                            </bindingFiles>
                            <packagenames>
                                <packagename>foo.bar</packagename>
                            </packagenames>
                            <extraargs>  
                                <extraarg>-client</extraarg>
                            </extraargs>  
                        </defaultOptions>
                        <wsdlOptions>
                            <wsdlOption>
                                <wsdl>[Removed URL]</wsdl>
                            </wsdlOption>
                        </wsdlOptions>
                    </configuration>
                    <goals>
                        <goal>wsdl2java</goal>
                    </goals>
                </execution>
                </executions>
        </plugin>
When i run mvn clean install maven outputs the following error
[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.1.8:wsdl2java (generate-sources) on project TestClient: Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:3.1.8:wsdl2java failed: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition [Removed URL] WSDLException: faultCode=PARSER_ERROR: Problem parsing [Removed URL].: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching .... found. -> [Help 1]
So my question is basically if there is some way to configure the cxf-codegen-plugin s.t. it just ignores all security concerns and continues generating the Java code?
 
     
    