<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>coffeecoders.de &#187; daily tasks</title>
	<atom:link href="http://coffeecoders.de/tag/daily-tasks/feed/" rel="self" type="application/rss+xml" />
	<link>http://coffeecoders.de</link>
	<description>professional devs at work</description>
	<lastBuildDate>Tue, 13 Sep 2011 16:34:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using GitHub as a personal maven repository</title>
		<link>http://coffeecoders.de/2011/09/using-github-as-a-personal-maven-repository/</link>
		<comments>http://coffeecoders.de/2011/09/using-github-as-a-personal-maven-repository/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 01:24:53 +0000</pubDate>
		<dc:creator>stevie</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[daily tasks]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=294</guid>
		<description><![CDATA[This article will show you how to setup a public GitHub repository as a personal maven repository. Following these steps you will be able to serve any artifact by just added a few lines into your pom.xml. <a href="http://coffeecoders.de/2011/09/using-github-as-a-personal-maven-repository/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sometime you are in need for a maven repository accessible from the net which is under your control. Reasons might be:</p>
<ul>
<li>a 3rd-party lib is not on Maven central or the desired version is missing</li>
<li>you built modules/libraries which will be included in your other projects</li>
<li>&#8230;</li>
</ul>
<p>With the following steps you will be able to serve <em>any </em>artifact from a public GitHub repository by just added a few lines into your <strong>pom.xml</strong>. I personally wasted quite an amount of time on this topic so I guess I&#8217;ll save it here &#8211; for you <strong>and</strong> me.</p>
<p><span id="more-294"></span>Ready? Let&#8217;s start!</p>
<p>In our example we&#8217;ll use our GitHub repository to server a file which is not available at Maven Central as the time of writing.</p>
<h2>1. Creating the GitHub repository</h2>
<p>Follow <a title="Create a public repository on GitHub" href="https://github.com/repositories/new" target="_blank">this link</a> and create a new repository named <code>mavenrepo</code>.</p>
<p>You could as well choose a different name but then you will have to change every occurance in the following steps. Your call.</p>
<h2>2. Creating the content for this repository</h2>
<p>Change into the folder where the new repository will be lying on your disk. From here you will be able to push changes into your remote repository and thus update your artifacts.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p294code1'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2941"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p294code1"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">cd</span> dev
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">mkdir</span> mavenrepo
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">cd</span> mavenrepo
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">git</span> init
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">git</span> remote add origin <span style="color: #c20cb9; font-weight: bold;">git</span><span style="color: #000000; font-weight: bold;">@</span>github.com:YOURUSERNAME<span style="color: #000000; font-weight: bold;">/</span>mavenrepo.git
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">mkdir</span> releases snapshots
<span style="color: #666666; font-style: italic;">#empty dirs can't be added to git</span>
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">touch</span> releases<span style="color: #000000; font-weight: bold;">/</span>README
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">touch</span> snapshots<span style="color: #000000; font-weight: bold;">/</span>README
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">git</span> add .
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">git</span> commit <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Initial setup&quot;</span>
<span style="color: #666666; font-style: italic;">#update the GitHub repo just for kicks</span>
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">git</span> push origin master</pre></td></tr></table></div>

<p>Cool, your local maven repository is waiting for it&#8217;s first artifact.</p>
<h2>3. Creating the first artifact</h2>
<p>Now you have to change to the location of your artifact-to-be.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p294code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2942"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code" id="p294code2"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>downloads<span style="color: #000000; font-weight: bold;">/</span>GoogleAnalyticsAndroid_1.3.1
~<span style="color: #000000; font-weight: bold;">/</span>downloads<span style="color: #000000; font-weight: bold;">/</span>GoogleAnalyticsAndroid_1.3.1<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">ls</span>
libGoogleAnalytics.jar sample ReadMe.txt
<span style="color: #666666; font-style: italic;">#explanation below</span>
~<span style="color: #000000; font-weight: bold;">/</span>downloads<span style="color: #000000; font-weight: bold;">/</span>GoogleAnalyticsAndroid_1.3.1<span style="color: #000000; font-weight: bold;">&gt;</span>mvn deploy:deploy-file <span style="color: #660033;">-DgroupId</span>=com.google.android.apps <span style="color: #660033;">-DartifactId</span>=analytics <span style="color: #660033;">-Dversion</span>=1.3.1 <span style="color: #660033;">-Dpackaging</span>=jar <span style="color: #660033;">-Dfile</span>=<span style="color: #ff0000;">&quot;libGoogleAnalytics.jar&quot;</span> <span style="color: #660033;">-Durl</span>=<span style="color: #c20cb9; font-weight: bold;">file</span>:..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">/</span>releases
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> Scanning <span style="color: #000000; font-weight: bold;">for</span> projects...
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">------------------------------------------------------------------------</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> Building Maven Stub Project <span style="color: #7a0874; font-weight: bold;">&#40;</span>No POM<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">------------------------------------------------------------------------</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">---</span> maven-deploy-plugin:<span style="color: #000000;">2.5</span>:deploy-file <span style="color: #7a0874; font-weight: bold;">&#40;</span>default-cli<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">@</span> standalone-pom <span style="color: #660033;">---</span>
Uploading: <span style="color: #c20cb9; font-weight: bold;">file</span>:..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>com<span style="color: #000000; font-weight: bold;">/</span>google<span style="color: #000000; font-weight: bold;">/</span>android<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>analytics<span style="color: #000000; font-weight: bold;">/</span>1.3.1<span style="color: #000000; font-weight: bold;">/</span>analytics-1.3.1.jar
Uploaded: <span style="color: #c20cb9; font-weight: bold;">file</span>:..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>com<span style="color: #000000; font-weight: bold;">/</span>google<span style="color: #000000; font-weight: bold;">/</span>android<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>analytics<span style="color: #000000; font-weight: bold;">/</span>1.3.1<span style="color: #000000; font-weight: bold;">/</span>analytics-1.3.1.jar <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">43</span> KB at <span style="color: #000000;">751.5</span> KB<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Uploading: <span style="color: #c20cb9; font-weight: bold;">file</span>:..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>com<span style="color: #000000; font-weight: bold;">/</span>google<span style="color: #000000; font-weight: bold;">/</span>android<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>analytics<span style="color: #000000; font-weight: bold;">/</span>1.3.1<span style="color: #000000; font-weight: bold;">/</span>analytics-1.3.1.pom
Uploaded: <span style="color: #c20cb9; font-weight: bold;">file</span>:..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>com<span style="color: #000000; font-weight: bold;">/</span>google<span style="color: #000000; font-weight: bold;">/</span>android<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>analytics<span style="color: #000000; font-weight: bold;">/</span>1.3.1<span style="color: #000000; font-weight: bold;">/</span>analytics-1.3.1.pom <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">400</span> B at <span style="color: #000000;">24.4</span> KB<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Downloading: <span style="color: #c20cb9; font-weight: bold;">file</span>:..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>com<span style="color: #000000; font-weight: bold;">/</span>google<span style="color: #000000; font-weight: bold;">/</span>android<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>analytics<span style="color: #000000; font-weight: bold;">/</span>maven-metadata.xml
Uploading: <span style="color: #c20cb9; font-weight: bold;">file</span>:..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>com<span style="color: #000000; font-weight: bold;">/</span>google<span style="color: #000000; font-weight: bold;">/</span>android<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>analytics<span style="color: #000000; font-weight: bold;">/</span>maven-metadata.xml
Uploaded: <span style="color: #c20cb9; font-weight: bold;">file</span>:..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>com<span style="color: #000000; font-weight: bold;">/</span>google<span style="color: #000000; font-weight: bold;">/</span>android<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>analytics<span style="color: #000000; font-weight: bold;">/</span>maven-metadata.xml <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">307</span> B at <span style="color: #000000;">23.1</span> KB<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">------------------------------------------------------------------------</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> BUILD SUCCESS
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">------------------------------------------------------------------------</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> Total <span style="color: #000000; font-weight: bold;">time</span>: 1.121s
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> Finished at: Sun Sep <span style="color: #000000;">11</span> 01:05:09 CEST <span style="color: #000000;">2011</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> Final Memory: 3M<span style="color: #000000; font-weight: bold;">/</span>77M
<span style="color: #7a0874; font-weight: bold;">&#91;</span>INFO<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">------------------------------------------------------------------------</span></pre></td></tr></table></div>

<p>That&#8217;s (almost) it. Wait, what? No worries, I will explain the whole line for you so you can easily adjust it to your needs.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p294code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2943"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p294code3"><pre class="bash" style="font-family:monospace;">mvn deploy:deploy-file 
		<span style="color: #666666; font-style: italic;">#this specifies the artificat and will (=should) match with your dependency-declaration in pom.xml	</span>
		<span style="color: #660033;">-DgroupId</span>=com.google.android.apps <span style="color: #660033;">-DartifactId</span>=analytics <span style="color: #660033;">-Dversion</span>=1.3.1 \ 
		<span style="color: #660033;">-Dpackaging</span>=jar \ <span style="color: #666666; font-style: italic;">#deploy as jar </span>
		<span style="color: #660033;">-Dfile</span>=<span style="color: #ff0000;">&quot;libGoogleAnalytics.jar&quot;</span> \ <span style="color: #666666; font-style: italic;">#source file to deploy</span>
		<span style="color: #660033;">-Durl</span>=<span style="color: #c20cb9; font-weight: bold;">file</span>:..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">/</span>releases <span style="color: #666666; font-style: italic;">#target folder to deploy</span></pre></td></tr></table></div>

<p>For 3rd-party-libraries which aren&#8217;t subject to change (i.e. no snapshots) use the releases folder for your own snapshots use &#8211; you guessed it &#8211; the snapshots folder.</p>
<p>Your maven repository is almost ready to serve.</p>
<h2>4. Online artifacts!</h2>
<p>Let&#8217;s change back to the maven repository. To make everything world accessible we have to commit and push the files.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p294code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2944"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p294code4"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">/</span>downloads<span style="color: #000000; font-weight: bold;">/</span>GoogleAnalyticsAndroid_1.3.1<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo
<span style="color: #666666; font-style: italic;"># add everything which has changed or is new</span>
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">git</span> add .
<span style="color: #666666; font-style: italic;"># commit everything into the git-repo</span>
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">git</span> commit <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Add Google Analytics library 1.3.1&quot;</span>
<span style="color: #666666; font-style: italic;"># push it to GitHub</span>
~<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mavenrepo<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">git</span> push origin master</pre></td></tr></table></div>

<p>So cool,eh? You can jump online to your GitHub repository to check if they&#8217;re there as expected. Aaalmost done.</p>
<h2>5. Using your new maven repository</h2>
<p>There are two ways to make maven aware of new repositories besides the pre-configured one. Either in <code>~/.m2/repositories/settings.xml</code> which would be global for every repository but just for your user account. Or you can add the information into the <code>pom.xml</code> of your project. Since we want all developers for this project to easily use the new repository we will use the later.</p>
<p>Open your pom.xml and add the following lines for our example. Of course you have to edit the group-id, artifact and version according to your lib.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://coffeecoders.de/wp-content/plugins/wp-codebox/wp-codebox.php?p=294&amp;download=pom.xml">pom.xml</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2945"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code" id="p294code5"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;project</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://maven.apache.org/POM/4.0.0&quot;</span> <span style="color: #000066;">xmlns:xsi</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span> <span style="color: #000066;">xsi:schemaLocation</span>=<span style="color: #ff0000;">&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;modelversion<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>4.0.0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/modelversion<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #808080; font-style: italic;">&lt;!-- ... more project definition --&gt;</span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dependencies<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.google.android.apps<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>analytics<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1.3.1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #808080; font-style: italic;">&lt;!-- more dependecies... --&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dependencies<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- build config etc. ... --&gt;</span>
&nbsp;
    	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>YOURUSERNAME-snapshots<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>https://raw.github.com/YOURUSERNAME/mavenrepo/master/snapshots<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;updatepolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>always<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/updatepolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;checksumpolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>warn<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/checksumpolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;updatepolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>never<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/updatepolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;checksumpolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>fail<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/checksumpolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>YOURUSERNAME-releases<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;updatepolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>always<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/updatepolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;checksumpolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>fail<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/checksumpolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;updatepolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>always<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/updatepolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;checksumpolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>warn<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/checksumpolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>https://raw.github.com/YOURUSERNAME/mavenrepo/master/releases<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/project<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>That&#8217;s it! </p>
<h2>6. Final: See it in action</h2>
<p>Now we can start up maven to make use of the new configuration.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p294code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2946"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p294code6"><pre class="bash" style="font-family:monospace;">mvn clean package</pre></td></tr></table></div>

<p>If everything went well you should see &#8220;BUILD SUCCESS&#8221; and if you scroll up a bit you should see some Download-lines regarding your new repository. Maven will now try to load every new dependency from your GitHub-maven-repo so you can always decide if you want to host it yourself for some reason.</p>
<p>If you encountered errors along the way please let me know. This post is the result of several hours of trail and error and you should be fine following it. But of course it&#8217;s always possible you&#8217;ll run into problems. </p>
<p><strong>Update:</strong>I noticed that I used the wrong group-id for my example. Normally it doesn&#8217;t hurt but it confuses everyone and so to be perfect added &#8220;.apps&#8221; to every occurance of this package-name.</p>
 <p><a href="http://coffeecoders.de/?flattrss_redirect&amp;id=294&amp;md5=60e7748ea983eddf8145a77b385f36ab" title="Flattr" target="_blank"><img src="http://coffeecoders.de/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2011/09/using-github-as-a-personal-maven-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make your bash-prompt git-aware</title>
		<link>http://coffeecoders.de/2011/09/make-your-bash-prompt-git-aware/</link>
		<comments>http://coffeecoders.de/2011/09/make-your-bash-prompt-git-aware/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 16:41:46 +0000</pubDate>
		<dc:creator>stevie</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[daily tasks]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=284</guid>
		<description><![CDATA[This post shows you how to make git status-info show up in your bash prompt. So you will always know which status the current git-repo has and which branch you're on. Sweet! <a href="http://coffeecoders.de/2011/09/make-your-bash-prompt-git-aware/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today a friend of mine shared a very nice piece of configuration for using git with me.</p>
<p><code>stevie@box:~/dev/myproject/common [<span style="color: #3333FF;">master</span>]$<br />
</code></p>
<p>If you add the following lines into your <strong>~/.bashrc</strong> you&#8217;ll always know which branch you are on.</p>
<p>Additionally you&#8217;ll be informed if the remote branch (if any) has been changed by adding &#8220;*&#8221; to the branches name. <em>How cool is that?</em></p>
<p><code>stevie@box:~/dev/myproject/common [<span style="color: #3333FF;">master *</span>]$<br />
</code></p>
<p>Here are the lines to add which will do the magic for you:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p284code7'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2847"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p284code7"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">GIT_PS1_SHOWDIRTYSTATE</span>=<span style="color: #c20cb9; font-weight: bold;">true</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">GIT_PS1_SHOWUNTRACKEDFILES</span>=<span style="color: #c20cb9; font-weight: bold;">true</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">GIT_PS1_SHOWSTASHSTATE</span>=<span style="color: #c20cb9; font-weight: bold;">true</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${PS1::$((${#PS1}</span>-3))}<span style="color: #000099; font-weight: bold;">\$</span>(__git_ps1 ' [\[\e[34;1m\]%s\[\e[0m\]]')<span style="color: #000099; font-weight: bold;">\$</span> &quot;</span></pre></td></tr></table></div>

 <p><a href="http://coffeecoders.de/?flattrss_redirect&amp;id=284&amp;md5=dfcd0a8b28c63f41407c9af93b8555b1" title="Flattr" target="_blank"><img src="http://coffeecoders.de/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2011/09/make-your-bash-prompt-git-aware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mouse-less Eclipse</title>
		<link>http://coffeecoders.de/2009/08/mouse-less-eclipse/</link>
		<comments>http://coffeecoders.de/2009/08/mouse-less-eclipse/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 16:31:12 +0000</pubDate>
		<dc:creator>stevie</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[cheat sheet]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[daily tasks]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=238</guid>
		<description><![CDATA[In his blog Andy Maleh posted a number of brilliant keyboard-shortcuts to ease the use of eclipse and greatly improve your programming experience. I just love it. Thank you so much! Link: Andy Maleh &#8211; Code Painter: Mouse-less Eclipse]]></description>
			<content:encoded><![CDATA[<p>In his blog Andy Maleh posted a number of brilliant keyboard-shortcuts to ease the use of eclipse and greatly improve your programming experience.</p>
<p>I just love it. Thank you so much!</p>
<p>Link: <a href="http://andymaleh.blogspot.com/2009/07/mouse-less-eclipse.html">Andy Maleh &#8211; Code Painter: Mouse-less Eclipse</a></p>
 <p><a href="http://coffeecoders.de/?flattrss_redirect&amp;id=238&amp;md5=0869995eacbddbc5c9afeaa9bb74c262" title="Flattr" target="_blank"><img src="http://coffeecoders.de/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2009/08/mouse-less-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Checkout a project from svn &#8211; the right way</title>
		<link>http://coffeecoders.de/2009/02/checkout-a-project-from-svn-the-right-way/</link>
		<comments>http://coffeecoders.de/2009/02/checkout-a-project-from-svn-the-right-way/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 02:42:39 +0000</pubDate>
		<dc:creator>stevie</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[daily tasks]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=147</guid>
		<description><![CDATA[Do you use eclipse? Do you use svn? Did you ever checked out a new project into your workspace? If you could answer all these questions with a &#8220;yes&#8221; you might have noticed afterwards that you can&#8217;t do anything with &#8230; <a href="http://coffeecoders.de/2009/02/checkout-a-project-from-svn-the-right-way/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Do you use eclipse? Do you use svn? Did you ever checked out a new project into your workspace?</p>
<p>If you could answer all these questions with a &#8220;yes&#8221; you might have noticed afterwards that you can&#8217;t do anything with this project because eclipse created it as &#8220;general project&#8221;, meaning no java, php or anything other specialized nature. This results in certain functions like <em>Run as Java application</em> not being accessable.</p>
<p>There are several solutions to that problem &#8211; but most of them are really ugly, imho. But since I don&#8217;t want to keep anything from you I will explain these methods too. So let&#8217;s get started&#8230;</p>
<p><span id="more-147"></span></p>
<h2>The wrong way</h2>
<p>The intuitive way you propably would start the task &#8220;to checkout a new project from SVN&#8221; might be &#8220;File -&gt; New -&gt; Project -&gt; Others&#8230;-&gt; Checkout a project from SVN&#8221;. In the result you&#8217;d have the previously mentioned &#8220;general project&#8221; which is pretty useless.</p>
<h3>solution #1: edit .project</h3>
<p>After the creation of the new project you quit eclipse, browse to the project folder in your file system and open the .project-file in a editor.</p>
<p>You&#8217;ll find these lines:</p>
<blockquote><p>&lt;natures&gt;<br />
&lt;/natures&gt;</p></blockquote>
<p>Change it to match:</p>
<blockquote><p>&lt;natures&gt;<br />
&lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt;<br />
&lt;/natures&gt;</p></blockquote>
<p>Save the file and fire up eclipse again, you will have your svn-project recognized as Java-project. This solution might be quick but the drawbacks are the quit/edit/start-sequence outside of eclipse and the necessity to find the right &#8220;nature&#8221; for your svn project.</p>
<h3>solution #2: delete and recreate</h3>
<p>After having completed the checkout you will delete your project. Yes, you read right. (I told you these methods are ugly! <img src='http://coffeecoders.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ) But when deleting be sure you <strong>don&#8217;t check </strong>the box for physically deletion of the files (so they&#8217;ll remain inside your workspace).</p>
<p>When you finished deleting the project you create a new project for the kind of project the svn project should represent (i.e. java, php etc.). While in the creation wizard be sure you select the same folder where the svn project has been checked out into.</p>
<p>The newly created project will have the right project type and will contain all files from the repository. Sometimes it is necessary to refresh the workspace (windows: hit F5 on the project).</p>
<p>Although this method also results in having the right data with the correct project type it has a bad taste jumping through these hoops in order to finish a simple task like that.</p>
<p>Since I wasn&#8217;t pleased with all those solutions I kept on looking. Finally I found&#8230;</p>
<h2>The right way</h2>
<p>Besides the following solution is the one most hoopless (no pun intended) the claim &#8220;right&#8221; is justified because it seems that this is the way the eclipse devs want us to check out a project.</p>
<p>In order to accomplish the task at hand you have to</p>
<ul>
<li>open the <em>SVN Exploring</em>-perspective<br />
( Windows -&gt; Open Perspective -&gt; Other&#8230; -&gt; SVN Exploring)</li>
<li>create a new repository location or select the desired source</li>
<li>browse to the parent folder of your new project (e.g. trunk)</li>
<li>right click on the folder, choose <em>Checkout&#8230;</em></li>
<li>in the new dialogue you will have the chance to select <em>Check out as a project configured using the New Project Wizard</em>, take that chance, fill out the rest as you please and hit <em>Finish</em></li>
<li>in the new project wizard which will open next you can choose your desired project type (e.g. java) and set up everything like you would in a normal project (e.g. compliler compliance level, JRE, related projects etc.)</li>
<li>after hitting this finish button you will notice that the svn is queried to retrieve the code</li>
<li>and you&#8217;re done!</li>
</ul>
<p>In my opinion this way is the most hazzle-free way to check out a new project though I love to see it the other way around too (New-&gt;Project-&gt;New Project from SVN -&gt; yada yada yada -&gt; &#8220;Please select a project type or press OK to let it remain a generel project.&#8221;). Until this is implemented I will go with the second best solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2009/02/checkout-a-project-from-svn-the-right-way/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Subversion and TortoiseSVN tips and tricks</title>
		<link>http://coffeecoders.de/2009/02/subversion-and-tortoisesvn-tips-and-tricks/</link>
		<comments>http://coffeecoders.de/2009/02/subversion-and-tortoisesvn-tips-and-tricks/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 01:18:29 +0000</pubDate>
		<dc:creator>stevie</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[daily tasks]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=145</guid>
		<description><![CDATA[David Vidmar has collected a very interesting list of commands, tricks and tips which will certainly help you dealing with very common problems using TortoiseSVN or any other subversion client. Have a good look a the compiled list and be &#8230; <a href="http://coffeecoders.de/2009/02/subversion-and-tortoisesvn-tips-and-tricks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span class="small"> David Vidmar has collected a very interesting list of commands, tricks and tips which will certainly help you dealing with very common problems using <a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a> or any other subversion client.</span></p>
<p><span class="small">Have a good look a the compiled list and be sure to bookmark it for the next crisis with TSVN&#8230;<br />
</span></p>
<p>Link: <a href="http://vidmar.net/weblog/archive/2007/12/11/subversion-and-tortoisesvn-tips-and-tricks.aspx">Subversion and TortoiseSVN tips and tricks</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2009/02/subversion-and-tortoisesvn-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change the repository location in subversion</title>
		<link>http://coffeecoders.de/2009/02/change-the-repository-location-in-subversion/</link>
		<comments>http://coffeecoders.de/2009/02/change-the-repository-location-in-subversion/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 10:23:34 +0000</pubDate>
		<dc:creator>Daff</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[daily tasks]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=124</guid>
		<description><![CDATA[I recently moved a subversion repository to another location and had to update all the Eclipse projects to the new URL. The clumsy way would be to checkout the whole project again from the new repository URL but there is &#8230; <a href="http://coffeecoders.de/2009/02/change-the-repository-location-in-subversion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently moved a subversion repository to another location and had to update all the Eclipse projects to the new URL. The clumsy way would be to checkout the whole project again from the new repository URL but there is also a command line way to easily switch everything (<a href="http://subclipse.tigris.org" target="_blank">Subclipse</a> doesn&#8217;t offer that possibility directly though):</p>
<p><code>svn switch --relocate &lt;oldUrl&gt; &lt;newUrl&gt;</code></p>
<p>Mind that &#8220;oldUrl&#8221; and &#8220;newURl&#8221; have to be full addresses, not some kind of subdirs or relative to another.</p>
<p>Juist to mention it: Subversion 1.4 and 1.5 repositories are not backwards compatible and whenever you use a 1.5 client to check something in there is hardly any way to move back to 1.4 (and 1.4 clients won&#8217;t work with the repository anymore).</p>
 <p><a href="http://coffeecoders.de/?flattrss_redirect&amp;id=124&amp;md5=3a6581433f2584f13d0f49d16f0e7e02" title="Flattr" target="_blank"><img src="http://coffeecoders.de/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2009/02/change-the-repository-location-in-subversion/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Why use version control for solo developers or small teams</title>
		<link>http://coffeecoders.de/2009/01/why-use-version-control-for-solo-developers-or-small-teams/</link>
		<comments>http://coffeecoders.de/2009/01/why-use-version-control-for-solo-developers-or-small-teams/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 22:35:01 +0000</pubDate>
		<dc:creator>stevie</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[daily tasks]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=113</guid>
		<description><![CDATA[Since I started using version control systems like CVS and later on SVN I can&#8217;t remember how I could possibly work before. You might remember sentences like &#8220;But it worked yesterday!&#8221; or &#8220;Why the hell did I change that and &#8230; <a href="http://coffeecoders.de/2009/01/why-use-version-control-for-solo-developers-or-small-teams/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since I started using version control systems like CVS and later on SVN I can&#8217;t remember how I could possibly work before.</p>
<p>You might remember sentences like &#8220;But it worked yesterday!&#8221; or &#8220;Why the hell did I change that and when?&#8221; which were common companions when I looked at code I wrote a while back.</p>
<p>To avoid situations like this, a version control system could be a valid solution with more benefits than just less confusion.</p>
<p>Ernie Leseberg made the effort to collect most of the reasons I could think of on why to use a VCS with a small team or even if you are working alone.</p>
<p>If you don&#8217;t use a VCS yet give the article below a read and hopefully you will change your mind.</p>
<p>Link: <a href="http://devreview.com/version-control-for-solo-developers/">Why use version control for solo developers or small teams</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2009/01/why-use-version-control-for-solo-developers-or-small-teams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

