The following is a part of my pom file.

I wrote an SEI that refers to POJOs (Object Models) within a dependency
jar (foo-model).

When I run this plugin with the following options I get errors from my SEI
because it complains that it can't see Object Model references from the
dependency foo-model.  Is that dependency supposed to be configured in
the <classPath> element too?

How does this plugin utilize the maven dependencies for compiling the SEI?
Where does this compiler put the generated source?
It doesn't seem that the generated source gets compiled (I assume it is
because
my generation of the wrapper bean errors).

Can I wildcard the <className> element?

Is there more detailed documentation?

I read:
http://cxf.apache.org/docs/maven-java2ws-plugin.html
http://cxf.apache.org/docs/java-to-ws.html

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-java2ws-plugin</artifactId>
      <version>${cxf.version}</version>
      <dependencies>
        <dependency>
          <groupId>org.apache.cxf</groupId>
          <artifactId>cxf-rt-frontend-jaxws</artifactId>
          <version>${cxf.version}</version>
        </dependency>
        <dependency>
          <groupId>org.apache.cxf</groupId>
          <artifactId>cxf-rt-frontend-simple</artifactId>
          <version>${cxf.version}</version>
        </dependency>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>foo-model</artifactId>
          <version>${project.version}</version>
        </dependency>
      </dependencies>
      <executions>
        <execution>
          <id>process-classes</id>
          <phase>process-classes</phase>
          <configuration>
            <className>com.food.soa.service.FooServiceEndpoint</className>
            <classPath>target/classes</classPath>
            <genWsdl>true</genWsdl>
            <verbose>true</verbose>
            <genClient>true</genClient>
            <genWrapperbean>true</genWrapperbean>
            <frontend>jaxws</frontend>
            <databinding>jaxb</databinding>
            <argline>-createxsdimports -s
${basedir}/target/generated/src/main/java</argline>
          </configuration>
          <goals>
            <goal>java2ws</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

Thanks for your help,

jay
-- 
View this message in context: 
http://cxf.547215.n5.nabble.com/cxf-java2ws-plugin-Questions-tp2651719p2651719.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to