title: Github as Maven Repository
body: <p>I am attempting to use a private Github repository as a Maven repository, following the instructions on this page: <a href="https://stackoverflow.com/a/14013645/82156">Hosting a Maven Repository in Github</a></p>
  
  <p>I am able to deploy properly, and I can see the artifacts (jars, poms, etc.) deploying to the Github repo.  </p>
  
  <p>What is not working is using this repository to pull dependencies from.  In the log, I can see the pom attempting to be downloaded, but it is failing.  </p>
  
  <pre><code>[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://raw.githubusercontent.com/ORGANIZATION/mvn-repo/master/ with username=randymay, password=***
  Downloading: https://raw.githubusercontent.com/ORGANIZATION/mvn-repo/master/org/hibernate/hibernate/3.2.7.patched/hibernate-3.2.7.patched.pom
  [WARNING] The POM for org.hibernate:hibernate:jar:3.2.7.patched is missing, no dependency information available
  </code></pre>
  
  <p>If I use that URL in a curl request (with Basic Authentication), I am able to download the pom.</p>
  
  <pre><code>curl -v https://randymay:*****@raw.githubusercontent.com/ORGANIZATION/mvn-repo/master/org/hibernate/hibernate/3.2.7.patched/hibernate-3.2.7.patched.pom
  </code></pre>
  
  <p>Further in the log, it is actually attempting to download the jar:</p>
  
  <pre><code>[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://raw.githubusercontent.com/ORGANIZATION/mvn-repo/master/ with username=randymay, password=***
  Downloading: https://raw.githubusercontent.com/ORGANIZATION/mvn-repo/master/org/hibernate/hibernate/3.2.7.patched/hibernate-3.2.7.patched.jar
  Could not find artifact org.hibernate:hibernate:jar:3.2.7.patched in github (https://raw.githubusercontent.com/ORGANIZATION/mvn-repo/master/)
  </code></pre>
  
  <p>Here is the repositories section of my pom.xml:</p>
  
  <pre><code>&lt;repositories&gt;
      &lt;!-- Repositories --&gt;
      &lt;repository&gt;
          &lt;id&gt;github&lt;/id&gt;
          &lt;url&gt;https://raw.githubusercontent.com/ORGANIZATION/mvn-repo/master/&lt;/url&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
          &lt;/snapshots&gt;
          &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
          &lt;/releases&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>Here is my server entry in settings.xml:</p>
  
  <pre><code>&lt;server&gt;
      &lt;id&gt;github&lt;/id&gt;
      &lt;username&gt;randymay&lt;/username&gt;
      &lt;password&gt;*****&lt;/password&gt;
  &lt;/server&gt;
  </code></pre>
  
  <p>Please note that in the referenced article, they used the 'raw.github.com' domain.  I tried that at first, and received the same problem.  When I used curl to connect to that domain, I received a 'moved permanently' error. I am using 'raw.githubusercontent.com' as that is the url that I am able to successfully use curl with.  If this is not correct, please let me know.</p>
  
  <p>Any help would be much appreciated.  Thanks in advance.</p>