tags:

views:

14

answers:

1

Hi experts,

I have compiled some class files and a jar file. Now i want to include some wsdl into the jar file .

Can you please tell me how can amend pom.xml in maven for achieving the same.

Regards Gnash--85

A: 

Where do those WSDL files come from? Are they part of your source?

assuming you have

project
  + src
    + main
      + java
      + wsdl
      + resources

Please add in POM,

<project>
  ...
  <build>
    <resources>
      ...
      <resource>
        <directory>${basedir}/src/main/wsdl</directory>
      <resource>
    </resources>
   </build>
</project>

Then it should add your wsdl as extra resource

Adrian Shum
Thanks a lot. It worked.
That's good. But I will suggest you changing the title to: "include additional resources to JAR" because the question really have nothing to do with WSDL.And if it works, may you accept my answer? :) These saves time for other people searching for same issue :)
Adrian Shum