I am not sure why the example was not working but I ended up creating a maven build file to generate java objects from wsdl
I could not download the plugin, It turns out it is not available on maven central so I added this repository to pom.xml
Code:
<pluginRepositories>
<pluginRepository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
I have to say the documentation is not really good for this plugin, I stumbled around a bit before I got this working. I used the following maven plugin config to generate the java objects from wsdl input
Code:
<plugin>
<groupId>com.sun.tools.xjc.maven2</groupId>
<artifactId>maven-jaxb-plugin</artifactId>
<version>1.1.1</version>
<configuration>
<generateDirectory>src/main/java</generateDirectory>
<generatePackage>prasanna.generated</generatePackage>
<schemaDirectory>src/main/resources</schemaDirectory>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaDirectory>src/main/resources</schemaDirectory>
<readOnly>true</readOnly>
<includeSchemas>
<includeSchema>hello.wsdl</includeSchema>
</includeSchemas>
<args>-wsdl</args>
</configuration>
</execution>
</executions>
</plugin>
looks like you did the same thing, I don't know why you got that error. I tried to attach my pom.xml to the post but I keep getting invalid file error