Codehaus XFire

Documentation

Quicklinks

Developers

Sponsors

Maven 2.0

With Maven 2.0 it is easy to get started using XFire. Just add the XFire dependencies that you need to your POM:

<dependency>
    <groupId>org.codehaus.xfire</groupId>
    <artifactId>xfire-jaxb2</artifactId>
    <version>1.1.1</version>
</dependency>
<dependency>
    <groupId>org.codehaus.xfire</groupId>
    <artifactId>xfire-spring</artifactId>
    <version>1.1.1</version>
</dependency>
<dependency>
    <groupId>org.codehaus.xfire</groupId>
    <artifactId>xfire-java5</artifactId>
    <version>1.1.1</version>
</dependency>

In this example the user is utilizing the JSR181 and JAXB 2.0 capabilities of XFire. Since xfire-core and xfire-annotations are included transitively, there is no reason to include them in the POM.

You will also want to add in the Codehaus repository to your POM:

<repositories>
    <repository>
      <id>codehaus</id>
      <name>Codehaus maven repository</name>
      <url>http://repository.codehaus.org/</url>
    </repository>
  </repositories>

WsGen Plugin

There is now a XFire Mojo under development which will generate client and server stubs. More information about how to use it can be found here.

Maven 1.x

If you are using Maven 1.1, you can have maven automatically search the Codehaus repository by adding the following to your project.properties:

maven.repo.remote=http://ibiblio.org/maven,http://dist.codehaus.org

Declaring dependencies is just like Maven 2.x, except you'll need to add in all the dependencies found in the Dependency Guide.