Maven project in netbeans that include some webserivce client code reference to generated java code,but those code is not in classpath,so it cause error in IDE,but command clean package is OK.
put following code in pom.xml 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