<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>com.atlassian.pom</groupId>
        <artifactId>atlassian-closedsource-pom</artifactId>
        <version>26.8</version>
    </parent>

    <groupId>com.atlassian.bonnie</groupId>
    <artifactId>lucene-upgrader</artifactId>
    <version>1.0</version>

    <packaging>jar</packaging>

    <name>lucene-upgrader</name>

    <scm>
        <connection>scm:git:ssh://git@bitbucket.org/jhoarau/lucene-upgrader.git</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org/jhoarau/lucene-upgrader.git</developerConnection>
        <url>https://bitbucket.org/jhoarau/lucene-upgrader</url>
    </scm>

    <dependencies>
        <dependency>
            <groupId>org.apache.lucene</groupId>
            <artifactId>lucene-core</artifactId>
            <version>3.6.2</version>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.8.2</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>1.2.1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <shadedArtifactAttached>true</shadedArtifactAttached>
                            <shadedClassifierName>lucene36</shadedClassifierName>
                            <relocations>
                                <relocation>
                                    <pattern>org.apache.lucene</pattern>
                                    <shadedPattern>com.atlassian.lucene36</shadedPattern>
                                    <excludes>
                                        <!--<exclude>org.apache.lucene.store.Directory</exclude>-->
                                        <!--<exclude>org.apache.lucene.util.Version</exclude>-->
                                    </excludes>
                                </relocation>
                            </relocations>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>


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