<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>

    <groupId>nz.co.gregs</groupId>
    <artifactId>dbvolution-eclipse</artifactId>
    <version>3.8.3.2</version>
    <packaging>jar</packaging>

    <name>DBVEclipse</name>
    <description>
        DBVolution is dependent on the Eclipse JDT java parser and AST library.
        This project packages that together with its dependencies for use in DBVolution.
        There is a long running ticket on the eclipse project to provide access to their
        libraries via Maven, but nothing so far has come of that as yet:
        https://bugs.eclipse.org/bugs/show_bug.cgi?id=283745
    	 
        Note: The version number for this project follows that of the org.eclipse.jdt.core module,
        and is of form ${version:org.eclipse.jdt.core}.${buildNumber}.
    </description>
    <url>http://maven.apache.org</url>
    
    <developers>
        <developer>
            <name>Gregory Graham</name>
            <email>gregory@gregs.co.nz</email>
            <roles>
                <role>architect</role>
                <role>developer</role>
                <role>software engineer</role>
            </roles>
            <timezone>+12</timezone>
            <organizationUrl>http://www.gregs.co.nz</organizationUrl>
        </developer>
    </developers>
    


    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>

    <scm>
        <connection>scm:svn:https://svn.code.sf.net/p/dbveclipse/code/tags/dbvolution-eclipse-3.8.3.2</connection>
        <developerConnection>scm:svn:https://svn.code.sf.net/p/dbveclipse/code/tags/dbvolution-eclipse-3.8.3.2</developerConnection>
        <url>https://svn.code.sf.net/p/dbveclipse/code/tags/dbvolution-eclipse-3.8.3.2</url>
    </scm>
    
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <execution>
                        <id>installer-copy-custom</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <target>
                                <macrodef name="unpack">
                                    <attribute name="file" />
                                    <attribute name="dest" default="${project.build.outputDirectory}" />
                                    <sequential>
                                        <unjar src="src/etc/resources/@{file}" dest="@{dest}">
                                            <patternset>
                                                <include name="org/**" />
                                                <!-- <include name="META-INF/**" />-->
                                            </patternset>
                                        </unjar>
                                    </sequential>
                                </macrodef>						  

                                <unpack file="org.eclipse.core.contenttype_3.4.200.v20120523-2004.jar" />
                                <unpack file="org.eclipse.core.jobs_3.5.300.v20120912-155018.jar" />
                                <unpack file="org.eclipse.core.resources_3.8.1.v20121114-124432.jar" />
                                <unpack file="org.eclipse.core.runtime_3.8.0.v20120912-155025.jar" />
                                <unpack file="org.eclipse.equinox.common_3.6.100.v20120522-1841.jar" />
                                <unpack file="org.eclipse.equinox.preferences_3.5.1.v20121031-182809.jar" />
                                <unpack file="org.eclipse.jdt.core_3.8.3.v20130121-145325.jar" />
                                <unpack file="org.eclipse.osgi_3.8.2.v20130124-134944.jar" />
                                <unpack file="org.eclipse.text_3.5.200.v20120523-1310.jar" />
                            </target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    
    <distributionManagement>
        <repository>
            <id>sonatype-nexus-staging</id>
            <name>Nexus Staging Repository</name>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
            <!-- Sonatype JIRA ticket: https://issues.sonatype.org/browse/OSSRH-6397 -->
        </repository>
    </distributionManagement>

</project>
