We have a jar project that is generated via Maven and configured in Jenkins.
We are facing a strange problem and we are getting this error during
compilation via Jenkins alone. The same build works fine via a local eclipse
build
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl
definition from :
file:/app/scm/jenkins/apache-tomcat-7.0.26/webapps/jenkins/workspace/Services/src/main/resources/...../somefilename.wsdl
Caused by : String index out of range: -1
The pom.xml associated with this goal is
--------------------------------------------------------------------------------
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>2.6.1</version>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
<configuration>
<minmemory>1024m</minmemory>
<maxmemory>1024m</maxmemory>
<generateDirectory>src/main/java/</generateDirectory>
<bindingDirectory>src/main/resources</bindingDirectory>
<bindingFiles>EventBinding.xjb</bindingFiles>
<extension>true</extension>
<sourceRoot>${basedir}/src/main/java</sourceRoot>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/Services/someservice/someservice.wsdl
</wsdl>
<bindingFiles>
<bindingFile>${basedir}/src/main/resources/Services/binding.xml
</bindingFile>
</bindingFiles>
<extraargs>
<extraarg>-xjc-Xcollection-setter-injector</extraarg>
</extraargs>
</wsdlOption>
</configuration>
</execution>
</executions>
</plugin>
-------------------------------------------------------------------------------------------------
--
View this message in context:
http://jenkins.361315.n4.nabble.com/WSDLRuntimeException-during-maven-build-tp4641900.html
Sent from the Jenkins issues mailing list archive at Nabble.com.