<?xml version="1.0" encoding="UTF-8"?>

<!-- ====================================================================== -->
<!--                                                                        -->
<!--  JBoss, the OpenSource J2EE webOS                                      -->
<!--                                                                        -->
<!--  Distributable under LGPL license.                                     -->
<!--  See terms of license at http://www.gnu.org.                           -->
<!--                                                                        -->
<!-- ====================================================================== -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  
  <name>JBoss Web Services - Stack CXF</name>
  <groupId>org.jboss.ws.cxf</groupId>
  <artifactId>jbossws-cxf</artifactId>
  <packaging>pom</packaging>
  
  <version>3.2.0.GA</version>
  
  <!-- Parent -->
  <parent>
    <groupId>org.jboss.ws</groupId>
    <artifactId>jbossws-parent</artifactId>
    <version>1.0.2.GA</version>
  </parent>
  
  <!-- Source Control Management -->
  <scm>
    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossws/stack/cxf/tags/jbossws-cxf-3.2.0.GA</connection>
    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossws/stack/cxf/tags/jbossws-cxf-3.2.0.GA</developerConnection>
    <url>http://fisheye.jboss.com/viewrep/JBossWS/stack/cxf/tags/jbossws-cxf-3.2.0.GA</url>
  </scm>
  
  <!-- Modules -->
  <modules>
    <module>modules/server</module>
    <module>modules/client</module>
    <module>modules/management</module>
    <module>modules/resources</module>
  </modules>
  
  <!-- Properties -->
  <properties>
    <jbossws.common.version>1.2.0.GA</jbossws.common.version>
    <jbossws.framework.version>3.2.0.GA</jbossws.framework.version>
    <jbossws.spi.version>1.2.0.GA</jbossws.spi.version>
    <jbossws.jboss500.version>3.2.0.GA</jbossws.jboss500.version>
    <jbossws.jboss501.version>3.2.0.GA</jbossws.jboss501.version>
    <jbossws.jboss510.version>3.2.0.GA</jbossws.jboss510.version>
    <!-- JBWS-2505 -->
    <!-- START -->
    <!--
    <jbossws.jboss520.version>3.2.0.GA</jbossws.jboss520.version>
    <jbossws.jboss600.version>3.2.0.GA</jbossws.jboss600.version>
    -->
    <!-- END -->
    <cxf.version>2.2.3</cxf.version>
    <cxf.anttasks.version>2.1.5</cxf.anttasks.version>
    <cxf.stax.version>1.0.1</cxf.stax.version>
    <cxf.asm.version>2.2.3</cxf.asm.version>
    <fastinfoset.api.version>1.2.7</fastinfoset.api.version>
    <jboss.common.core.version>2.2.14.GA</jboss.common.core.version>
    <jaxb.api.version>2.1</jaxb.api.version>
    <jaxb.impl.version>2.1.12</jaxb.impl.version>
    <jaxrpc.api.version>1.1</jaxrpc.api.version>
    <jaxws.api.version>2.1-1</jaxws.api.version>
    <jboss.jaxr.version>2.0.1</jboss.jaxr.version>
    <apache.scout.version>1.1.1</apache.scout.version>
    <juddi.version>2.0.1</juddi.version>
    <commons-collections.version>3.1</commons-collections.version>
    <commons-lang.version>2.4</commons-lang.version>
    <commons.logging.version>1.1.1</commons.logging.version>
    <log4j.version>1.2.14</log4j.version>
    <saaj.api.version>1.3</saaj.api.version>
    <velocity.version>1.5</velocity.version>
    <xmlsec.version>1.4.3</xmlsec.version>
    <wstx.version>3.2.8</wstx.version>
  </properties>
  
  <!-- DependencyManagement -->
  <dependencyManagement>
    <dependencies>
      
      <!-- jbossws dependencies -->
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-common</artifactId>
        <version>${jbossws.common.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-spi</artifactId>
        <version>${jbossws.spi.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-framework</artifactId>
        <version>${jbossws.framework.version}</version>
      </dependency>     
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-framework</artifactId>
        <version>${jbossws.framework.version}</version>
        <classifier>testsuite</classifier>
        <type>zip</type>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss500</artifactId>
        <version>${jbossws.jboss500.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss500</artifactId>
        <version>${jbossws.jboss500.version}</version>
        <classifier>resources</classifier>
        <type>zip</type>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss501</artifactId>
        <version>${jbossws.jboss501.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss501</artifactId>
        <version>${jbossws.jboss501.version}</version>
        <classifier>resources</classifier>
        <type>zip</type>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss510</artifactId>
        <version>${jbossws.jboss510.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss510</artifactId>
        <version>${jbossws.jboss510.version}</version>
        <classifier>resources</classifier>
        <type>zip</type>
      </dependency>
      <!-- JBWS-2505 -->
      <!-- START -->
      <!--
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss520x</artifactId>
        <version>${jbossws.jboss520.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss520x</artifactId>
        <version>${jbossws.jboss520.version}</version>
        <classifier>resources</classifier>
        <type>zip</type>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss600x</artifactId>
        <version>${jbossws.jboss600.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.ws</groupId>
        <artifactId>jbossws-jboss600x</artifactId>
        <version>${jbossws.jboss600.version}</version>
        <classifier>resources</classifier>
        <type>zip</type>
      </dependency>
      -->
      <!-- END -->

      <!-- provided apis -->
      <dependency>
        <groupId>javax.ejb</groupId>
        <artifactId>ejb-api</artifactId>
        <version>3.0</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>javax.jws</groupId>
        <artifactId>jsr181-api</artifactId>
        <version>1.0-MR1</version>
        <scope>provided</scope>
      </dependency>
      
      <!-- CXF dependencies -->
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-anttasks</artifactId>
        <version>${cxf.anttasks.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</groupId>
        <artifactId>cxf-rt-bindings-soap</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-bindings-http</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-bindings-object</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-bindings-coloc</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-bindings-corba</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <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-frontend-jaxrs</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-transports-http-jetty</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-transports-jms</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-transports-local</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-ws-rm</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-ws-policy</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-tools-java2ws</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-tools-wsdlto-core</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-tools-wsdlto-databinding-jaxb</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-tools-wsdlto-frontend-jaxws</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf.xjcplugins</groupId>
        <artifactId>cxf-xjc-bug671</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-xjc-dv</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-xjc-ts</artifactId>
        <version>${cxf.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.xml</groupId>
        <artifactId>jaxrpc-api</artifactId>
        <version>${jaxrpc.api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.soap</groupId>
        <artifactId>saaj-api</artifactId>
        <version>${saaj.api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.ws</groupId>
        <artifactId>jaxws-api</artifactId>
        <version>${jaxws.api.version}</version>
        <exclusions>
          <exclusion>
            <groupId>javax.jws</groupId>
            <artifactId>jsr181</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>com.sun.xml.fastinfoset</groupId>
        <artifactId>FastInfoset</artifactId>
        <version>${fastinfoset.api.version}</version>
      </dependency>
      <dependency>
        <groupId>apache-velocity</groupId>
        <artifactId>velocity</artifactId>
        <version>${velocity.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-collections</groupId>
        <artifactId>commons-collections</artifactId>
        <version>${commons-collections.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>${commons-lang.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.geronimo.specs</groupId>
        <artifactId>geronimo-stax-api_1.0_spec</artifactId>
        <version>${cxf.stax.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.santuario</groupId>
        <artifactId>xmlsec</artifactId>
        <version>${xmlsec.version}</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.woodstox</groupId>
        <artifactId>wstx-asl</artifactId>
        <version>${wstx.version}</version>
      </dependency>
      <dependency>
        <groupId>asm</groupId>
        <artifactId>asm</artifactId>
        <version>${cxf.asm.version}</version>
      </dependency>
      
      <!-- jboss provided -->
      <dependency>
        <groupId>org.jboss</groupId>
        <artifactId>jboss-common-core</artifactId>
        <version>${jboss.common.core.version}</version>
        <scope>provided</scope>
      </dependency>
      
      <!-- transitve dependencies -->
      <dependency>
        <groupId>apache-log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>${log4j.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>${jaxb.api.version}</version>
      </dependency>
      <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>${jaxb.impl.version}</version>
      </dependency>
      <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-xjc</artifactId>
        <version>${jaxb.impl.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.jaxr</groupId>
        <artifactId>juddi-service</artifactId>
        <version>${jboss.jaxr.version}</version>
        <type>sar</type>
      </dependency>
      <dependency>
        <groupId>apache-scout</groupId>
        <artifactId>scout</artifactId>
        <version>${apache.scout.version}</version>
      </dependency>
      <dependency>
        <groupId>juddi</groupId>
        <artifactId>juddi</artifactId>
        <version>${juddi.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>${commons.logging.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  
  <!-- Plugins -->
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>validate-jboss-home</id>
            <phase>validate</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <echo />
                <echo message="profile=${jbossws.integration.target}" />
                <echo message="jboss.home=${jboss.home}" />
                <echo />
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <finalName>deploy-artifacts</finalName>
          <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
          <appendAssemblyId>false</appendAssemblyId>
          <!--
            Cannot bind to lifecycle with multiple modules
            http://jira.codehaus.org/browse/MASSEMBLY-319
          <executions>
            <execution>
              <id>build-deploy-artifacts</id>
              <phase>package</phase>
              <goals>
                <goal>directory-inline</goal>
              </goals>
            </execution>
          </executions-->
          <descriptors>
            <descriptor>src/main/scripts/assembly-deploy-artifacts.xml</descriptor>
          </descriptors>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.0-beta-8</version>
        <configuration>
          <scmCommentPrefix>[${jira.issue}] :</scmCommentPrefix>
          <autoVersionSubmodules>true</autoVersionSubmodules>
        </configuration>
      </plugin>
    </plugins>
  </build>
  
  <!-- Repositories -->
  <repositories>
    <repository>
      <id>repository.jboss.org</id>
      <url>http://repository.jboss.org/maven2</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>snapshots.jboss.org</id>
      <url>http://snapshots.jboss.org/maven2</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>repository-snapshots-apache</id>
      <url>http://repository.apache.org/snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
  
  <!-- Profiles -->
  <profiles>
    <!-- 
    Name:  bindist
    Descr: Build the binary distribution  
    -->
    <profile>
      <id>bindist</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <configuration>
              <finalName>jbossws-cxf-bin-dist</finalName>
              <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
              <appendAssemblyId>false</appendAssemblyId>
              <descriptors>
                <descriptor>src/main/scripts/assembly-bin-dist.xml</descriptor>
              </descriptors>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    
    <!-- 
    Name:  srcdist
    Descr: Build the source distribution  
    -->
    <profile>
      <id>srcdist</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <configuration>
              <finalName>jbossws-cxf-src-dist</finalName>
              <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
              <appendAssemblyId>false</appendAssemblyId>
              <descriptors>
                <descriptor>src/main/scripts/assembly-src-dist.xml</descriptor>
              </descriptors>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!--
    Name:  jboss500
    Descr: JBoss-5.0.0 specific options
    -->
    <profile>
      <id>jboss500</id>
      <properties>
        <jbossws.integration.target>jboss500</jbossws.integration.target>
        <jboss.home>${jboss500.home}</jboss.home>
      </properties>
    </profile>

    <!--
    Name:  jboss501
    Descr: JBoss-5.0.1 specific options
    -->
    <profile>
      <id>jboss501</id>
      <properties>
        <jbossws.integration.target>jboss501</jbossws.integration.target>
        <jboss.home>${jboss501.home}</jboss.home>
      </properties>
    </profile>

    <!--
    Name:  jboss510
    Descr: JBoss-5.1.0 specific options
    -->
    <profile>
      <id>jboss510</id>
      <properties>
        <jbossws.integration.target>jboss510</jbossws.integration.target>
        <jboss.home>${jboss510.home}</jboss.home>
      </properties>
    </profile>

    <!--
    Name:  jboss520
    Descr: JBoss-5.2.0 specific options
    -->
    <profile>
      <id>jboss520</id>
      <properties>
        <jbossws.integration.target>jboss520</jbossws.integration.target>
        <jboss.home>${jboss520.home}</jboss.home>
      </properties>
    </profile>

    <!--
    Name:  jboss600
    Descr: JBoss-6.0.0 specific options
    -->
    <profile>
      <id>jboss600</id>
      <properties>
        <jbossws.integration.target>jboss600</jbossws.integration.target>
        <jboss.home>${jboss600.home}</jboss.home>
      </properties>
    </profile>

    <!--
    Name:  smoketest
    Descr: Executes the smoke tests
    -->
    <profile>
      <id>smoketest</id>
      <modules>
        <module>modules/testsuite</module>
      </modules>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <includes>
                <include>org/jboss/test/ws/jaxws/samples/**/*TestCase.java</include>
              </includes>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    
    <!-- 
    Name:  testsuite
    Descr: Executes the testsuite  
    -->
    <profile>
      <id>testsuite</id>
      <modules>
        <module>modules/testsuite</module>
      </modules>
    </profile>
  </profiles>
  
</project>
