<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2013 The ActFramework Project
  ~
  ~ The ACT framework Project licenses this file to you under the Apache License,
  ~ version 2.0 (the "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at:
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  ~ License for the specific language governing permissions and limitations
  ~ under the License.
  -->
<!--
********************************************
*            version history
********************************************
1.3.0
* #128 Create a mechanism to cache the GET request result
* #163 Introduce `@TemplateContext` annotation
* #164 Split `@Controller` annotation into `@UrlContext` and `@Port` annotation
* #167 `@Global` doesn't work when put behind the interceptor annotation
* #168 Make all scanner favor the setting of `@Env` annotations
* #169 Regex in route not working
* #170 Make it easy to create global template variable
* #171 Add helper javascript library that extends jQuery
* #174 Support profile specific route configuration
* #175 Create better error message when there are error enhancing classes
* #177 Better error reporting when multiple controller action/interceptor methods have the same name
* #178 When handler returns a primitive type the result is not JSON result when `Accept` header require JSON
* #179 Provide an annotation to mark a field or parameter as template variable
* #180 Setting character encoding in response doesn't effect correctly
* #181 Make redirect favor Controller URL context
* #182 Make app able to run `prod` mode from within IDE

1.2.0
* #161 Add an annotation that indicate an injected field is stateless
* #160 Make `ActionContext` an injectable field in `Controller.Util`
* #159 generated pid file not get deleted when app process is killed
* #157 SEO support on routing
* #156 Compile error is not displayed at dev mode
* #153 When `@NotNull` used along with `@DbBind` it shall return 404 if binding failed
* #152 Allow annotation based interceptor class to be registered as global interceptor
* #136 Allow `@With` annotation to be used on specific handler method
* #124 Improve error reporting on "Unknown accept content type"

1.1.2
- #151 Update version of osgl and other dependencies
- #150 Deadlock while app boot up

1.1.1
- #148 Support get process ID on non-unix environment
- #147 Unnecessary synchronization ReflectedHandlerInvoker.checkTemplate
- #146 When db plugin is configured, it uses empty string as service ID
- #144 `EventBus.bind(Object, SimpleEventListener)` shall check if the object type is `EventObject`

1.1.0
- #142 Always generate pid file when app start in prod mode
- #141 Support context URL path
- #140 Cannot use multiple Job annotations on one job method
- #139 allow SimpleEventHandler to be used to handle event happening before app started
- #138 Update FastJson to 1.2.31
- #135 Provides SqlDbService as a base class for all SQL based DbService solution
- upgrade FastJson to 1.2.31

1.0.7
- #70 Make it able to configure the number of network io threads and work threads
- #120 configuration render.json.output_charset.enabled default value shall be false
- #127 qrcode method problem
- #130 Response outputstream not closed
- #131 ZXingResult call applyAfterCommitHandler twice
- #132 "type not recognized: MODEL_TYPE" Error when using a DaoBase subclass as Controller
- #133 It uses undertow deprecated API to construct HttpOpenListener
- #134 Fine tune undertow configurations

1.0.6
- #121 #115 caused issue that failed to add route mapping in certain case
- Update fastjson to 1.2.30

1.0.5
- * remove version range from pom.xml. See https://issues.apache.org/jira/browse/MNG-3092

1.0.4
- #109 It shall display the exception stack trace tab on template exception page
- #110 Using simplified action path in @fullUrl and @url doesn't work in an free template
- #111 Routing failure on `/{path1}/{path2}/{path3}/{id}.html` style URL path
- #112 Missing embedded object content when PropertySpec is specified
- #113 Exception encountered when first field of post JSON body contains the parameter name
- #115 Router: support inner variables inside URL path
- Update RythmEngine to 1.2.0
- Update joda-time to 2.9.9

1.0.3
- #68  Error enhancing render arguments when break the statement into multiple lines
- #84  @fullUrl and @url tag doesn't work when there is no GET request mapping to the action handler method
- #89  session.ttl setting prevent app from start up
- #94  Invalid encoded characters in Error page
- #97  Act controller not return correct @version "v" for save method when MorphiaDao return the value bug
- #99  Update FastJson version to 1.2.29
- #100 when the browser get a json request, Chinese characters are not displayed properly
- #101 IE doesn't support "application/json" content type
- #104 Incorrectly configured routes should not crash hot-reload
- #106 Reloading View manager might break the hot reload process
- #107 Simplify the use of reverse routing API
- #108 Simplify the use of `@url` and `@fullUrl` tag

1.0.2
- Fix #86 It shall allow `null` value for enum type parameter when do the request parameter binding
- Fix #87 DependencyInjectionListener shall register with sub classes of the target class also
- Fix #88 Controller context break with intermediate non-controller class in the hierarchies

1.0.1
- Fix #79 static action handler method cause NPE
- Fix #81 Duplicate route mapping breaks the hot reloading and application state #81

1.0.0
- First formal release

0.7.0
- Validation refactory

0.6.0
- DAO API change: save(Iterable) now returns list of object been saved

0.5.0
- 0.4.0 reserved for TechEmpower benchmark set
- update dependency versions
- A lot of fix to Adaptive Record
- Dependency Injection improvement on auto binding
- Job parameter binding improvement

0.4.0
- Performance tuning: enable direct io thread processing handler

0.3.1
- ActiveRecord -> AdaptiveRecord
- Performance tuning: enable nonblocking IO

0.3.0
- Catch up update to osgl-mvc 0.6.0: Bind annotation now support specifying multiple Binder implementations

0.2.0
- Make act be java 1.6 compatible
- Big refactoring on
 * dependency injection now on Genie
 * param loading mechanism
 * render arg enhancement now support method call with params, and field

0.1.3
- testapp to implement integration test of ActFramework

0.1.2
- misc bug fixes

0.1.1
- baseline version
-->
<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/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>org.actframework</groupId>
  <artifactId>act</artifactId>
  <packaging>jar</packaging>
  <version>1.3.0</version>

  <name>ACT Framework</name>
  <description>The ACT full stack MVC framework</description>
  <url>http://actframework.org/</url>
  <inceptionYear>2014</inceptionYear>

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

  <organization>
    <name>ActFramework</name>
    <url>http://actframework.org</url>
  </organization>

  <scm>
    <connection>scm:git:git@github.com:actframework/actframework.git</connection>
    <developerConnection>scm:git:git@github.com:actframework/actframework.git</developerConnection>
    <url>git@github.com:actframework/actframework.git</url>
  </scm>

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

    <fest-assert.version>1.4</fest-assert.version>
    <junit.version>4.11</junit.version>
    <junit-benchmarks.version>0.7.2</junit-benchmarks.version>
    <mockito-core.version>2.0.2-beta</mockito-core.version>

    <act-asm.version>5.0.1</act-asm.version>
    <cdi-api.version>1.2</cdi-api.version>
    <commons-fileupload.version>1.3.2</commons-fileupload.version>
    <ecj.version>4.6.1</ecj.version>
    <fastjson.version>1.2.31</fastjson.version>
    <bval.version>1.1.2</bval.version>
    <javax.inject.version>1</javax.inject.version>
    <javax.mail.version>1.5.0-b01</javax.mail.version>
    <jfiglet.version>0.0.8</jfiglet.version>
    <jline.version>2.14.3</jline.version>
    <joda-time.version>2.9.9</joda-time.version>
    <okhttp.version>3.7.0</okhttp.version>
    <osgl-tool.version>1.0.3</osgl-tool.version>
    <osgl-genie.version>1.0.2</osgl-genie.version>
    <osgl-mvc.version>1.0.6</osgl-mvc.version>
    <osgl-storage.version>1.2.0</osgl-storage.version>
    <osgl-tool-ext.version>1.0.1</osgl-tool-ext.version>
    <reflectasm.version>1.11.3</reflectasm.version>
    <rythmengine.version>1.2.0</rythmengine.version>
    <validation-api.version>1.1.0.Final</validation-api.version>
    <undertow.version>1.4.12.Final</undertow.version>
    <zxing.javase.version>3.3.0</zxing.javase.version>

  </properties>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <build>
    <finalName>${project.artifactId}-${project.version}</finalName>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
        <includes>
          <include>**/act.scan.list</include>
          <include>**/aaa.authenticate.list</include>
          <include>**/*.version</include>
          <include>**/*.properties</include>
          <include>**/*.xml</include>
          <include>**/*.csv</include>
          <include>**/*.txt</include>
          <include>**/*.css</include>
          <include>**/*.js</include>
          <include>**/*.png</include>
          <include>**/*.jpg</include>
          <include>**/*.gif</include>
          <include>**/*.json</include>
          <include>rythm/**</include>
          <include>*.flf</include>
        </includes>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <version>1.12</version>
        <configuration>
          <verbose>false</verbose>
        </configuration>
        <executions>
          <execution>
            <id>first</id>
            <goals>
              <goal>update-file-header</goal>
            </goals>
            <phase>process-sources</phase>
            <configuration>
              <licenseName>apache_v2</licenseName>
              <roots>
                <root>src/main/java</root>
                <root>src/test</root>
              </roots>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>buildnumber-maven-plugin</artifactId>
        <version>1.4</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>create</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <shortRevisionLength>4</shortRevisionLength>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
          <debug>true</debug>
          <debuglevel>lines,vars,source</debuglevel>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9</version>
        <configuration>
          <stylesheetfile>src/etc/javadoc.css</stylesheetfile>
          <quiet />
          <doclet>ch.raffael.doclets.pegdown.PegdownDoclet</doclet>
          <docletArtifact>
            <groupId>ch.raffael.pegdown-doclet</groupId>
            <artifactId>pegdown-doclet</artifactId>
            <version>1.3</version>
          </docletArtifact>
          <useStandardDocletOptions>true</useStandardDocletOptions>
        </configuration>
        <executions>
          <execution>
            <id>gen-javadoc</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>javadoc</goal>
            </goals>
          </execution>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <dependencies>


    <dependency>
      <groupId>org.easytesting</groupId>
      <artifactId>fest-assert</artifactId>
      <version>${fest-assert.version}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>${junit.version}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>com.carrotsearch</groupId>
      <artifactId>junit-benchmarks</artifactId>
      <version>${junit-benchmarks.version}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>${mockito-core.version}</version>
      <scope>test</scope>
    </dependency>


    <dependency>
      <groupId>javax.inject</groupId>
      <artifactId>javax.inject</artifactId>
      <version>${javax.inject.version}</version>
    </dependency>

    <dependency>
      <groupId>javax.enterprise</groupId>
      <artifactId>cdi-api</artifactId>
      <version>${cdi-api.version}</version>
    </dependency>

    <dependency>
      <groupId>javax.validation</groupId>
      <artifactId>validation-api</artifactId>
      <version>${validation-api.version}</version>
    </dependency>

    <dependency>
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>${javax.mail.version}</version>
    </dependency>

    <dependency>
      <groupId>com.google.zxing</groupId>
      <artifactId>javase</artifactId>
      <version>${zxing.javase.version}</version>
    </dependency>

    <dependency>
      <groupId>com.github.lalyos</groupId>
      <artifactId>jfiglet</artifactId>
      <version>${jfiglet.version}</version>
    </dependency>

    <dependency>
      <groupId>org.actframework</groupId>
      <artifactId>act-asm</artifactId>
      <version>${act-asm.version}</version>
    </dependency>

    <dependency>
      <groupId>org.apache.bval</groupId>
      <artifactId>org.apache.bval.bundle</artifactId>
      <version>${bval.version}</version>
    </dependency>

    <dependency>
      <groupId>com.alibaba</groupId>
      <artifactId>fastjson</artifactId>
      <version>${fastjson.version}</version>
    </dependency>

    <dependency>
      <groupId>io.undertow</groupId>
      <artifactId>undertow-core</artifactId>
      <version>${undertow.version}</version>
    </dependency>

    <dependency>
      <groupId>io.undertow</groupId>
      <artifactId>undertow-websockets-jsr</artifactId>
      <version>${undertow.version}</version>
    </dependency>

    <dependency>
      <groupId>com.squareup.okhttp3</groupId>
      <artifactId>okhttp</artifactId>
      <version>${okhttp.version}</version>
    </dependency>

    <dependency>
      <groupId>jline</groupId>
      <artifactId>jline</artifactId>
      <version>${jline.version}</version>
    </dependency>

    <dependency>
      <groupId>org.eclipse.jdt.core.compiler</groupId>
      <artifactId>ecj</artifactId>
      <version>${ecj.version}</version>
    </dependency>

    <dependency>
      <groupId>com.esotericsoftware</groupId>
      <artifactId>reflectasm</artifactId>
      <version>${reflectasm.version}</version>
    </dependency>

    <dependency>
      <groupId>commons-fileupload</groupId>
      <artifactId>commons-fileupload</artifactId>
      <version>${commons-fileupload.version}</version>
    </dependency>

    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>${joda-time.version}</version>
    </dependency>

    <dependency>
      <groupId>org.osgl</groupId>
      <artifactId>osgl-tool</artifactId>
      <version>${osgl-tool.version}</version>
    </dependency>

    <dependency>
      <groupId>org.osgl</groupId>
      <artifactId>genie</artifactId>
      <version>${osgl-genie.version}</version>
    </dependency>

    <dependency>
      <groupId>org.osgl</groupId>
      <artifactId>osgl-mvc</artifactId>
      <version>${osgl-mvc.version}</version>
    </dependency>

    <dependency>
      <groupId>org.osgl</groupId>
      <artifactId>osgl-storage</artifactId>
      <version>${osgl-storage.version}</version>
    </dependency>

    <dependency>
      <groupId>org.osgl</groupId>
      <artifactId>osgl-tool-ext</artifactId>
      <version>${osgl-tool-ext.version}</version>
    </dependency>

    <dependency>
      <groupId>org.rythmengine</groupId>
      <artifactId>rythm-engine</artifactId>
      <version>${rythmengine.version}</version>
    </dependency>

  </dependencies>

  <profiles>
    <profile>
      <id>dist</id>
      <properties>
        <additionalparam>-Xdoclint:none</additionalparam>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>buildnumber-maven-plugin</artifactId>
            <version>1.4</version>
            <executions>
              <execution>
                <phase>validate</phase>
                <goals>
                  <goal>create</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <shortRevisionLength>4</shortRevisionLength>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.6</version>
            <configuration>
              <descriptors>
                <descriptor>${basedir}/assembly-dist.xml</descriptor>
              </descriptors>
              <tarLongFileMode>gnu</tarLongFileMode>
            </configuration>
            <executions>
              <execution>
                <id>make-assembly</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <descriptors>
                    <descriptor>${basedir}/assembly-dist.xml</descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>com.mycila.maven-license-plugin</groupId>
            <artifactId>maven-license-plugin</artifactId>
            <configuration>
              <header>etc/header.txt</header>
              <headerDefinitions>
                <headerDefinition>etc/headerStyle.xml</headerDefinition>
              </headerDefinitions>
              <excludes>
                <exclude>**/README</exclude>
                <exclude>src/test/resources/**</exclude>
                <exclude>src/main/resources/**</exclude>
              </excludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>
