<?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; Insight Application Health Check</title>
	<atom:link href="http://blog.sonatype.com/people/tag/insight-application-health-check/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>Use Maven to Find Security Vulnerabilities and Viral Licenses in Applications</title>
		<link>http://blog.sonatype.com/people/2012/10/use-maven-to-find-security-vulnerabilities-and-viral-licenses-in-applications/</link>
		<comments>http://blog.sonatype.com/people/2012/10/use-maven-to-find-security-vulnerabilities-and-viral-licenses-in-applications/#comments</comments>
		<pubDate>Wed, 10 Oct 2012 19:10:41 +0000</pubDate>
		<dc:creator>Bentmann Benjamin</dc:creator>
				<category><![CDATA[Insight]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Sonatype]]></category>
		<category><![CDATA[Insight Application Health Check]]></category>

		<guid isPermaLink="false">http://www.sonatype.com/people/?p=12300</guid>
		<description><![CDATA[A few months ago, we launched Insight Application Health Check. Today, I&#8217;d like to announce another way to get started tracking licensing and security issues. In this post, I&#8217;m going to show you how to scan your project with nothing more than Maven and an existing project. You can get started with Insight without having [...]]]></description>
				<content:encoded><![CDATA[<p>A few months ago, we launched <a href="http://www.sonatype.com/people/2012/07/insight-application-health-check-scan-your-application-for-security-and-licensing-issues-in-minutes/" target="_blank">Insight Application Health Check</a>. Today, I&#8217;d like to announce another way to get started tracking licensing and security issues. In this post, I&#8217;m going to show you how to scan your project with nothing more than Maven and an existing project. You can get started with Insight without having to download a client or server. All you&#8217;ll need to do is run a simple plugin from the commandline.</p>

<p>To enable users to scan their applications, we provide an executable JAR with a graphical user interface. With this interface users are a few clicks away from results. But, even with this GUI, some users want to be able to use Insight&#8217;s Application Health Check from the command-line because sometimes &#8220;clicking&#8221; isn&#8217;t the most effective way to get something done. If you&#8217;re building your application using <a href="http://maven.apache.org" target="_blank">Apache Maven</a>, you probably already have a terminal window open to invoke its build phases. So, while you&#8217;re in there, adding or updating some dependencies in your POM and repackaging your application, why not check whether this dependency update introduced some security vulnerability or license issue, especially if it&#8217;s as easy as adding another goal to your command line? Meet the Application Health Check Maven Plugin:</p>

<pre>mvn package com.sonatype.insight:ahc:run -D ahc.email=my.name@mycompany.com</pre>

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

<p>Right after all artifacts making up your application have been built, the <code>ahc:run</code> goal will collect their fingerprints and send them to the Insight service. The Insight service will match these fingerprints against a database of OSS licensing and security vulnerability data and identify potential problems. A few minutes after the plugin has uploaded the data, you receive an email with a link to your <a href="http://www.sonatype.com/Products/Insight-App-Health-Check/View-A-Report" title="Sample Report" target="_blank">free Application Health Check report</a>.</p>

<pre>[INFO] --- ahc:1.21.2:run (default-cli) @ my-application ---
...
[INFO] Scan completed in 4 seconds
[INFO] Number of directories: 0
[INFO] Number of archives: 37
[INFO] Number of files: 3017
[INFO] Number of errors: 0
[INFO] Uploading scan to https://insight.sonatype.com/
[INFO] Report information will be emailed to my.name@mycompany.com 
       from insight-notification@sonatype.com
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS</pre>

<p>Notice that you didn&#8217;t need to modify your POM to run the plugin. Nothing had to change. In fact, the plugin runs as well without a POM,
prompting you for the WAR/EAR/ZIP/TAR.GZ/etc. to be scanned. So whenever you&#8217;re in a terminal window and have Maven
installed, Application Health Check is right at your fingertips to tell you about security or license issues.</p>

<p>Of course, if you use the plugin on a regular basis to check your apps without having to pass in the full groupId and artifactId of the plugin you just have to make a few tweaks to your Maven settings file. Add the following settings file:</p>

<p><code>${user.home}/.m2/settings.xml</code></p>

<p>Then, enter the XML below in it:</p>

<pre>&lt;settings&gt;
...
  &lt;pluginGroups&gt;
    &lt;pluginGroup&gt;com.sonatype.insight&lt;/pluginGroup&gt;
...
  &lt;/pluginGroups&gt;
  &lt;profiles&gt;
    &lt;id&gt;insight&lt;/id&gt;
    &lt;properties&gt;
      &lt;ahc.email&gt;my.name@mycompany.com&lt;/ahc.email&gt;
    &lt;/properties&gt;
  &lt;/profiles&gt;
  &lt;activeProfiles&gt;
    &lt;activeProfile&gt;insight&lt;/activeProfile&gt;
  &lt;/activeProfiles&gt;
&lt;/settings&gt;</pre>

<p>That blob of XML makes <code>mvn package ahc:run</code> a no-brainer. If you have a project and you want to get started tracking OSS licenses and vulnerabilities, this is the way to get started. We&#8217;ll scan your project and then send you an email with the results of the scan.</p>

<p>The plugin has a few more optional parameters e.g. to exclude proprietary packages or customize the report label. Just check out our <a href="https://support.sonatype.com/entries/22022541-how-do-i-use-the-application-health-check-maven-plugin" target="_blank">knowledge base</a> for the details.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sonatype.com/people/2012/10/use-maven-to-find-security-vulnerabilities-and-viral-licenses-in-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
