i have maven project wherein consuming webservice using wsimport goal during project build.
<build> <plugins> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>jaxws-maven-plugin</artifactid> <version>1.10</version> <executions> <execution> <goals> <goal>wsimport</goal> </goals> </execution> </executions> <!-- --> <configuration> <wsdlurls> <wsdlurl>http://localhost:8081/email-service/services/emailservice?wsdl</wsdlurl> </wsdlurls> <sourcedestdir>${project.build.directory}/generated</sourcedestdir> <verbose>true</verbose> </configuration> </plugin> <plugin> <artifactid>maven-compiler-plugin</artifactid> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> <finalname>emailserviceclient</finalname> i build project using clean install command. artifacts/classes generated in target->generated directory. far good.
now when tried access of generated class in src directory, compiler error stating class not defined. peer told me build project using
eclipse:clean eclipse:eclipse i did , solved problem. able use generated classes easily. wondering
- what happening command?
- what use?
- am following correct way consume? know can use
wsdl2javawrong this?
has ever encountered type of situation? please throw light on this. thank you!
i not sure reason behind problem " when tried access of generated class in src directory, compiler error stating class not defined. " can tell meaning of command using
as far know in maven can define more 1 goal @ time execute so
eclipse:clean \\deletes .project, .classpath, .wtpmodules files , .settings folder used eclipse. eclipse:eclipse \\build project eclipse project structure.
Comments
Post a Comment