2010-08-08

Recipe: Play! web project aux fines herbes

Today, in "Top Play! Chef" we are going to cook a delicious web project with Play! and its Maven module, all served with Eclipse.

Before starting, download Play! Framework 1.0.3.2 release and make sure it is in your path. Let's cook!

play new nu # our project is named 'nu'
cd nu
vi .gitignore # we are using git to spicy it a bit
  • lib
  • logs
  • target
  • tmp
  • war
git init
git add .
git commit -a
play install maven # only needed the first time you use it
vi conf/application.conf
  • module.maven=${play.path}/modules/maven-head
play mvn:init
cd /tmp # here it goes: my secret Maven sauce :)
mvn install
rm pom.xml
cd -
mv pom.xml.1 pom.xml # only needed if you already got pom.xml in your dish
mvn clean install

Ready to import with Eclipse and m2eclipse. Profit!

2 comentarios:

  1. Excellente recette, et facile à réaliser...
    Vive play!

    :/)

    ResponderSuprimir
  2. Hola Dario,

    Gràcies per afegir-te a la Penedesfera www.penedesfera.cat, la comunitat de blocaires de l'Anoia, l'Alt i el Baix Penedès i el Garraf.

    T'agrairíem que per a difondre i augmentar la xarxa facis un link del teu bloc cap al portal. A la barra lateral trobaràs logos i consells per millorar la visibilitat a la Penedesfera.

    Recorda que al web trobaràs tot un seguit d'eines per tal de millorar la comunicació i la participació entre els penedesencs a internet.

    Salutacions i felicitats pel bloc!

    Daniel García Peris
    www.danielgarciaperis.cat

    ResponderSuprimir