You can use the cxf-apache-maven.
Just set at your pom.xml file with the dependencies. Example:
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>3.1.6</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.1.6</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>3.1.6</version>
<executions>
<execution>
<id>ID NAME</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>WSDL FILE LOCATION/URL</wsdl>
<extraargs>
<extraarg>-p</extraarg>
<extraarg> DESTINATION PACKAGE </extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
You can see another examples at the apache docs: http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html
Another option is use the jaxws-maven-plugin, is similar.
glooge the both to find which better for your case.