<!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;">
    JBoss Tools Target Platform Provisioning (or, how to resolve missing dependencies when compiling JBoss Tools)
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/nickboldt">Nick Boldt</a> in <i>JBoss Tools Development</i> - <a href="http://community.jboss.org/docs/DOC-15755">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="color: #ff0000;"><strong><em>This document is a work in progress and subject to change.</em></strong></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>In order to build JBoss Tools in your workspace (or on your local machine, if not in Eclipse), you need to have its dependencies available. There are a number of ways to accomplish this, depending on your needs and how much manual effort you'd like to expend.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>1. Build Parent Pom + Target Platform With Tycho + Maven 3</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Build the parent pom [1] + target platform [2], then build against that with maven3 (commandline) or m2eclipse (and don't use PDE anymore when building in Eclipse)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; cd /tmp; \<br/>&#160; svn co <a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/">http://anonsvn.jboss.org/repos/jbosstools/trunk/build</a>; \<br/>&#160; cd /tmp/build/parent; \<br/>&#160; mvn3 clean install</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; cd /tmp; \</p><p><span>&#160; svn co </span><a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/jbosstools/trunk/tests;" target="_blank">http://anonsvn.jboss.org/repos/jbosstools/trunk/tests;</a><span> \</span></p><p>&#160; cd /tmp/tests; \</p><p>&#160; mvn3 clean install</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>(etc.)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This is how the Hudson builds run - compile the parent (which compiles the target platform), then build whatever component(s) you then want.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If you have the entire JBoss Tools tree on disk, you can also do multi-component builds even simpler like this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; cd /tmp; \<br/>&#160;&#160; svn co <a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/jbosstools/trunk/">http://anonsvn.jboss.org/repos/jbosstools/trunk</a>; \<br/>&#160;&#160; cd /tmp/trunk/build/component; \</p><p>&#160; mvn3 clean install -f seam.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>2. Load Target Platform in Eclipse</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Attempt to get the target platform file [2] to load in Eclipse, then click 'set as target platform' in the top right corner of the editor when it's open in the Target Platform editor. This should resolve everything in the target, and install it into your Eclipse. When it works. The editor is kinda flaky.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When it completes (and it may take a significant amount of time during which your Eclipse may be unstable / unusable), you should have everything you need to develop JBoss Tools.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>3. Manual Install from Update Sites (p2 Repos)</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Read through either [1] or [2] and install - by hand - what you need from the various update sites against which we install. The sites are listed in two places [1], [2]. The target platform file lists the features/plugins you need to include when installing; the parent pom only lists the update sites. YMMV.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>4. Manually Download and Unpack Runnable Zips</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Pull down the SDKs/runtime zips [3] and dump them into your eclipse's dropins/ folder. This is the way the old "uberbuilder" works, and is deprecated, but should still work.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>[1] <a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/parent/pom.xml">http://anonsvn.jboss.org/repos/jbosstools/trunk/build/parent/pom.xml</a><br/>[2] <a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-platform/e36-wtp32.target">http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-platform/e36-wtp32.target</a><br/>[3] <a class="jive-link-external-small" href="http://download.jboss.org/jbosstools/requirements/helios/README.txt">http://download.jboss.org/jbosstools/requirements/helios/README.txt</a>, <a class="jive-link-external-small" href="http://download.jboss.org/jbosstools/requirements/helios/">http://download.jboss.org/jbosstools/requirements/helios/</a> (GWT is missing, but the collection should otherwise be complete)</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Comment by <a href="http://community.jboss.org/docs/DOC-15755">going to Community</a></p>

        <p style="margin: 0;">Create a new document in JBoss Tools Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2129">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>