<?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; xml</title>
	<atom:link href="http://blog.sonatype.com/people/tag/xml/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>Navigation improvements in the m2eclipse XML POM editor</title>
		<link>http://blog.sonatype.com/people/2011/02/navigation-improvements-in-the-m2eclipse-xml-pom-editor/</link>
		<comments>http://blog.sonatype.com/people/2011/02/navigation-improvements-in-the-m2eclipse-xml-pom-editor/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 17:00:18 +0000</pubDate>
		<dc:creator>mkleint</dc:creator>
				<category><![CDATA[m2eclipse]]></category>
		<category><![CDATA[Sonatype]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[pom]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.sonatype.com/people/?p=6869</guid>
		<description><![CDATA[If you use the m2eclipse POM XML editor, you will be interested to know that we&#8217;ve made a number of improvements to the interface.   Yesterday, we introduced some addition auto-correct options and automatic integration of the POM XML editor and the Artifact Search dialog.   Today, we focus on improved navigation options now available [...]]]></description>
				<content:encoded><![CDATA[<p>If you use the m2eclipse POM XML editor, you will be interested to know that we&#8217;ve made a number of improvements to the interface.   Yesterday, we introduced some addition auto-correct options and automatic integration of the POM XML editor and the Artifact Search dialog.   Today, we focus on improved navigation options now available in the m2eclipse POM XML Editor. By making use of the current effective POM, we are able to give you more information right at your fingertips.</p>

<p>The screenshot below shows options that are available to you by hovering over on an expression in the m2eclipse POM XML Editor.</p>

<p><img class="aligncenter size-full wp-image-6880" style="border: 1px solid black;" title="hover_expression" src="http://www.sonatype.com/people/wp-content/uploads/2011/01/hover_expression1.png" alt="" width="526" height="95" /></p>

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

<p>When hovering your mouse on top of a managed dependency, we show the currently resolved version of the artifact (dependency or plugin) and also where the artifact is managed (the model&#8217;s coordinates).</p>

<p>Invoking a hyperlink on the managed artifact gives you some new options as well. If the location is in another pom.xml file, that POM file is opened for you, and the cursor is placed at the location of the artifact&#8217;s definition.</p>

<p><img class="aligncenter size-full wp-image-6873" style="border: 1px solid black;" title="navigate_managed" src="http://www.sonatype.com/people/wp-content/uploads/2011/01/navigate_managed.png" alt="" width="408" height="91" /></p>

<p>Next to the preexisting option to open the artifact&#8217;s POM, you can now also navigate to the location where the artifact is managed. Let&#8217;s see where it leads us.</p>

<p><img class="aligncenter size-full wp-image-6874" style="border: 1px solid black;" title="hover_expression" src="http://www.sonatype.com/people/wp-content/uploads/2011/01/hover_expression.png" alt="" width="526" height="95" /></p>

<p>As you can see the artifact&#8217;s managed location is using an expression for declaring the version. Here you can again hover your mouse over the expression to see what it resolves to in the effective POM. To get to the definition of the property, just invoke the hyperlink again (Ctrl-Left Click on most platforms, Cmd-Left Click on MacOSX). See the next screenshot.</p>

<p><img class="aligncenter size-full wp-image-6875" style="border: 1px solid black;" title="navigate_expression" src="http://www.sonatype.com/people/wp-content/uploads/2011/01/navigate_expression1.png" alt="" width="370" height="81" /></p>

<p>After hyperlinking, you reach the definition of the antlr.version property and you can finally change the property value and upgrade your ant-antlr dependency.  If you find any issues with this feature or have a great idea for improvement, please don&#8217;t hesitate to file an issue in the <a rel="nofollow" href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=m2e&amp;component=editors" target="_blank">eclipse.org bugzilla</a>.</p>

<p>These improvements will be available from the <a href="http://download.eclipse.org/releases/indigo">Indigo repository</a> at the end of this week as part of the M5 release. If you are adventurous you can try the temporary Hudson build which can be found <a href="https://repository.sonatype.org/content/sites/forge-sites/m2e/0.13.0/N/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sonatype.com/people/2011/02/navigation-improvements-in-the-m2eclipse-xml-pom-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inserting artifacts in the m2eclipse POM editor</title>
		<link>http://blog.sonatype.com/people/2011/01/inserting-artifacts-in-the-m2eclipse-pom-editor/</link>
		<comments>http://blog.sonatype.com/people/2011/01/inserting-artifacts-in-the-m2eclipse-pom-editor/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 07:00:30 +0000</pubDate>
		<dc:creator>mkleint</dc:creator>
				<category><![CDATA[m2eclipse]]></category>
		<category><![CDATA[Sonatype]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[pom]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.sonatype.com/people/?p=6860</guid>
		<description><![CDATA[In the upcoming m2eclipse release, we&#8217;ve reworked how inserting artifacts (dependencies, plugins, parents) works in the XML editor. Instead of generating a skeleton template snippet for you to populate with maven coordinates (groupId/artifactId/version) we reuse the Artifact Search dialog. This post is a glimpse into some of the functionality that will be available in the [...]]]></description>
				<content:encoded><![CDATA[<p>In the upcoming m2eclipse release, we&#8217;ve reworked how inserting artifacts (dependencies, plugins, parents) works in the XML editor. Instead of generating a skeleton template snippet for you to populate with maven coordinates (groupId/artifactId/version) we reuse the Artifact Search dialog.  This post is a glimpse into some of the functionality that will be available in the coming weeks.</p>

<p>Instead of expecting a user to supply these artifacts directly in the XML editor, you now have the option to search for an artifact and let m2eclipse take care of the details. We&#8217;ve also made some improvements to the Artifact Search dialog. Screenshots speak as thousands of words though so let&#8217;s take a look.</p>

<p><img class="aligncenter size-full wp-image-6862" style="border: 1px solid black;" title="insert" src="http://www.sonatype.com/people/wp-content/uploads/2011/01/insert.png" alt="" width="681" height="266" /></p>

<p>Read the rest of this post to learn more about this new way to insert artifact coordinates in a Maven POM using m2eclipse.</p>

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

<h2>Inserting a dependency using auto-complete</h2>

<p>In the POM shown in the previous figure, I have invoked completion within the &lt;project&gt; element. I haven&#8217;t started typing anything prior to invoking auto-complete and, as a result, m2eclipse shows me some extra insertion options: &#8220;Insert dependency&#8221;, &#8220;Insert plugin&#8221;, and &#8220;Insert reference to parent POM&#8221;.  In this particular example, I&#8217;m inserting a parent element.  Since I have no parent defined in this project, m2eclipse gives me the option to &#8220;Insert reference to parent POM&#8221; in this auto-complete menu. As a courtesy we will use the current groupId as the initial search term as it is likely that your parent shares the same groupId and we want save you some typing.</p>

<p>The dependency and plugin insertion proposals appear in multiple contexts. Here it&#8217;s &lt;project&gt;, but you will encounter them in &lt;depedencyManagement&gt;, &lt;pluginManagement&gt;, &lt;build&gt;, &lt;dependencies&gt;, and so on. If we are in &lt;project&gt; xml element, we will either generate the &lt;build&gt;/&lt;plugins&gt; elements as well (at the chosen location), or if you already have your &lt;build&gt;/&lt;plugins&gt; subelements defined, we will append the plugin definition there.</p>

<h2>Support for managed versions</h2>

<p>Child projects can inherit a set of default versions for both plugins and dependencies from parent projects that make use of dependencyManagement and pluginManagement elements. We call the versions defined in these elements &#8220;managed versions&#8221; &#8211; they allow you to specify a global version for any dependency or plugin at the top-level of a large multi-module project. If your dependency/plugin inherits managed versions (in parent POM for example) <em>and</em> you pick the managed version in the selection, we will omit the version element in the child POM.</p>

<p>Let&#8217;s take a look at the Selection dialog now, because we made it easier for you to spot and pick the managed versions of your artifacts as well.</p>

<p><img class="aligncenter size-full wp-image-6863" style="border: 1px solid black;" title="select" src="http://www.sonatype.com/people/wp-content/uploads/2011/01/select.png" alt="" width="355" height="434" /></p>

<p>We&#8217;ve reduced the amount of information shown, so for each dependency/plugin you only get to see the version, type and classifier If you want to see more details, like size or date of creation, just select the appropriate tree in the node.</p>

<p>As you can see the ant-antlr artifacts appear with the lock icon overlay and a decorator text. Both of these attempt to hint that this artifact is being managed in the current effective pom. <em>Note: effective pom is only calculated when the pom file is saved. So any unsaved changes will not be taken into account. </em></p>

<p>To make it really easy for you to pick the managed artifact, the top node (ant ant-antlr) represents the managed version in this case (otherwise it&#8217;s the latest version). So you don&#8217;t have to drill down to the list of version to select the managed one. Just go with the artifact&#8217;s top node.</p>

<p>If you find any issues with this feature or have a great idea for improvement, please don&#8217;t hesitate to file an issue in the <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=m2e&amp;component=editors" target="_blank">eclipse.org bugzilla</a>.   We look forward to your feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sonatype.com/people/2011/01/inserting-artifacts-in-the-m2eclipse-pom-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
