Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Build Instructions"

(Get the Code)
Line 19: Line 19:
 
<ol class="instruct">
 
<ol class="instruct">
 
<li><strong>Download Maven (Required for building)</strong>
 
<li><strong>Download Maven (Required for building)</strong>
<p>Download Link: <a href="http://maven.apache.org/download.html" target="_blank">http://maven.apache.org/download.html</a><br/>
+
<p>Download Link: [http://maven.apache.org/download.html http://maven.apache.org/download.html]</p>
Follow installation instructions for platform.<br/>
+
*Follow installation instructions for platform.<br/>
Add &quot;&lt;MAVEN_INSTALL_PATH&gt;/bin&quot; directory to system PATH environment.</p>
+
*Add &quot;&lt;MAVEN_INSTALL_PATH&gt;/bin&quot; directory to system PATH environment.<br/>
 
</li>
 
</li>
 
<li><strong>Download and install OpenAnzo</strong>
 
<li><strong>Download and install OpenAnzo</strong>
<p>Download Link: <a href="http://www.openanzo.org/downloads.html" target="_blank">http://www.openanzo.org/downloads.html</a><br/>
+
<p>Download Link: [http://www.openanzo.org/downloads.html http://www.openanzo.org/downloads.html]</p>
Extract and copy to appropriate path.<br/>
+
*Extract and copy to appropriate path.<br/>
Startup OpenAnzo server: &quot;&lt;OPENANZO_INSTALL_PATH&gt;/startAnzo.bat&quot;</p>
+
*Startup OpenAnzo server: &quot;&lt;OPENANZO_INSTALL_PATH&gt;/startAnzo.bat&quot;<br/>
 
</li>
 
</li>
 
<li><strong>Download and install latest Apache Tomcat, setup configuration</strong>
 
<li><strong>Download and install latest Apache Tomcat, setup configuration</strong>
<p>Download Link: <a href="http://tomcat.apache.org/download-70.cgi" target="_blank">http://tomcat.apache.org/download-70.cgi</a><br/>
 
  
<dl class="code">
+
<p>Download Link: [http://tomcat.apache.org/download-70.cgi http://tomcat.apache.org/download-70.cgi]</p>
<dt>Change local http port to 8088</dt>
+
 
<dd>Extract Tomcat archive and copy to appropriate path.</dd>
+
<strong>Change local http port to 8088</strong><br/>
<dd>Edit: &quot;&lt;TOMCAT_INSTALL_PATH&gt;/conf/server.xml&quot;</dd>
+
*Extract Tomcat archive and copy to appropriate path.<br/>
<dd>Update: Line #70</dd>
+
*Edit: &quot;&lt;TOMCAT_INSTALL_PATH&gt;/conf/server.xml&quot;<br/>
 +
*Update: Line #70
 
<pre class="code">
 
<pre class="code">
 
ORIGINAL: &lt;Connector port=&quot;8080&quot; protocol=&quot;HTTP/1.1&quot;  
 
ORIGINAL: &lt;Connector port=&quot;8080&quot; protocol=&quot;HTTP/1.1&quot;  
 
CHANGED: &lt;Connector port=&quot;8088&quot; protocol=&quot;HTTP/1.1&quot;</pre>
 
CHANGED: &lt;Connector port=&quot;8088&quot; protocol=&quot;HTTP/1.1&quot;</pre>
</dl>
 
  
<dl class="code">
+
<strong>Add local server user account</strong><br/>
<dt>Add local server user account</dt>
+
*Edit: &quot;&lt;TOMCAT_INSTALL_PATH&gt;/conf/tomcat-users.xml&quot;<br/>
<dd>Edit: &quot;&lt;TOMCAT_INSTALL_PATH&gt;/conf/tomcat-users.xml&quot;</dd>
+
*Add entry inside of &lt;tomcat-users&gt; block<br/>
<dd>Add entry inside of &lt;tomcat-users&gt; block</dd>
+
*<i>(NOTE: Change &quot;<u>myUserName</u>&quot; and &quot;<u>myUserPass</u>&quot; to whatever you want them to be)</i><br/>
<dd><i>(NOTE: Change &quot;<u>myUserName</u>&quot; and &quot;<u>myUserPass</u>&quot; to whatever you want them to be)</i></dd>
+
 
<dd>Example:</dd>
+
<p>Example:</p>
 +
 
 
<pre class="code">&lt;user username=&quot;myUserName&quot;  
 
<pre class="code">&lt;user username=&quot;myUserName&quot;  
 
       password=&quot;myUserPass&quot;  
 
       password=&quot;myUserPass&quot;  
 
       roles=&quot;manager-gui,manager-script,admin,admin-gui,manager,tomcat,admin-script&quot;/&gt;</pre>
 
       roles=&quot;manager-gui,manager-script,admin,admin-gui,manager,tomcat,admin-script&quot;/&gt;</pre>
</dl>
 
  
 
<p>Start Apache Tomcat server via: &quot;&lt;TOMCAT_INSTALL_PATH&gt;/bin/startup.bat&quot;</p>
 
<p>Start Apache Tomcat server via: &quot;&lt;TOMCAT_INSTALL_PATH&gt;/bin/startup.bat&quot;</p>
Line 56: Line 55:
 
</li>
 
</li>
 
<li><strong>Create maven profile</strong>
 
<li><strong>Create maven profile</strong>
<p>Edit: &quot;&lt;USER_HOME_DIRECTORY&gt;/.m2/settings.xml&quot;<br/>
+
*Edit: &quot;&lt;USER_HOME_DIRECTORY&gt;/.m2/settings.xml&quot;<br/>
Make sure the following code exists within the &lt;settings&gt; block:<br/>
+
*Make sure the following code exists within the &lt;settings&gt; block:<br/>
 
<pre class="code">
 
<pre class="code">
 
&lt;profiles&gt;
 
&lt;profiles&gt;
Line 70: Line 69:
 
   &lt;/profile&gt;
 
   &lt;/profile&gt;
 
&lt;/profiles&gt;</pre>
 
&lt;/profiles&gt;</pre>
<i>(NOTE: &quot;myUserName&quot; and &quot;myUserPass&quot; should match to the entries you entered for the line in the tomcat-users.xml file from step 3.)</i><br/><br/>
+
*<i>(NOTE: &quot;myUserName&quot; and &quot;myUserPass&quot; should match to the entries you entered for the line in the tomcat-users.xml file from step 3.)</i><br/>
 
+
 
</li>
 
</li>
 
<li><strong>Download Nginx and setup configuration</strong>
 
<li><strong>Download Nginx and setup configuration</strong>
<p>Download Link: <a href="http://nginx.org/en/download.html" target="_blank">http://nginx.org/en/download.html</a><br/>
+
<p>Download Link: [http://nginx.org/en/download.htm http://nginx.org/en/download.html]<br/>
Extract Nginx archive and copy to appropriate path.</p>
+
Extract Nginx archive and copy to appropriate path.</p>
 
 
<dl class="code">
+
<strong>Configure nginx.conf file</strong><br/>
<dt>Configure nginx.conf file</dt>
+
*Edit: &quot;&lt;NGINX_INSTALL_PATH&gt;/conf/nginx.conf&quot;<br/>
<dd>Edit: &quot;&lt;NGINX_INSTALL_PATH&gt;/conf/nginx.conf&quot;</dd>
+
*Inside of &quot;server&quot; section, replace the entire &quot;location /&quot; block with the following entries:<br/>
<dd>Inside of &quot;server&quot; section, replace the entire &quot;location /&quot; block with the following entries:</dd>
+
 
 
<pre class="code">
 
<pre class="code">
 
location / {
 
location / {
Line 114: Line 112:
 
}</pre>
 
}</pre>
  
<dd>Inside of "server" section, just after "listen" and "server_name" properties, add:</dd>
+
Inside of "server" section, just after "listen" and "server_name" properties, add:
 
<pre class="code">
 
<pre class="code">
 
client_max_body_size 40M;
 
client_max_body_size 40M;
 
client_body_buffer_size 128k;</pre>
 
client_body_buffer_size 128k;</pre>
</dl>
 
  
 
<p>Start nginx via &quot;&lt;NGINX_INSTALL_PATH&gt;/nginx.exe&quot;</p>
 
<p>Start nginx via &quot;&lt;NGINX_INSTALL_PATH&gt;/nginx.exe&quot;</p>
Line 124: Line 121:
 
</li>
 
</li>
 
<li><strong>Checkout Higgins R2 project</strong>
 
<li><strong>Checkout Higgins R2 project</strong>
<p>SVN Repo: <a href="https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2" target="_blank">https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2</a></p>
+
<p>SVN Repo: [https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2 https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2]</p>
 
</li>
 
</li>
<li><strong>Perform base build of PDS client</strong>
+
<li><strong>Perform base build of PDS client</strong><br/>
<dl class="code">
+
<p>From a shell:</p>
<dd>From a shell:</dd>
+
 
<pre class="code">
 
<pre class="code">
 
> cd &lt;HIGGINS_INSTALL_PATH&gt;/org.eclipse.higgins.pds.client
 
> cd &lt;HIGGINS_INSTALL_PATH&gt;/org.eclipse.higgins.pds.client
 
> mvn clean install -P local</pre>
 
> mvn clean install -P local</pre>
</dl>
 
 
</li>
 
</li>
 
</ol>
 
</ol>

Revision as of 10:52, 26 April 2011

{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}
Higgins logo 76Wx100H.jpg
Bugzilla

Mailing lists:

Get the Code

SVN Repo: https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2

Build Local Higgins Development Environment

Base requirements: Java JRE/SDK

  1. Download Maven (Required for building)

    Download Link: http://maven.apache.org/download.html

    • Follow installation instructions for platform.
    • Add "<MAVEN_INSTALL_PATH>/bin" directory to system PATH environment.
  2. Download and install OpenAnzo

    Download Link: http://www.openanzo.org/downloads.html

    • Extract and copy to appropriate path.
    • Startup OpenAnzo server: "<OPENANZO_INSTALL_PATH>/startAnzo.bat"
  3. Download and install latest Apache Tomcat, setup configuration

    Download Link: http://tomcat.apache.org/download-70.cgi

    Change local http port to 8088

    • Extract Tomcat archive and copy to appropriate path.
    • Edit: "<TOMCAT_INSTALL_PATH>/conf/server.xml"
    • Update: Line #70
    ORIGINAL: <Connector port="8080" protocol="HTTP/1.1" 
    CHANGED: <Connector port="8088" protocol="HTTP/1.1"

    Add local server user account

    • Edit: "<TOMCAT_INSTALL_PATH>/conf/tomcat-users.xml"
    • Add entry inside of <tomcat-users> block
    • (NOTE: Change "myUserName" and "myUserPass" to whatever you want them to be)

    Example:

    <user username="myUserName" 
          password="myUserPass" 
          roles="manager-gui,manager-script,admin,admin-gui,manager,tomcat,admin-script"/>

    Start Apache Tomcat server via: "<TOMCAT_INSTALL_PATH>/bin/startup.bat"

  4. Create maven profile
    • Edit: "<USER_HOME_DIRECTORY>/.m2/settings.xml"
    • Make sure the following code exists within the <settings> block:
    <profiles>
       <profile>
          <id>local</id>
          <properties>
             <chromium.bin>/opt/google/chrome/chrome</chromium.bin>
             <tomcat.url>http://localhost:8088/manager/text/</tomcat.url>
             <tomcat.username>myUserName</tomcat.username>
             <tomcat.password>myUserPass</tomcat.password>
          </properties>
       </profile>
    </profiles>
    • (NOTE: "myUserName" and "myUserPass" should match to the entries you entered for the line in the tomcat-users.xml file from step 3.)
  5. Download Nginx and setup configuration

    Download Link: http://nginx.org/en/download.html
    Extract Nginx archive and copy to appropriate path.

    Configure nginx.conf file

    • Edit: "<NGINX_INSTALL_PATH>/conf/nginx.conf"
    • Inside of "server" section, replace the entire "location /" block with the following entries:
    location / {
    	access_log      off;
    	proxy_pass http://localhost:8044/;
    	proxy_set_header X-Real-IP  $remote_addr;
    	proxy_set_header Host $host;
    	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    
    location /cometd {
    	access_log      off;
    	proxy_pass http://localhost:8080/cometd/;
    	proxy_set_header X-Real-IP  $remote_addr;
    	proxy_set_header Host $host;
    	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    
    location /hdsp {
    	access_log      off;
    	proxy_pass http://localhost:8088/hdsp/;
    	proxy_set_header X-Real-IP  $remote_addr;
    	proxy_set_header Host $host;
    	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    
    location /test-project {
    	access_log      off;
    	proxy_pass http://localhost:8078/test-project;
    	proxy_set_header X-Real-IP  $remote_addr;
    	proxy_set_header Host $host;
    	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    Inside of "server" section, just after "listen" and "server_name" properties, add:

    client_max_body_size 40M;
    client_body_buffer_size 128k;

    Start nginx via "<NGINX_INSTALL_PATH>/nginx.exe"

  6. Checkout Higgins R2 project

    SVN Repo: https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2

  7. Perform base build of PDS client

    From a shell:

    > cd <HIGGINS_INSTALL_PATH>/org.eclipse.higgins.pds.client
    > mvn clean install -P local

Misc:

Back to the top