<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Getting started with JBoss Tools, JBoss Maven Integration and Weld
</h3>
<span style="margin-bottom: 10px;">
    modified by <a href="http://community.jboss.org/people/admin">Administrator Administrator</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/community/tools/blog/2011/02/02/getting-started-with-jboss-tools-jboss-maven-integration-and-weld">View the full blog post</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>JBoss Tools includes the JBoss Maven Integration and Weld feature that enable you to quickly and easily start developing Weld applications. </p><h4>Installing JBoss Tools 3.2.0</h4><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The best way to install JBoss Tools including the JBoss Maven integration is to start with <a class="jive-link-external-small" href="http://eclipse.org/downloads/">Eclipse Java EE IDE for Web Developers</a>. <br/>What you then need to do is download appropriate archive for your OS, unpack it and start Eclipse. <br/>Call <strong>Help&gt;Install New Software...</strong>, click the <strong>Add</strong> button and enter the following update site: </p><p><a class="jive-link-external-small" href="http://download.jboss.org/jbosstools/updates/development/">http://download.jboss.org/jbosstools/updates/development/</a></p><p>Choose <strong>All JBoss Tools 3.2.0</strong> and <strong>Maven Support</strong></p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/38-3567-11285/JBossToolsInstall.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/38-3567-11285/450-369/JBossToolsInstall.png </span></a></p><p>Click the <strong>Next</strong> button, accept the license terms and click the <strong>Finish</strong> button. </p><p>Click the <strong>OK</strong> button on the <strong>Security Warning</strong> dialog. </p><p> <a href="http://community.jboss.org/servlet/JiveServlet/showImage/38-3567-11286/JBossToolsSecurityWarning.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/38-3567-11286/449-145/JBossToolsSecurityWarning.png </span></a></p><p>and the <strong>Restart Now</strong> button on the <strong>Software Updates</strong> dialog. </p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/38-3567-11287/JBossToolsRestart.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/38-3567-11287/441-136/JBossToolsRestart.png </span></a></p><p>You have installed JBoss Tools, the JBoss Maven Integration and all required dependencies.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h4>Installing JBoss AS 6.0 Server</h4><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>You can perform the following steps to install the JBoss AS 6.0 Server: </p><p>Download <a class="jive-link-external-small" href="http://www.jboss.org/jbossas/downloads">JBoss AS 6.0.0.Final</a> and unpack the archive to some directory. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Call <strong>Window&gt;Preferences&gt;JBoss Tools&gt;JBoss Tools Runtime Detection</strong></p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/38-3567-11288/JBRuntimeDetection.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/38-3567-11288/450-454/JBRuntimeDetection.png </span></a></p><p>Click the <strong>Add</strong> button and point to the directory where you unpacked the JBoss AS 6.0.0.Final. </p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/38-3567-11289/JBRTSearchDialog.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/38-3567-11289/450-277/JBRTSearchDialog.png </span></a></p><p>Click the <strong>OK</strong> button. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The JBoss AS 6.0 Server is created.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h4>Creating weld-jsf-login example</h4><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>In order to install this example you need to call <strong>Help&gt;Project Examples</strong></p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/38-3567-11290/JBTProjectExamples.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/38-3567-11290/450-472/JBTProjectExamples.png </span></a></p><p>Select <strong>Weld JSF login example</strong> and click the <strong>Finish</strong> button. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>You will then get the weld-jsf-login application in your workspace. </p><p>If you are interested in more info on this example, see <a class="jive-link-external-small" href="http://docs.jboss.org/weld/reference/1.1.0.Final/en-US/html/example.html">Weld 1.1.0 Reference - Chapter 3. JSF web application example</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h4>Deploying and starting weld-jsf-login application</h4><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> The following procedure demonstrates how to deploy and start this application: </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>Open the Servers view (<strong>Window&gt;Show View&gt;Other...&gt;Server&gt;Servers</strong>)</li><li>Right click the <strong>jboss-6.0.0.Final</strong> server and select <strong>Add and Remove...</strong></li><li>Select the <strong>weld-jsf-login</strong> application and click the <strong>Add</strong> button</li><li>Click the <strong>Finish</strong> button </li><li>Right click the <strong>weld-jsf-login</strong> project in the <strong>Package Explorer</strong> view and select <strong>Run As&gt;Run On Server</strong></li><li>Select the <strong>jboss-6.0.0.Final</strong> server and click the <strong>Finish</strong> button</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>As a result, the <strong>weld-jsf-login</strong> application will be deployed and executed on the JBoss AS 6.0 server. </p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/38-3567-11291/weldjsflogin.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/38-3567-11291/450-325/weldjsflogin.png </span></a></p><p>The application includes the JBoss CDI and WTP JSF feature. </p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/38-3567-11292/facets.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/38-3567-11292/450-305/facets.png </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The following examples can be created in a similar way:</p><ul><li>numberguess</li><li>permalink</li><li>pastecode</li><li>translator</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h5>References</h5><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a class="jive-link-external-small" href="http://docs.jboss.org/weld/reference/1.1.0.Final/en-US/html/">Weld - JSR-299 Reference Implementation</a><br/><a class="jive-link-external-small" href="http://download.jboss.org/jbosstools/nightly-docs/">JBoss Tools Guides - Latest Version</a><br/><a class="jive-link-external-small" href="http://m2eclipse.sonatype.org/">m2eclipse - Maven integration for Eclipse</a></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Comment by <a href="http://community.jboss.org/community/tools/blog/2011/02/02/getting-started-with-jboss-tools-jboss-maven-integration-and-weld">going to Community</a></p>

</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>