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]

Reply via email to