<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.digidoc4j.dss</groupId>
		<artifactId>sd-dss</artifactId>
		<version>5.2.d4j.3</version>
	</parent>

	<artifactId>dss-diagnostic-jaxb</artifactId>
	<name>JAXB Diagnostic Data Model</name>
	<description>Generated source from XSD for Diagnostic Data.</description>

	<dependencies>
		<dependency>
			<groupId>${dss.groupId}</groupId>
			<artifactId>dss-common-validation-jaxb</artifactId>
		</dependency>
	</dependencies>

	<profiles>
		<profile>
			<id>jaxb</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.jvnet.jaxb2.maven2</groupId>
						<artifactId>maven-jaxb2-plugin</artifactId>
						<executions>
							<execution>
								<phase>generate-sources</phase>
								<goals>
									<goal>generate</goal>
								</goals>
								<configuration>
									<schemaDirectory>src/main/resources/xsd</schemaDirectory>
									<generatePackage>eu.europa.esig.dss.jaxb.diagnostic</generatePackage>
									<schemaIncludes>
										<schemaInclude>DiagnosticData.xsd</schemaInclude>
									</schemaIncludes>
									<bindingIncludes>
										<include>binding.xml</include>
									</bindingIncludes>
									<specVersion>2.1</specVersion>
									<encoding>UTF-8</encoding>
									<locale>en</locale>
									
									<extension>true</extension>
					                <args>
					                    <arg>-Xxew</arg>
					                    <arg>-Xxew:instantiate lazy</arg>
					                </args>
									 <plugins>
					                    <plugin>
					                        <groupId>com.github.jaxb-xew-plugin</groupId> <!-- Allows to add XmlElementWrapper -->
					                        <artifactId>jaxb-xew-plugin</artifactId>
                        					<version>1.7</version>
					                    </plugin>
					                </plugins>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>