On 19.03.2012 16:14, Daniel Kulp wrote:
On Monday, March 19, 2012 02:25:09 PM David Karlsen wrote:
>  It would be very handy if these could be resolved as classpath:
>  resources like in spring.
You MIGHT be able to with CXF.  I haven't actually tried this, but I think
this should work:

<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf-plugin.version}</version>
<dependencies>
    <dependency>
           <groupId>my.group.id</groupId>
           <artifactId>myArtifactId</artifactId>
           <version>1.0</version>
      </dependency>
</dependency>
<executions>
    <execution>
      <id>generate-soap-client</id>
      <configuration>
        <wsdlOptions>
          <wsdlOption>
            <wsdl>classpath:my.wsdl</wsdl>
....

Adding the dependency should throw the jar on the classpath for the plugin
and the classpath: URL should allow CXF to load it from there.

It does work indeed, although I still don't understand /why/ this works. After all 'classpath:' isn't a "real" URL.

Cheers,
Marcel

--
Marcel Stör, http://www.frightanic.com
Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Reply via email to