<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>
		<groupId>org.mule.modules</groupId>
		<artifactId>mule-module-workday-hcm</artifactId>
		<version>4.1.0</version>
	</parent>
	<artifactId>mule-module-workday-payrollinterface</artifactId>
	<packaging>mule-module</packaging>
	<name>Mule Workday HCM Connector - Payroll Interface</name>

	<build>
		<plugins>
			<plugin>
				<artifactId>cxf-codegen-plugin</artifactId>
				<groupId>org.apache.cxf</groupId>
				<version>${cxf.version}</version>
				<executions>
					<execution>
						<phase>validate</phase>
						<configuration>
							<wsdlOptions>
								<wsdlOption>
									<wsdl>${basedir}/src/main/resources/wsdl/${workday.version}/Payroll_Interface.wsdl</wsdl>
									<extraargs>
										<extraarg>-p</extraarg>
										<extraarg>com.workday.payrollinterface</extraarg>
										<extraarg>-xjc-Xbg</extraarg>
										<extraarg>-xjc-Xcollection-setter-injector</extraarg>
										<extraarg>-exceptionSuper</extraarg>
										<extraarg>java.lang.RuntimeException</extraarg>
									</extraargs>
									<bindingFiles>
										<bindingFile>${basedir}/src/main/resources/binding.xml</bindingFile>
									</bindingFiles>
								</wsdlOption>
							</wsdlOptions>
						</configuration>
						<goals>
							<goal>wsdl2java</goal>
						</goals>
					</execution>
				</executions>
				<dependencies>
					<!-- Boolean getters -->
					<dependency>
						<groupId>org.apache.cxf.xjcplugins</groupId>
						<artifactId>cxf-xjc-boolean</artifactId>
						<version>2.6.0</version>
					</dependency>
					<!-- Collection Setters -->
					<dependency>
						<groupId>net.java.dev.vcc.thirdparty</groupId>
						<artifactId>collection-setter-injector</artifactId>
						<version>0.5.0-1</version>
					</dependency>
				</dependencies>
			</plugin>
		</plugins>
		<resources>
			<resource>
				<filtering>false</filtering>
				<directory>src/main/resources/wsdl</directory>
				<excludes>
					<exclude>**/*.wsdl</exclude>
				</excludes>
			</resource>
		</resources>
	</build>
</project>