<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
    #email-body { min-width: 30em !important; }
    #email-page { padding: 8px !important; }
    #email-banner { padding: 8px 8px 0 8px !important; }
    #email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
    #email-fields { padding: 0 8px 8px 8px !important; }
    #email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
    <tr valign="top">
        <td id="email-page" style="padding:16px !important;">
            <table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
                <tr valign="top">
                    <td bgcolor="#3b4d64" style="background-color:#3b4d64;color:#ffffff;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="https://issues.jboss.org/s/en_USkylogg-418945332/847/58/_/jira-logo-scaled.png" alt="" style="vertical-align:top;" /></td>
                </tr><tr valign="top">
    <td id="email-banner" style="padding:32px 32px 0 32px;">
        
                
        
        
            <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;">
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
                                        <img id="email-avatar" src="https://community.jboss.org/people/bfitzpat/avatar/16.png" alt="" height="48" width="48" border="0" align="left" style="padding:0;margin: 0 16px 16px 0;" />
                        <div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
                                    <a class="user-hover" rel="bfitzpat" id="email_bfitzpat" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=bfitzpat" style="color:#326ca6;">Brian Fitzpatrick</a>
     created <img src="https://issues.jboss.org/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#326ca6;text-decoration:none;' href='https://issues.jboss.org/browse/SWITCHYARD-1316'>SWITCHYARD-1316</a>
            </div>
                        <div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;">
                <a style='color:#326ca6;text-decoration:none;' href='https://issues.jboss.org/browse/SWITCHYARD-1316'><strong>SwitchYard Project Facet Issues</strong></a>
            </div>
                    </td>
    </tr>
</table>
    </td>
</tr>
<tr valign="top">
    <td id="email-fields" style="padding:0 32px 32px 32px;">
        <table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
            <tr valign="top">
                <td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Issue Type:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                <img src="https://issues.jboss.org/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug">        Bug
    </td>
</tr>                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Affects Versions:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                    0.8            </td>
</tr>
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Assignee:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                                        <a class="user-hover" rel="rcernich" id="email_rcernich" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=rcernich" style="color:#326ca6;">Rob Cernich</a>
                </td>
</tr>                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Components:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                    tooling            </td>
</tr>
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Created:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
        15/Feb/13 3:59 PM
    </td>
</tr>                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Description:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
        <p style='margin-top:0;margin-bottom:10px;'>While working on <a href="https://issues.jboss.org/browse/SWITCHYARD-1293" title="Integrate SY tools with JBT open shift tooling">SWITCHYARD-1293</a>, I ran into some issues with configuring an OpenShift project in the tooling so it works as a SwitchYard tooling project. </p>

<p style='margin-top:0;margin-bottom:10px;'>By going through the Configure-&gt;SwitchYard Capabilities... menu, it should update the project configuration (i.e. add the SwitchYard facet and allow the user to specify which components you want to include). Unfortunately that doesn't quite work.</p>

<p style='margin-top:0;margin-bottom:10px;'>It turns out that if you try to go this route when you have a Maven-enabled project with a WAR deployment specified, you get these presets:</p>

<p style='margin-top:0;margin-bottom:10px;'><span class="error">&#91;preset.jst.jsf.v1_1, preset.jst.jsf.v2_0, preset.jst.jsf.v1_2, minimal.configuration, default.configuration, preset.jst.jsf.v2_1&#93;</span></p>


<p style='margin-top:0;margin-bottom:10px;'>And when you have a Maven-enabled project with a JAR deployment specified, you get these:</p>

<p style='margin-top:0;margin-bottom:10px;'><span class="error">&#91;preset.jst.jsf.v1_1, preset.jboss.seamportlet.v22, minimal.configuration, jst.seam21.preset, jbossws.core.preset, jst.seam23.preset, preset.jboss.seamportlet.v20, jst.seam22.preset, jboss.jst.cdi.preset, preset.jst.jsf.v2_1, preset.jst.ejb.xdoclet, jst.seam2.preset, jst.seam.preset, preset.jst.jsf.v2_0, preset.switchyard.jar, preset.jst.web.xdoclet, cxf.jst.web25.preset, preset.jst.jsf.v1_2, preset.switchyard.basic, default.configuration&#93;</span></p>

<p style='margin-top:0;margin-bottom:10px;'>The code that updates the project to be a Switchyard project needs that preset.switchyard.basic facet preset to be in there before it'll work.</p>

<p style='margin-top:0;margin-bottom:10px;'>I'm not seeing anything obvious in the facet code to tell me why it works for jar, but not war.</p>

<p style='margin-top:0;margin-bottom:10px;'>It was suggested that Maven-&gt;Update Project might correct the issue, but it doesn't seem to fix anything either.</p>

<p style='margin-top:0;margin-bottom:10px;'>I did notice however that if I update the pom using the Maven POM editor and update the "Packaging" setting from war to jar, it doesn't work. The section in the pom doesn't update the deployments bits...</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
     &lt;plugin&gt;
        &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
        &lt;version&gt;2.3.2&lt;/version&gt;
        &lt;executions&gt;
          &lt;execution&gt;
            &lt;id&gt;<span class="code-keyword">default</span>-jar&lt;/id&gt;
            &lt;phase&gt;<span class="code-keyword">package</span>&lt;/phase&gt;
            &lt;goals&gt;
              &lt;goal&gt;jar&lt;/goal&gt;
            &lt;/goals&gt;
          &lt;/execution&gt;
        &lt;/executions&gt;
      &lt;/plugin&gt;
</pre>
</div></div>

<p style='margin-top:0;margin-bottom:10px;'>All I did in this case was open the pom.xml in the Maven POM Editor (provide by m2e I believe) and change the "packaging" setting on the Overview page from war to jar. That doesn't seem to set up the jar deployment bits as described in <a href="https://issues.jboss.org/browse/SWITCHYARD-1293" title="Integrate SY tools with JBT open shift tooling">SWITCHYARD-1293</a>. </p>
    </td>
</tr>
                                                                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Project:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
        <a style="color:#326ca6;" href="https://issues.jboss.org/browse/SWITCHYARD">SwitchYard</a>
    </td>
</tr>                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Priority:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                        <img src="https://issues.jboss.org/images/icons/priorities/major.png" height="16" width="16" border="0" align="absmiddle" alt="Major">                Major
    </td>
</tr>
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Reporter:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                                        <a class="user-hover" rel="bfitzpat" id="email_bfitzpat" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=bfitzpat" style="color:#326ca6;">Brian Fitzpatrick</a>
                </td>
</tr>                                                    
    
    
                        </table>
                </td>
            </tr>
        </table>
    </td>
</tr>













            </table>
        </td><!-- End #email-page -->
    </tr>
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
            This message is automatically generated by JIRA.<br />
            If you think it was sent incorrectly, please contact your JIRA administrators<br />
            For more information on JIRA, see: <a style='color:#326ca6;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
        </td>
    </tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->