poornerd

my thoughts on programming and other nerdy stuff

How to compile and use a Play Framework 2 module with the source from github

| 1 Comment

Screen Shot 2013-06-19 at 16.30.25Have you ever wanted to down­load the source of a Play Frame­work 2.0 mod­ule off of github and mod­ify the source and test it?  Or have you expected it to be in some repos­i­tory but for one rea­son or another it wasn’t there?

I have found myself in this sit­u­a­tion a few time recently and had to piece this together…

  1. Down­load the code from github (or where ever) — of course you can fork it, or check it out with git, but you can also just down­load the ZIP file
  2. Switch to the mod­ule direc­tory and run play clean , then play publish-local

Once you have done this, it is in you local repos­i­tory, so you can remove the repos­i­tory from your Build.scala if you added one.

Just remem­ber that it is in your local repos­i­tory so you will need to remove it if you want to revert back to a Ver­sion from the repos­i­tory in the internet!

If you have read this far, you may as well fol­low me on Twit­ter:

Author: poornerd

Tech­nol­o­gist, Entre­pre­neur, Vision­ary, Pro­gram­mer :: Grad­u­ated from USC (Uni­ver­sity of South­ern Cal­i­for­nia) with a degree in Com­puter Sci­ence. After 10+ years of free­lance con­sult­ing and pro­gram­ming, he co-founded Site­Force AG eBusi­ness Solu­tions in 1999 in Munich (München), Ger­many.

One Comment

Leave a Reply

Required fields are marked *.