Unable to generate Java classes from wsdl. "Two declarations cause a collision in the ObjectFactory class"

I’m attempting to generate the Java classes from the wsdl file found at http:///ManagementServer/ServerCommandService.svc?wsdl. Right now I’m using using “apache-cxf-3.4.2” wsdl2java.bat in PowerShell and I’m getting “Two declarations cause a collision in the ObjectFactory class”. I’m unable to find the dup but I feel like there shouldn’t be one anyway. regardless I need these files generated so I’m looking for any method to do this.

I found a similar question in this Developer Forum, so please see this link -

https://developer.milestonesys.com/s/question/0D53X000067shGUSAY/generating-code-from-wsdl