dev@jax-ws.java.net

jaxws-maven-plugin and jaxb episode files in dependent jars

From: stug23 <pat.podenski_at_gmail.com>
Date: Tue, 23 Dec 2008 14:41:52 -0800 (PST)

Is there a way in using the org.codehaus.mojo:jaxws-maven-plugin to take
advantage of episode files contained with dependent jar files when executing
the wsimport goal?

Currently the only way that I have found to avoid regeneration of Java
source code is to pass xjcArgs so that jaxb and xjc can use the episode
files as shown in the following example configuration for the
jaxws-maven-plugin:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>jaxws-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>wsimport</id>
      <phase>generate-sources</phase>
      <goals>
        <goal>wsimport</goal>
      </goals>
      </execution>
        </executions>
          <dependencies>
            <dependency>
              <groupId>com.sun.xml.ws</groupId>
              <artifactId>jaxws-tools</artifactId>
              <version>2.1.4</version>
            </dependency>
          </dependencies>
          <configuration>
            <wsdlDirectory>src/main/wsdl</wsdlDirectory>
            <keep>true</keep>
            <xjcArgs>
              <xjcArg>-b</xjcArg>
             
<xjcArg>person-service/src/main/wsdl/core-response.episode</xjcArg>
              <xjcArg>-episode</xjcArg>
             
<xjcArg>person-service/target/classes/person-service.episode</xjcArg>
            </xjcArgs>
          </configuration>
        </plugin>

I have tried using the related dependent jar that contains the required
episode file instead of passing these xjcArgs, but with no success (i.e.,
the Java source was still being generated).

What I need is to be able to obtain the same behavior that Kohsuke
documented in this blog entry (See Case 1), only via the jaxws-maven-plugin.
Any ideas/suggestions on how to do this would be appreciated.

Separate compilation in the JAXB RI 2.1

 
<http://weblogs.java.net/blog/kohsuke/archive/2006/09/separate_compil.html>

TIA!

-- 
View this message in context: http://www.nabble.com/jaxws-maven-plugin-and-jaxb-episode-files-in-dependent-jars-tp21151709p21151709.html
Sent from the JAX-WS Development mailing list archive at Nabble.com.