<?xml version="1.0"?>

<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-krms</artifactId>
    <groupId>org.kuali.rice</groupId>
   <version>2603.0003</version>
  </parent>
  <artifactId>rice-krms-api</artifactId>
  <name>Rice KRMS API</name>
  <dependencies>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>rice-core-api</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>jakarta.jws</groupId>
      <artifactId>jakarta.jws-api</artifactId>
    </dependency>
    <dependency>
      <groupId>jakarta.xml.bind</groupId>
      <artifactId>jakarta.xml.bind-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.glassfish.jaxb</groupId>
      <artifactId>jaxb-runtime</artifactId>
    </dependency>
    <dependency>
      <groupId>org.junit.vintage</groupId>
      <artifactId>junit-vintage-engine</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.groovy</groupId>
      <artifactId>groovy-test</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <properties>
    <svc.co.name>ComparisonOperatorService</svc.co.name>
    <svc.co.wsdl>${wsdl.dir}/${svc.co.name}.wsdl</svc.co.wsdl>
    <svc.rr.name>RuleRepositoryService</svc.rr.name>
    <svc.rr.wsdl>${wsdl.dir}/${svc.rr.name}.wsdl</svc.rr.wsdl>
    <svc.fr.name>FunctionRepositoryService</svc.fr.name>
    <svc.fr.wsdl>${wsdl.dir}/${svc.fr.name}.wsdl</svc.fr.wsdl>
    <svc.rm.name>RuleManagementService</svc.rm.name>
    <svc.rm.wsdl>${wsdl.dir}/${svc.rm.name}.wsdl</svc.rm.wsdl>
    <svc.tr.name>TermRepositoryService</svc.tr.name>
    <svc.tr.wsdl>${wsdl.dir}/${svc.tr.name}.wsdl</svc.tr.wsdl>
    <svc.ktr.name>KrmsTypeRepositoryService</svc.ktr.name>
    <svc.ktr.wsdl>${wsdl.dir}/${svc.ktr.name}.wsdl</svc.ktr.wsdl>
  </properties>
  <build>
    <plugins>
     <plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-java2ws-plugin</artifactId>
        <executions>
          <execution>
            <id>krmsTypeRepositoryService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.krms.api.repository.type.KrmsTypeRepositoryService</className>
              <outputFile>${svc.ktr.wsdl}</outputFile>
              <serviceName>KrmsTypeRepositoryService</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>ruleRepositoryService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.krms.api.repository.RuleRepositoryService</className>
              <outputFile>${svc.rr.wsdl}</outputFile>
              <serviceName>RuleRepositoryService</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>functionRepositoryService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.krms.api.repository.function.FunctionRepositoryService</className>
              <outputFile>${svc.fr.wsdl}</outputFile>
              <serviceName>FunctionRepositoryService</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>ruleManagementService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.krms.api.repository.RuleManagementService</className>
              <outputFile>${svc.rm.wsdl}</outputFile>
              <serviceName>RuleManagementService</serviceName>
            </configuration>
            <goals>
              <goal>java2ws</goal>
            </goals>
          </execution>
          <execution>
            <id>termRepositoryService-wsdl</id>
            <phase>${rice.java2ws.phase}</phase>
            <configuration>
              <className>org.kuali.rice.krms.api.repository.term.TermRepositoryService</className>
              <outputFile>${svc.tr.wsdl}</outputFile>
              <serviceName>TermRepositoryService</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.rr.wsdl}</file>
                  <classifier>${svc.rr.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.fr.wsdl}</file>
                  <classifier>${svc.fr.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.ktr.wsdl}</file>
                  <classifier>${svc.ktr.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.rm.wsdl}</file>
                  <classifier>${svc.rm.name}</classifier>
                  <type>wsdl</type>
                </artifact>
                <artifact>
                  <file>${svc.tr.wsdl}</file>
                  <classifier>${svc.tr.name}</classifier>
                  <type>wsdl</type>
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>testjar</id>
            <phase>package</phase>
            <goals>
              <goal>test-jar</goal>
            </goals>
            <configuration>
              <skipIfEmpty>true</skipIfEmpty>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
