<!--

    Copyright 2005-2012 The Kuali Foundation

    Licensed under the Educational Community License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.opensource.org/licenses/ecl2.php

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>rice-kew</artifactId>
    <groupId>org.kuali.rice</groupId>
    <version>2.0.1</version>
  </parent>
  <artifactId>rice-kew-framework</artifactId>
  <version>2.0.1</version>
  <name>Rice KEW Framework</name>
  <dependencies>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>rice-core-api</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>rice-kew-api</artifactId>
      <version>${project.version}</version>
    </dependency>
  </dependencies>
  <properties>
    <svc.sa.name>SearchableAttribute</svc.sa.name>
    <svc.sa.wsdl>${wsdl.dir}/${svc.sa.name}.wsdl</svc.sa.wsdl>
    <svc.dsch.name>DocumentSearchCustomizationHandler</svc.dsch.name>
    <svc.dsch.wsdl>${wsdl.dir}/${svc.dsch.name}.wsdl</svc.dsch.wsdl>
    <svc.dsh.name>DocumentSecurityHandler</svc.dsh.name>
    <svc.dsh.wsdl>${wsdl.dir}/${svc.dsh.name}.wsdl</svc.dsh.wsdl>
    <svc.rvae.name>RuleValidationAttributeExporter</svc.rvae.name>
    <svc.rvae.wsdl>${wsdl.dir}/${svc.rvae.name}.wsdl</svc.rvae.wsdl>
    <svc.wrah.name>WorkflowRuleAttributeHandler</svc.wrah.name>
    <svc.wrah.wsdl>${wsdl.dir}/${svc.wrah.name}.wsdl</svc.wrah.wsdl>
    <svc.alch.name>ActionListCustomizationHandler</svc.alch.name>
    <svc.alch.wsdl>${wsdl.dir}/${svc.alch.name}.wsdl</svc.alch.wsdl>
    <svc.pft.name>PeopleFlowType</svc.pft.name>
    <svc.pft.wsdl>${wsdl.dir}/${svc.pft.name}.wsdl</svc.pft.wsdl>
  </properties>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-java2ws-plugin</artifactId>
        <executions>
          <execution>
            <id>searchableAttribute-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.kew.framework.document.attribute.SearchableAttribute</className>
              <outputFile>${svc.sa.wsdl}</outputFile>
              <serviceName>${svc.sa.name}</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>documentSearchCustomizationHandlerService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.kew.framework.document.search.DocumentSearchCustomizationHandlerService</className>
              <outputFile>${svc.dsch.wsdl}</outputFile>
              <serviceName>${svc.dsch.name}</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>documentSecurityHandlerService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.kew.framework.document.security.DocumentSecurityHandlerService</className>
              <outputFile>${svc.dsh.wsdl}</outputFile>
              <serviceName>${svc.dsh.name}</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>ruleValidationAttributeExporterService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.kew.framework.validation.RuleValidationAttributeExporterService</className>
              <outputFile>${svc.rvae.wsdl}</outputFile>
              <serviceName>${svc.rvae.name}</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>workflowRuleAttributeHandlerService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.kew.framework.rule.attribute.WorkflowRuleAttributeHandlerService</className>
              <outputFile>${svc.wrah.wsdl}</outputFile>
              <serviceName>${svc.wrah.name}</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>actionListCustomizationHandlerService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.kew.framework.actionlist.ActionListCustomizationHandlerService</className>
              <outputFile>${svc.alch.wsdl}</outputFile>
              <serviceName>${svc.alch.name}</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>peopleFlowTypeService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.kew.framework.peopleflow.PeopleFlowTypeService</className>
              <outputFile>${svc.pft.wsdl}</outputFile>
              <serviceName>${svc.pft.name}</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-wsdls</id>
            <goals>
              <goal>attach-artifact</goal>
            </goals>
            <configuration>
              <artifacts>
                <artifact>
                  <file>${svc.sa.wsdl}</file>
                  <classifier>${svc.sa.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.dsch.wsdl}</file>
                  <classifier>${svc.dsch.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.dsh.wsdl}</file>
                  <classifier>${svc.dsh.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.rvae.wsdl}</file>
                  <classifier>${svc.rvae.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.wrah.wsdl}</file>
                  <classifier>${svc.wrah.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.alch.wsdl}</file>
                  <classifier>${svc.alch.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.pft.wsdl}</file>
                  <classifier>${svc.pft.name}</classifier>
                  <type>wsdl</type>
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>