Include additional resources in the bank

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

Could you tell me how to change pom.xml in maven to achieve the same.

Gnash Relationship - 85

+3
source share
1 answer

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

provided that you have

project
  + src
    + main
      + java
      + wsdl
      + resources

Add POM,

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

Then it should add your wsdl as an additional resource


Edit:

There is an alternative way for which we do not need to update project.build.resources to include all resource directories.

This is using the build assembly plugin

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.8</version>
        <executions>
          <execution>
            <id>add-wsdl-resource</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>add-resource</goal>
            </goals>
            <configuration>
              <resources>
                <resource>
                  <directory>${basedir}/src/main/wsdl</directory>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
+10
source

Source: https://habr.com/ru/post/1756918/


All Articles