<?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>Sonatype Blog &#187; Checksum</title>
	<atom:link href="http://blog.sonatype.com/people/tag/checksum/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sonatype.com/people</link>
	<description>Sonatype is transforming software development with tools, information and services that enable organizations to build better software, faster, using open-source components.</description>
	<lastBuildDate>Thu, 16 May 2013 18:53:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Training questions answered: Checksums, SSH keys, writing plugins</title>
		<link>http://blog.sonatype.com/people/2011/01/training-questions-answered-checksums-ssh-keys-writing-plugins/</link>
		<comments>http://blog.sonatype.com/people/2011/01/training-questions-answered-checksums-ssh-keys-writing-plugins/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 16:30:33 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Sonatype]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Checksum]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Sonatype training]]></category>

		<guid isPermaLink="false">http://www.sonatype.com/people/?p=7190</guid>
		<description><![CDATA[You&#8217;ve probably heard that Sonatype teaches a series of online Maven training classes. They are a great way to get you and your team up and running on Maven, and if you have any specific questions we also make sure to leave some space in the class to answer any questions you might have. In [...]]]></description>
				<content:encoded><![CDATA[<p>You&#8217;ve probably heard that Sonatype teaches a series of online <a href="http://www.sonatype.com/training.html" target="_blank">Maven training classes</a>.  They are a great way to get you and your team up and running on Maven, and if you have any specific questions we also make sure to leave some space in the class to answer any questions you might have. In my experience, the students that get the most from our classes are the students that ask questions.</p>

<p>In this post, I answer some of the questions that came up in our last training session.</p>

<p><span id="more-7190"></span></p>

<p><strong>Q: Is there a flag to echo the md5/sha1 checksum during deployment?</strong></p>

<p>Not directly via the deploy plugin flags, but with a separate plugin: <a href="http://code.google.com/p/maven-checksum-plugin/" target="_blank">http://code.google.com/p/maven-checksum-plugin/</a>.  Checksums can be created during install if desired, <a href="http://maven.apache.org/plugins/maven-install-plugin/examples/installing-checksums.html" target="_blank">click here</a> to read the Maven documentation about this method.  Checksums can be calculated using typical POSIX tooling (md5sum) and shell scripts as well.</p>

<p><strong>Q: How do I select a SSH Private Key to use for SCP file transfers?</strong></p>

<p>This is answered in the Maven Documentation <a href="http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.html" target="_blank">here</a>.  Also, Pascal Thivent, a very active Maven expert on Stackoverflow, has a great answer for this on StackOverflow <a href="http://stackoverflow.com/questions/2733447/can-maven-wagon-plugin-use-a-private-key-for-scp" target="_blank">here</a>.   The answer is that you can specify which private SSH key to use in the server element of your Maven settings as follows:</p>

<pre>&lt;server&gt;
        &lt;id&gt;myserver&lt;/id&gt;
        &lt;username&gt;matthewmccullough&lt;/username&gt;
        &lt;privateKey&gt;~/mykeys/id_rsa&lt;/privateKey&gt;
        &lt;passphrase&gt;myphrase&lt;/passphrase&gt;
&lt;/server&gt;
</pre>

<p><strong>Q: For an Ivy repository, how can an artifact be retrieved from Maven?</strong></p>

<p>If the canonical repository format is Maven, then Ivy is really acting in compatibility mode with Maven and all is well.  However, if the repository is in Ivy format (no pom.xml files), the story is a bit more rough: <a href="http://markmail.org/message/ohmlv5mk7j7i4smf" target="_blank">http://markmail.org/message/ohmlv5mk7j7i4smf</a>. My observation is that even when folks are using other build tools like Ivy, Ant, Gradle, Buildr and Leiningen, they typically all agree on the Maven repository format. Most if not all of the build tools recognize and thus have a &#8220;Maven repo reading&#8221; compatibility.</p>

<p>Note: as the community moves forward on the Aether library, you should see tools start to either converge on best practices when it comes to repository access or get left behind it they decide to interact with repositories in a non-standard way.   Tools that interact with Maven repositories should all be using Aether.</p>

<p><strong>Q: Are there any tutorials about writing maven plugins?</strong></p>

<p>Yes, here are two good sources of information:</p>

<ul>
    <li><strong>The Apache guide:</strong> <a href="http://maven.apache.org/guides/plugin/guide-java-plugin-development.html" target="_blank">click here</a></li>
    <li><strong>The Sonatype book:</strong> <a href="http://www.sonatype.com/books/mvnref-book/reference/writing-plugins.html" target="_blank">click here</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.sonatype.com/people/2011/01/training-questions-answered-checksums-ssh-keys-writing-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
