---
title: "How to compile and use a Play Framework 2 module with the source from github"
date: 2013-06-19T15:02:07+00:00
author: "poornerd"
tags: ["howto", "module"]
canonical: https://www.poornerd.com/2013/06/19/how-to-compile-and-use-a-play-framework-2-module-with-the-source-from-github/
source: Raw Markdown twin of the HTML article; content is the original source.
---
[<img class="alignleft size-full wp-image-344" alt="Screen Shot 2013-06-19 at 16.30.25" src="https://www.poornerd.com/wp-content/uploads/2013/06/Screen-Shot-2013-06-19-at-16.30.25.png" width="195" height="180" />](https://www.poornerd.com/wp-content/uploads/2013/06/Screen-Shot-2013-06-19-at-16.30.25.png)Have 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&#8217;t there?

I have found myself in this situation a few time recently and had to piece this together&#8230;

  1. Download the code from github (or where ever) &#8211; 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!**
