<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.jooq</groupId>
		<artifactId>jooq-parent</artifactId>
		<version>2.4.2</version>
	</parent>

    <groupId>org.jooq</groupId>
    <artifactId>jooq-meta</artifactId>
    <name>jOOQ Meta</name>

    <build>
        <plugins>
            <!-- XJC-generate JAXB artefacts. Contribution is the courtesy of Sergey Epik -->
            <plugin>
                <groupId>org.jvnet.jaxb2.maven2</groupId>
                <artifactId>maven-jaxb2-plugin</artifactId>
                <version>0.8.1</version>
                <executions>
                    <execution>
                    	<id>configuration</id>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
	                        <forceRegenerate>true</forceRegenerate>
		                    <extension>true</extension>
		                    <strict>false</strict>
		                    <schemaDirectory>src/main/resources/xsd</schemaDirectory>
		                    <schemaIncludes>
		                        <include>jooq-codegen-2.4.0.xsd</include>
		                    </schemaIncludes>
		                    <generatePackage>org.jooq.util.jaxb</generatePackage>
		                    <args>
		                        <arg>-Xxew</arg>
		                        <arg>-Xxew:instantiate lazy</arg>
		                        <arg>-Xxew:delete</arg>
		                        <arg>-Xfluent-api</arg>
		                        <arg>-Xdefault-value</arg>
		                    </args>
		                    <plugins>
		                        <plugin>
		                            <groupId>com.github.jaxb-xew-plugin</groupId>
		                            <artifactId>jaxb-xew-plugin</artifactId>
		                            <version>1.0</version>
		                       </plugin>
		                        <plugin>
		                            <groupId>org.jvnet.jaxb2_commons</groupId>
		                            <artifactId>jaxb2-fluent-api</artifactId>
		                            <version>3.0</version>
		                        </plugin>
		                        <plugin>
		                            <groupId>org.jvnet.jaxb2_commons</groupId>
		                            <artifactId>jaxb2-default-value</artifactId>
		                            <version>1.1</version>
		                        </plugin>
		                    </plugins>
		                </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <dependencies>
        <dependency>
            <groupId>org.jooq</groupId>
            <artifactId>jooq</artifactId>
        </dependency>
    </dependencies>
</project>