Thanks for the tip! I just back to working on this project and have now come up with a solution, at least partially inspired by your suggestion.
I did try the approach you recommended initially after reading your reply. However after working through the problem, I ended up with a different solution with the same outcome. I used the assembly plugin to create a wsdl artifact containing the wsdl and related schemas in a zip packaged artifact in the person-service module. Then I used the dependency:unpack goal in the person-service-web module to unpack the zip artifact into the src/main/webapp/WEB-INF/wsdl directory. The unpack approach is nice because it lets you configure such that you can overwrite the existing files in the target directory. Stephen Connolly-2 wrote: > > use buildhelper to attach the wsdl as an artifact of person service. > then add the wsdl as a dependency of the war (type wsdl) then use > dependecy plugin to copy dependencies with includeType set to wsdl > > that will at least give the most interdependency info to standard > tools parsing your poms > > might get you somewhere > On Saturday, June 27, 2009, stug23 <[email protected]> wrote: >> >> I have a multimodule project for a Sun JAXWS web service and am trying >> figure >> out the best way to single source the WSDL and XML Schema files for the >> project. The project multimodule structure is shown below. I am having >> issues related to the sourcing of these files when using the Eclipse >> option >> menu Run As ==> Run on Server. >> >> The WSDL and XML Schema files are currently in the >> person-service/src/main/wsdl directory. This seems the most logical place >> to >> maintain these files, since this is a contract-first service in which the >> Java code is generated from the WSDL and XML Schema. For modifying the >> WSDL >> and/or editing the XML Schema it seems logical to maintain these files in >> the person-service module. >> >> I have initially used the maven-war-plugin to copy the WSDL and XML >> Schema >> files from the person-service module to the person-service-web >> target/person-service-web/WEB-INF/wsdl folder so that these files end up >> in >> the Maven-generated war file. However this approach doesn't work for >> running >> the person-service-web project using the Eclipse option menu Run As ==> >> Run >> on Server. This is apparently because the dynamic publishing feature used >> by >> WTP doesn't use the files contained in >> target/person-service-web/WEB-INF/wsdl. >> >> If I copy the WSDL and XML Schema files into >> person-service-web/src/main/webapp/WEB-INF/wsdl, then the WTP Eclipse >> option >> menu Run As ==> Run on Server works correctly -- the WSDL and XML Schema >> are >> then available via the web service URL: >> (http://localhost:8080/person-service-web/PersonService?wsdl). >> >> Since I do want to single source the WSDL and XML Schema files (hopefully >> in >> the person-service module) is there a better way to accomplish this and >> still publish correctly for WTP? >> >> The modules are: >> >> person-service-parent [pom] --- parent module which contains the >> following sub-modules: >> person-service [jar] --- contains web service code, WSDL and >> XML >> Schema files >> person-service-web [war] --- contains web.xml and sun-jaxws.xml >> files >> person-service-testing [pom] --- module to perform integration testing >> >> >> TIA! >> -- >> View this message in context: >> http://www.nabble.com/Problem-with-web-service-and-WTP-in-Maven-multimodule-project-tp24233382p24233382.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/Problem-with-web-service-and-WTP-in-Maven-multimodule-project-tp24233382p24597915.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
