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 download the source of a Play Framework 2.0 module off of github and modify the source and test it?  Or have you expected it to be in some repository but for one reason or another it wasn’t there?

I have found myself in this situation a few time recently and had to piece this together…

  1. Download the code from github (or where ever) – of course you can fork it, or check it out with git, but you can also just download the ZIP file
  2. Switch to the module directory and run play clean , then play publish-local

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

Just remember that it is in your local repository so you will need to remove it if you want to revert back to a Version from the repository in the internet!

If you have read this far, you may as well follow me on Twitter:

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

  1. An other option is to do a fork and let sbt get the module project directly from your forked repo

    https://github.com/harrah/xsbt/wiki/Full-Configuration#project-relationships

Leave a Reply

Required fields are marked *.