Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7.6, 2.7.7
-
None
-
None
-
Unknown
Description
Done-file names can become quite long, even going beyond the allowed 256 chars on common file systems. Up until (at least) cxf-2.2, the resulting IOException has been logged as warning with no further consequences. In the most current releases, a MojoExecutionException is raised besides that.
C.f. org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(GenericWsdlOption, Bus, Set<URI>)
Is this intended behavior?
- If so, I suggest an improved way to shorten these filenames, as the current algorithm just strips the project directory if part of the file path. I would prefer stripping common prefixes of these paths instead. I can provide a 2-line patch if desired.
- If the behavior is not intended, I would argue raising this exception - which in addition differs from its super-class implementation, should be reverted.
Best regards,
Erhard Weinell