<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>JetBrains Developer Community: Message List - How to parameterize maven goals?</title>
    <link>http://devnet.jetbrains.com/community/idea/eap?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Mon, 24 Oct 2011 16:22:21 GMT</pubDate>
    <generator>Clearspace 2.5.16 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2011-10-24T16:22:21Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: How to parameterize maven goals?</title>
      <link>http://devnet.jetbrains.com/message/5325723?tstart=0#5325723</link>
      <description>&lt;!-- [DocumentBodyStart:da701781-c3e6-4c2b-b884-f83e32a45525] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Thanks, very helpful.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It'd be nice if IDEA includes the custom maven run config right under the lifecycle goal (package-skip-tests), instead of the user trying to pick one from the toolbar (and its several configs).&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:da701781-c3e6-4c2b-b884-f83e32a45525] --&gt;</description>
      <pubDate>Mon, 24 Oct 2011 16:22:21 GMT</pubDate>
      <author>devnet@jetbrains.com</author>
      <guid>http://devnet.jetbrains.com/message/5325723?tstart=0#5325723</guid>
      <dc:date>2011-10-24T16:22:21Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How to parameterize maven goals?</title>
      <link>http://devnet.jetbrains.com/message/5325708?tstart=0#5325708</link>
      <description>&lt;!-- [DocumentBodyStart:97c98298-e1c4-44de-939c-78cb6b9534ec] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;For a global switch (which will apply to all goals when run), open the Maven settings (you can either click the wrench icon in the maven tool window, or go to &lt;em&gt;Settings (Ctrl+Alt+S) &amp;gt; Project Settings &amp;gt; Maven&lt;/em&gt;. Expand the "Maven" node on the left and select "runner". There you can add any VM options and/or properties to be passed into maven. There is also a "Skip Tests" option you can select. Again, this will apply to all maven goals for the project. See &lt;em&gt;Reference &amp;gt; Settings Dialog &amp;gt; Project Settings &amp;gt; Maven&lt;/em&gt; in the help guide or the online &lt;a class="jive-link-external-small" href="http://www.jetbrains.com/idea/webhelp/getting-help.html"&gt;web help&lt;/a&gt; for more information.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;To configure for a specific goal so that the switches apply only to that goal, you need to run the gaol via a run configuration. Create a run configuration for the goal (right click the goal and select &lt;em&gt;Create "{pomName} [{goal}]"&lt;/em&gt;). When editing the goal, select the runner tab. There you can add any VM options and/or properties to be passed into maven. There is also a "Skip Tests" option you can select. You will then need to run the goal via the run configuration. It will be listed in the run configurations drop down in the toolbar. Or you can type Ctrl+Alt+F10 to open a popup of all the run configurations. See &lt;em&gt;References &amp;gt; Dialogs &amp;gt; Run/Debug Configurations &amp;gt; Run/Debug Configuration: Maven&lt;/em&gt; in the help guide or the online &lt;a class="jive-link-external-small" href="http://www.jetbrains.com/idea/webhelp/getting-help.html"&gt;web help&lt;/a&gt; for more information.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Finally, if you want all new maven run configurations to have a particular default, you can edit the default values for new maven run configurations. Open the "Edit Configurations" option from the run configurations drop down, or the Ctrl+Alt+F10 popup. On the left, expand the "Defaults" node. Find the &lt;em&gt;Maven&lt;/em&gt; node under the &lt;em&gt;Defaults&lt;/em&gt; node. Select it and edit the values on the Runner tab.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope that helps.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Best Regards,&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:97c98298-e1c4-44de-939c-78cb6b9534ec] --&gt;</description>
      <pubDate>Mon, 24 Oct 2011 15:15:24 GMT</pubDate>
      <author>devnet@jetbrains.com</author>
      <guid>http://devnet.jetbrains.com/message/5325708?tstart=0#5325708</guid>
      <dc:date>2011-10-24T15:15:24Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>How to parameterize maven goals?</title>
      <link>http://devnet.jetbrains.com/message/5324298?tstart=0#5324298</link>
      <description>&lt;!-- [DocumentBodyStart:a3729269-8303-449a-a861-b981e5ec7bce] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;How do you pass parameters to maven goals windoow (right hand side) like -DskipTests=true. I couldn't find how to costomize a goal.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a3729269-8303-449a-a861-b981e5ec7bce] --&gt;</description>
      <pubDate>Sun, 23 Oct 2011 20:27:42 GMT</pubDate>
      <author>devnet@jetbrains.com</author>
      <guid>http://devnet.jetbrains.com/message/5324298?tstart=0#5324298</guid>
      <dc:date>2011-10-23T20:27:42Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
  </channel>
</rss>

