Giter Site home page Giter Site logo

spring-portlet-mvc's Introduction

Spring Portlet MVC

A minimal Spring Portlet MVC project using Maven.

  • Java 1.6
  • Portlet 2.0
  • Spring Framework 3.1.1
  • Annotation-based controller configuration

Usage

$ git clone http://github.com/miamidade/spring-portlet-mvc.git
$ cd spring-portlet-mvc
$ mvn package

Deploy

Portlet deployment varies depending on which portal you're using.

If you're using Liferay Portal with Tomcat, just copy the war to the deploy directory.

$ cp target/spring-portlet-mvc.war $LIFERAY_HOME/deploy/

Configuration

Default settings are Java 1.6, Portlet 2.0, and Spring 3.1. All can be configured in pom.xml

<properties>
    <java-version>1.6</java-version>
    <portlet-api.version>2.0</portlet-api.version>
    <servlet-api.version>2.5</servlet-api.version>
    <jsp-api.version>2.1</jsp-api.version>
    <jstl.version>1.2</jstl.version>
    <org.springframework-version>3.1.0.RELEASE</org.springframework-version>
    <org.aspectj-version>1.6.9</org.aspectj-version>
    <org.slf4j-version>1.5.10</org.slf4j-version>
</properties>

Archetype

A Maven archetype, based on this project, is also available.

Add an entry for the archetype in: ~/.m2/archetype-catalog.xml

<archetype>
  <groupId>gov.miamidade</groupId>
  <artifactId>spring-portlet-mvc-archetype</artifactId>
  <version>1.0.0</version>
  <repository>https://raw.github.com/miamidade/maven-repo/master/releases</repository>
  <description>spring-portlet-mvc-archetype</description>
</archetype>

Then run the maven archetype generate command. Follow the prompts to specify the groupId, artifactId, and version for your project.

$ mvn archetype:generate -DarchetypeCatalog=local

License

Copyright 2012 Miami-Dade County

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

spring-portlet-mvc's People

Contributors

julianbonilla avatar

Watchers

James Cloos avatar Peter Svehla avatar  avatar

Forkers

witkai amanurat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.