Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

    • Configure Maven dependencies:

      Code Block
      xml
      xml
      titlepom.xmlxml
      <project...>
        <dependencies>
          <!-- JAXB dependencies -->
          <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.2.2</version>
          </dependency>
          <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.2.2</version>
          </dependency>
      
          <!-- Spring WS dependencies -->
          <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-core</artifactId>
            <version>2.0.1.RELEASE</version>
          </dependency>
          <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-security</artifactId>
            <version>2.0.1.RELEASE</version>
          </dependency>
          <dependency>
            <groupId>org.apache.ws.commons.schema</groupId>
            <artifactId>XmlSchema</artifactId>
            <version>1.4.7</version>
          </dependency>
      
         <dependency>
      	<groupId>org.springframework</groupId>
      	<artifactId>spring-oxm</artifactId>
      	<version>${spring.version}</version>
         </dependency>
      
        </dependencies>
      </project>
      
    • Download WS XSD schemas to project directory src/main/resources/schema
    • Configure JAXB to generate classes:

      Code Block
      xml
      xml
      titlepom.xmlxml
      <project...>
        <build>
          <plugins>
            <plugin>
              <groupId>org.jvnet.jaxb2.maven2</groupId>
              <artifactId>maven-jaxb2-plugin</artifactId>
              <version>0.7.5</version>
              <executions>
                <execution>
                  <id>jaxb-ws-pvplanner</id>
                  <goals>
                    <goal>generate</goal>
                  </goals>
                </execution>
              </executions>
              <configuration>
                <schemaDirectory>src/main/resources/schema</schemaDirectory>
              </configuration>
            </plugin>
          </plugins>
        </build>
      <project>
      

...