I am in my first Java-Spring project. I need to communicate with several web services. I have WSDL, so I use Jax2B to auto-generate classes.
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.9.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>hello.wsdl</generatePackage>
<forceRegenerate>true</forceRegenerate>
<schemas>
<schema>
<url>http://wsf.cdyne.com/WeatherWS/Weather.asmx?wsdl</url>
</schema>
</schemas>
</configuration>
</plugin>
My project is a web project. The problem here is that my classes are generated in the goals folder, not in my project. Does anyone have any ideas how to fix this? Classes are created correctly, but not in the corresponding directory. As you can see, I am currently using the test names wsdl and mockup. I followed this guide: http://spring.io/guides/gs/consuming-web-service/
Thank you very much in advance
source
share