The problem with above approach is that for jar file you need to copy your files under META-INF but in case of war file you need to have it under WEB-INF folder. Either I make my complex maven resource copy calls or look for other options.

If you don’t want additional configuration for maven to copy your local wsdl file to correct path in jar file, you can create same package structure under resource folder to store the wsdl file.

src/com/test/jai/trySomeWSDL.wsdl

At least this options works well for me even if the wsdl file is packaged in a jar file which is used in web application. I don’t need to define any global parameters for the same and just use the relative path in smart way🙂