<?xml version="1.0" encoding="UTF-8"?>
<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.bidib.jbidib</groupId>
        <artifactId>jbidibc</artifactId>
        <version>2.0.40</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    
    <artifactId>jbidibc-simulation</artifactId>
    <packaging>jar</packaging>
    <name>jBiDiB :: jbidibc Simulation</name>
    <description>jBiDiB jbidibc Simulation POM</description>
    <dependencies>
		<dependency>
		    <groupId>com.fasterxml.jackson.core</groupId>
		    <artifactId>jackson-databind</artifactId>
		</dependency>
        <dependency>
            <groupId>org.bidib.jbidib</groupId>
            <artifactId>jbidibc-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.bidib.jbidib</groupId>
            <artifactId>jbidibc-net-serial-over-tcp</artifactId>
        </dependency>
        <dependency>
            <groupId>org.bidib.jbidib</groupId>
            <artifactId>jbidibc-serial</artifactId>
        </dependency>
        <dependency>
            <groupId>org.bushe</groupId>
            <artifactId>eventbus</artifactId>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <scope>test</scope>
        </dependency>
		<dependency>
			<groupId>org.assertj</groupId>
			<artifactId>assertj-core</artifactId>
            <scope>test</scope>
		</dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
				<groupId>${jaxb2-maven-plugin.groupId}</groupId>
                <artifactId>${jaxb2-maven-plugin.artifactId}</artifactId>
                <executions>
                    <execution>
                        <id>generate</id>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <bindingDirectory>src/main/xjb</bindingDirectory>
                            <bindingIncludes>
                                <include>bindings.xjb</include>
                            </bindingIncludes>
                        
                            <extension>true</extension>
                            <args>
                                <arg>-Xinheritance</arg>
                                <arg>-Xcommons-lang</arg>
                                <arg>-Xfluent-api</arg>
                                <arg>-Xannotate</arg>
                            </args>
                            <catalog>src/main/resources/catalog.cat</catalog>
                            <schemas>
                                <schema>
                                    <fileset>
                                        <directory>${project.basedir}/src/main/resources/xsd</directory>
                                        <includes>
                                            <include>*.xsd</include>
                                        </includes>
                                    </fileset>
                                </schema>                            
                            </schemas>
                            <episodes>
                                <episode>
                                    <groupId>org.bidib.jbidib</groupId>
                                    <artifactId>jbidibc-core</artifactId>
                                    <version>${jbidibc-version}</version>
                                </episode>
                            </episodes>
                            <strict>false</strict>
                            <plugins>
								<plugin>
									<groupId>org.jvnet.jaxb</groupId>
									<artifactId>jaxb-plugin-annotate</artifactId>
									<version>${jaxb-plugin-annotate.version}</version>
								</plugin>
								
								<plugin>
								    <groupId>com.fasterxml.jackson.core</groupId>
								    <artifactId>jackson-databind</artifactId>
								    <version>${jackson-bom.version}</version>
								</plugin>
							</plugins>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <configuration>
                    <includePom>true</includePom>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>${project.build.directory}/generated-resources/xml/</source>
                                <source>${project.basedir}/src/main/xjb/</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
