metro-jax-ws
                                
                                 metro-jax-ws copied to clipboard
                                
                                    metro-jax-ws copied to clipboard
                            
                            
                            
                        wsimport maven plugin 4.0.2 - wsdl file not found when running in gitlab
Hi,
I have a project which uses wsimport using the maven plugin [1] When running locally with maven 3.8.5, the wsimport goal succeeds (java17-oracle), when running in gitlab it fails. Gitlab runs with java17-jdk docker base image.
The error [2] in gitlab shows : `The wsdl File is 'Nlets.wsdl' from 'null' while the .wsdl file property is set
[DEBUG]   (f) wsdlDirectory = /go/src/gitlab.com/SensysGatso/sggms/xilium/nlets/src/main/resources
[DEBUG]   (f) wsdlFiles = [Nlets.wsdl]
Prior to running the mvn clean verify
I dump the content of the directory, showing the file is present.
$ ls src/main/resources application-dev.yml application.yml CreateDatabase.sql NLetsRequest.xml NLets.wsdl
In which case would the error `The wsdl File is ... from null" be issued ? Is there a way to further troubleshoot this issue ? Are there known issues with specific Java 17 JDK's ?
TIA Christophe
[1]
jaxws.version=4.0.2
 <plugin>
                <groupId>com.sun.xml.ws</groupId>
                <artifactId>jaxws-maven-plugin</artifactId>
                <version>${jaxws.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>wsimport</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <packageName>org.nlets</packageName>
                    <wsdlDirectory>${project.basedir}/src/main/resources/</wsdlDirectory>
                    <xdebug>true</xdebug>
                </configuration>
            </plugin>
[2]
<configuration>
  <bindingDirectory default-value="${basedir}/src/jaxws"/>
  <destDir default-value="${project.build.outputDirectory}"/>
  <disableXmlSecurity default-value="false"/>
  <encoding>${project.build.sourceEncoding}</encoding>
  <extension default-value="false"/>
  <genJWS default-value="false"/>
  <implDestDir default-value="${project.build.sourceDirectory}"/>
  <keep default-value="true"/>
  <packageName>org.nlets</packageName>
  <pluginDescriptor default-value="${plugin}"/>
  <pluginRepos default-value="${project.remotePluginRepositories}"/>
  <project default-value="${project}"/>
  <projectRepos default-value="${project.remoteProjectRepositories}"/>
  <quiet default-value="false"/>
  <repoSession default-value="${repositorySystemSession}"/>
  <settings>${settings}</settings>
  <sourceDestDir default-value="${project.build.directory}/generated-sources/wsimport"/>
  <staleFile default-value="${project.build.directory}/jaxws/stale"/>
  <verbose default-value="false"/>
  <wsdlDirectory default-value="${basedir}/src/wsdl">/go/src/gitlab.com/SensysGatso/sggms/xilium/nlets/src/main/resources/</wsdlDirectory>
  <wsdlFiles>
    <wsdlFile>Nlets.wsdl</wsdlFile>
  </wsdlFiles>
  <xadditionalHeaders default-value="false"/>
  <xdebug default-value="false">true</xdebug>
  <xdisableAuthenticator default-value="false"/>
  <xdisableSSLHostnameVerification default-value="false"/>
  <xnoAddressingDataBinding default-value="false"/>
  <xnocompile default-value="true"/>
  <xuseBaseResourceAndURLToLoadWSDL default-value="false"/>
</configuration>
[DEBUG]   (f) pluginRepos = [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG]   (f) project = MavenProject: nl.ambrero:nlets:1.8.57-SNAPSHOT @ /go/src/gitlab.com/SensysGatso/sggms/xilium/nlets/pom.xml
[DEBUG]   (f) projectRepos = [gitlab-maven (https://gitlab.com/api/v4/groups/5665805/-/packages/maven, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG]   (f) quiet = false
[DEBUG]   (f) repoSession = org.eclipse.aether.DefaultRepositorySystemSession@221b77d7
[DEBUG]   (f) settings = org.apache.maven.execution.SettingsAdapter@3d24420b
[DEBUG]   (f) sourceDestDir = /go/src/gitlab.com/SensysGatso/sggms/xilium/nlets/target/generated-sources/wsimport
[DEBUG]   (f) staleFile = /go/src/gitlab.com/SensysGatso/sggms/xilium/nlets/target/jaxws/stale
[DEBUG]   (f) verbose = false
[DEBUG]   (f) wsdlDirectory = /go/src/gitlab.com/SensysGatso/sggms/xilium/nlets/src/main/resources
[DEBUG]   (f) wsdlFiles = [Nlets.wsdl]
[DEBUG]   (f) xadditionalHeaders = false
[DEBUG]   (f) xdebug = true
[DEBUG]   (f) xdisableAuthenticator = false
[DEBUG]   (f) xdisableSSLHostnameVerification = false
[DEBUG]   (f) xnoAddressingDataBinding = false
[DEBUG]   (f) xnocompile = true
[DEBUG]   (f) xuseBaseResourceAndURLToLoadWSDL = false
[DEBUG] -- end configuration --
[DEBUG] The wsdl File is 'Nlets.wsdl' from 'null'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:11 min
[INFO] Finished at: 2024-06-12T07:37:44Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.sun.xml.ws:jaxws-maven-plugin:4.0.2:wsimport (default) on project nlets: 'Nlets.wsdl' not found. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.sun.xml.ws:jaxws-maven-plugin:4.0.2:wsimport (default) on project nlets: 'Nlets.wsdl' not found.