Skip to main content

Dependencies and Code Generation

Availability-noteDeprecated

The following dependencies should be added to the project to enable notification functionality:

In the pom.xml file of the project:

<dependencies>
    <!-- TESB -->
    <dependency>
        <groupId>org.talend.esb</groupId>
        <artifactId>transport-jms</artifactId>
        <version>${tesb.version}</version>
    </dependency>
         
    <!-- CXF -->
    <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-transports-http</artifactId>
        <version>${cxf.version}</version>
    </dependency>
    <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-ws-security</artifactId>
        <version>${cxf.version}</version>
    </dependency>
    <dependency>
        <groupId>org.apache.cxf.xjc-utils</groupId>
        <artifactId>cxf-xjc-runtime</artifactId>
        <version>${cxf.xjc.version}</version>
    </dependency>

    <!-- Third parties -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>${spring.version}</version>
    </dependency>
 
    <!-- logging -->
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>${slf4j.version}</version>
    </dependency>
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>${log4j.version}</version>
    </dependency>
</dependencies>

The following plugin must be added to the Maven build cycle to include the CXF code generator:

CXF code genration plugin

<plugins>
   <plugin>
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-codegen-plugin</artifactId>
      <version>${cxf.version}</version>
      <executions>
         <execution>
            <id>generate-sources</id>
            <phase>generate-sources</phase>
            <configuration>
               <wsdlOptions>
                  <wsdlOption>
                     <wsdl>src/main/sr-resources/Library.wsdl</wsdl>
                     <frontEnd>jaxws21</frontEnd>
                     <faultSerialVersionUID>1</faultSerialVersionUID>
                     <bindingFiles>
                        <bindingFile>src/main/sr-resources/binding.xml</bindingFile>
                     </bindingFiles>
                  </wsdlOption>
               </wsdlOptions>
            </configuration>
            <goals>
               <goal>wsdl2java</goal>
            </goals>
         </execution>
      </executions>
   </plugin>

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!