<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2013 The OSGL MVC Project
  ~
  ~ The OSGL MVC 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.
  -->
<!-- history
1.1.0
- #7 Add WsAction
- Catch up to osgl-http 1.0.5

1.0.7
- Catch up to osgl-http 1.0.4

1.0.6
- #6 Localized error message not translated

1.0.5
- update osgl-http dependency to 1.0.3

1.0.4
- #5 ensure response is always commited

1.0.3
- take out version range. See https://issues.apache.org/jira/browse/MNG-3092
- Allow `@With` to be used on method

1.0.2
- #4 IE does not support application/json content

1.0.1
- Fix #3 Make it possible to output charset encoding for JSON result

1.0.0
- baseline from 0.9

0.9.0-SNAPSHOT
- add PatchAction annotation
- allow RenderContent sub class to pass H.Status parameter into constructor
- Deprecate NoResult, add NoContent to replace it

0.8.0-SNAPSHOT
- update to tool 0.10.0
- update to http 0.5.0

0.7.0-SNAPSHOT
- update osgl-http to 0.4.0-SNAPSHOT

0.6.1-SNAPSHOT
- update osgl-http to 0.3.4-SNAPSHOT

0.6.0-SNAPSHOT
- Bind annotation now accept an array of Binder implementations
- Add ActionUtil annotation
- Support for localized Error Result message
- Improve result throw/catch flow performance by introducing general static result mechanism

0.5.1-SNAPSHOT
- Update osgl-http from 0.3.0-SNAPSHOT to 0.3.1-SNAPSHOT

0.5.0-SNAPSHOT
- Bind interface change: accept bean as session cached data
- Add SessionFree annotation

0.4.2-SNAPSHOT
- Add Created and Accepted result
- Add ResponseStatus annotation

0.4.1-SNAPSHOT
- Add MethodNotAllowed and NotImplemented Result type

0.4.0-SNAPSHOT
- update osgl-tool to 0.8

0.3.3-SNAPSHOT
- update osgl-tool to 0.7.1-SNAPSHOT

0.3.2-SNAPSHOT
- Fix Unauthorized result issue
- Add public access method to RenderContent for testing purpose
- Allow @Action annotation to be used without value specified, in which case
  it is used as a marker of method subject to bytecode enhancement by the
  underline framework

0.3.1-SNAPSHOT
- fix RenderText constructor treat arg as arg array issue

0.3.0-SNAPSHOT
- Binder now expose parameter from a ParameterValueProvider interface instead of H.Request
- Update Action annotations signature to allow an action method be mapped to multiple paths at the same time

0.2.4-SNAPSHOT
- Update ogl-http version
- ErrorResult constructor now is public
- add INSTANCE to BadRequest

0.2.3-SNAPSHOT
- Update osgl-tool and osgl-http version

0.2.2-SNAPSHOT
- Add pass accept parameter to RenderText

0.2.1-SNAPSHOT
- Add default message to Error Results

0.2-SNAPSHOT
- upgrade to osgl-tool 0.4-SNAPSHOT
- Annotations now moved to annotatons package

0.1-SNAPSHOT
- base verion when history log started
-->
<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.osgl</groupId>
  <artifactId>osgl-mvc</artifactId>
  <packaging>jar</packaging>
  <version>1.1.0</version>

  <name>OSGL MVC</name>
  <description>Utilities for MVC</description>
  <url>http://osgl-mvc.osgl.org/</url>

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

  <scm>
    <connection>scm:git:git://github.com/osglworks/java-mvc.git</connection>
    <developerConnection>scm:git:git@github.com:osglworks/java-mvc.git</developerConnection>
    <url>git://github.com/osglworks/java-mvc.git</url>
  </scm>

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

    <maven.test.skip>false</maven.test.skip>
    <osgl-http.version>1.0.5</osgl-http.version>
    <osgl-storage.version>1.2.0</osgl-storage.version>
    <servlet.version>2.5</servlet.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>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>

    <pluginManagement>
      <plugins>
        <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>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
          <version>2.1.2</version>
          <configuration>
            <includePom>true</includePom>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <dependencies>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
    </dependency>

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

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

    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>${servlet.version}</version>
      <scope>provided</scope>
    </dependency>

  </dependencies>

  <profiles>
    <profile>
      <id>dist</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.2</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-javadoc-plugin</artifactId>
            <version>2.9</version>
            <configuration>
              <stylesheetfile>src/etc/javadoc.css</stylesheetfile>
              <quiet />
            </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>
          <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>src/etc/header.txt</header>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>
