<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>hu.icellmobilsoft.coffee</groupId>
		<artifactId>coffee-module-document</artifactId>
		<version>1.0.0</version>
	</parent>

	<artifactId>coffee-module-document-dto</artifactId>

	<dependencies>
		<dependency>
			<groupId>hu.icellmobilsoft.coffee</groupId>
			<artifactId>coffee-dto-impl</artifactId>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.jvnet.jaxb2.maven2</groupId>
				<artifactId>maven-jaxb2-plugin</artifactId>
				<version>0.14.0</version>
				<executions>
					<execution>
						<id>coffee-super</id>
						<goals>
							<goal>generate</goal>
						</goals>
						<configuration>
							<episodes>
								<episode>
									<!-- Nem generálja le újra a coffee dto-kat csak felhasználja -->
									<groupId>hu.icellmobilsoft.coffee</groupId>
									<artifactId>coffee-dto-gen</artifactId>
								</episode>
							</episodes>
							<strict>false</strict>
							<!-- https://github.com/highsource/maven-jaxb2-plugin/wiki/Catalogs-in-Strict-Mode -->
							<catalog>src/main/resources/xsd/hu/icellmobilsoft/coffee/dto/document/document.catalog.xml</catalog>
							<schemaIncludes>
								<include>xsd/hu/icellmobilsoft/coffee/dto/document/document.super.xsd</include>
							</schemaIncludes>
							<bindingIncludes>
								<include>xsd/hu/icellmobilsoft/coffee/dto/document/bindings.xjb</include>
							</bindingIncludes>
							<generateDirectory>${project.build.directory}/generated-sources/src/main/java</generateDirectory>
						</configuration>
					</execution>
				</executions>
				<configuration>
					<verbose>true</verbose>
					<schemaDirectory>src/main/resources</schemaDirectory>
					<args>
						<arguments>-openapify</arguments>
						<arguments>-Xfluent-api</arguments>
						<arguments>-Xannotate</arguments>
					</args>
					<plugins>
						<plugin>
							<groupId>hu.icellmobilsoft.jaxb</groupId>
							<artifactId>openapi-jaxb</artifactId>
							<version>1.1.0</version>
						</plugin>
						<plugin>
							<groupId>net.java.dev.jaxb2-commons</groupId>
							<artifactId>jaxb-fluent-api</artifactId>
							<version>2.1.8</version>
						</plugin>
						<plugin>
							<groupId>org.jvnet.jaxb2_commons</groupId>
							<artifactId>jaxb2-basics-annotate</artifactId>
							<version>1.0.4</version>
						</plugin>
						<plugin>
							<groupId>com.fasterxml.jackson.core</groupId>
							<artifactId>jackson-databind</artifactId>
							<version>2.10.4</version>
						</plugin>
					</plugins>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>