Thursday, February 2, 2012

add webservice generated classes to project classpath in NetBeans

check out project from cvs, it was created by eclipse,netBeans managed classpath did not contains the classes that generated by WSDL2Java,I use following code in pom.xml to include the classes.
inside build.plugins


<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-ws-source</id>
<phase>gernated-source</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java-gen</source>
</sources>
</configuration>
</execution>
</executions>
<configuration>
</configuration>
</plugin>

No comments:

Post a Comment