I had a lot of problems to make this all work with version 1.5.1 of the plugin.
Firstly, I came across the problem of distorted artifacts mentioned in this thread , which can be solved by applying the AXIS2-4549 workaround : add a mirror to your ~/.m2/settings.xml :
<mirrors> <mirror> <id>java.net.2</id> <name>java.net Mirror of http://repo1.maven.org/maven2/</name> <url>http://download.java.net/maven/2/</url> <mirrorOf>java.net</mirrorOf> </mirror> </mirrors
Be sure to clear ~/.m2/repository/org/apache/axis2 after that.
It then turns out that wsdl2java needs axiom bars when using xmlbeans bindings . So add the following dependency:
<dependency> <groupId>org.apache.ws.commons.axiom</groupId> <artifactId>axiom-api</artifactId> <version>1.2.8</version> </dependency>
Strange, Maven reported problems with damaged artifacts several times, and I add ~/.m2/repository/org/apache/ws/commons/axiom/ , and ~/.m2/repository/org/apache/geronimo/specs/ in the process of getting working artifacts.
After that, the assembly worked (not passing due to compilation problems, but working).
PS: Honestly, it was a really terrible experience, and the situation seems very unstable. Another reason to stay away from Axis2 IMHO is to prefer JAX-WS RI or CXF.
source share