<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.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>

    <groupId>com.github.sogyf</groupId>
    <artifactId>goja</artifactId>
    <version>0.1.2</version>
    <packaging>pom</packaging>

    <name>goja</name>
    <url>http://sogyf.github.io</url>
    <developers>
        <developer>
            <id>sogyf</id>
            <name>SogYF Yang</name>
            <email>poplar1123@gmail.com</email>
            <organization>Sog2Y</organization>
            <roles>
                <role>Project Leader</role>
            </roles>
            <timezone>+8</timezone>
        </developer>
    </developers>
    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
        </license>
    </licenses>
    <scm>
        <url>https://github.com/GojaFramework</url>
        <connection>scm:git:git@github.com:GojaFramework/goja.git</connection>
        <developerConnection>scm:git:git@github.com:GojaFramework/goja.git</developerConnection>
        <tag>goja-0.1.2</tag>
    </scm>

    <issueManagement>
        <system>Github</system>
        <url>https://github.com/GojaFramework/goja/issues</url>
    </issueManagement>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <java.version>1.6</java.version>
        <!-- the log -->
        <logback-core.version>1.1.2</logback-core.version>
        <slf4j-api.version>1.7.7</slf4j-api.version>
        <!--the view render -->
        <freemarker.version>2.3.21</freemarker.version>
        <!-- utils -->
        <commons-beanutils.version>1.9.2</commons-beanutils.version>
        <commons-collections.version>3.2.1</commons-collections.version>
        <commons-pool2.version>2.2</commons-pool2.version>
        <commons-codec.version>1.9</commons-codec.version>
        <commons-lang3.version>3.3.2</commons-lang3.version>
        <commons-io.version>2.4</commons-io.version>
        <commons-email.version>1.3.3</commons-email.version>
        <commons-digester.version>2.1</commons-digester.version>
        <commons-jexl.version>2.1.1</commons-jexl.version>
        <httpclient.version>4.3.6</httpclient.version>
        <httpcore.version>4.3.3</httpcore.version>
        <!--the core util. -->
        <guava.version>18.0</guava.version>
        <fastjson.version>1.2.2</fastjson.version>
        <!-- the date time util. -->
        <joda-time.version>2.6</joda-time.version>
        <dom4j.version>1.6.1</dom4j.version>
        <activation.version>1.1</activation.version>

        <jsoup.version>1.8.1</jsoup.version>

        <zxing.version>3.1.0</zxing.version>
        <xstream.version>1.4.7</xstream.version>

        <!-- the common service -->
        <mail.version>1.4.7</mail.version>
        <quartz.version>2.2.1</quartz.version>
        <thumbnailator.version>0.4.8</thumbnailator.version>
        <!--Lucene-->
        <lucene.version>4.9.0</lucene.version>

        <!-- the cache and database -->
        <ehcache-core.version>2.6.9</ehcache-core.version>
        <!-- The database connection poll util. -->
        <druid.version>1.0.11</druid.version>
        <!-- the database jdbc driver. -->
        <mysql-connector-java.version>5.1.34</mysql-connector-java.version>
        <postgresql.version>9.3-1102-jdbc41</postgresql.version>
        <h2.version>1.3.175</h2.version>
        <!-- test -->
        <junit.version>4.11</junit.version>
        <hamcrest.version>1.3</hamcrest.version>
        <!-- servlet and shiro -->
        <javax.servlet-api.version>3.0.1</javax.servlet-api.version>
        <shiro.version>1.2.3</shiro.version>
        <!-- nosql -->
        <mongo-java-driver.version>2.12.3</mongo-java-driver.version>
        <morphia.version>0.108</morphia.version>
        <jedis.version>2.5.2</jedis.version>

        <ant.version>1.9.3</ant.version>
        <!--the office -->
        <poi.version>3.10.1</poi.version>
        <jxls-core.version>1.0.5</jxls-core.version>
        <jetty.version>9.2.5.v20141112</jetty.version>
    </properties>


    <modules>
        <module>goja-jfinal</module>
        <module>goja-core</module>
        <module>goja-mvt</module>
        <module>goja-lucene</module>
        <module>goja-qrcode</module>
        <module>goja-wxchat</module>
        <module>goja-test</module>
    </modules>

    <build>
        <finalName>goja</finalName>

        <plugins>

            <!-- compiler插件, 设定JDK版本 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <showWarnings>true</showWarnings>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.1</version>
                <configuration>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                </configuration>
            </plugin>
            <!-- resource插件 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
            </plugin>
            <!-- 增加更多的Source和Test Source目录插件 -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.8</version>
            </plugin>

            <!-- cobertura 测试覆盖率统计插插件 -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.6</version>
            </plugin>
            <!-- clean插件 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-clean-plugin</artifactId>
                <version>2.5</version>
            </plugin>

            <!-- install插件 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.5.1</version>
            </plugin>
            <!-- dependency相关插件 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.8</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>versions-maven-plugin</artifactId>
                <version>2.1</version>
            </plugin>

            <!-- ant插件 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
            </plugin>

            <!-- exec java 插件 -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.2.1</version>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.4</version>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.2.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <excludeResources>true</excludeResources>
                    <useDefaultExcludes>true</useDefaultExcludes>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.1</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <executions>
                    <execution>
                        <id>bundle-sources</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <maxmemory>512</maxmemory>
                    <encoding>UTF-8</encoding>
                    <show>protected</show>
                    <notree>true</notree>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <repositories>
        <repository>
            <id>osc</id>
            <name>os-china</name>
            <url>http://maven.oschina.net/content/groups/public/</url>
        </repository>
    </repositories>
</project>
