Skip to main content

Notice: This Wiki is now read only and edits are no longer 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"

 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}} [[Image:Higgins logo 76Wx100H.jpg|right]] Bugzilla
+
[[Image:Higgins logo 76Wx100H.jpg|right]]  
 +
Higgins 2.0 build instructions.
  
*[https://bugs.eclipse.org/bugs/query.cgi?product=Higgins search for Higgins bugs]
+
== Source Code  ==
*[https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Higgins enter a Higgins bug]
+
  
Mailing lists:  
+
'''SVN Repo:''' [https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2 https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2]
  
*[https://dev.eclipse.org/mailman/listinfo/higgins-dev higgins-dev], [http://dev.eclipse.org/mhonarc/lists/higgins-dev/maillist.html archive] - main list
+
==Build Local Higgins Development Environment==
*[https://dev.eclipse.org/mailman/listinfo/higgins-announce higgins-announce], [http://dev.eclipse.org/mhonarc/lists/higgins-announce/maillist.html archive]
+
  
=== Get the Code  ===
+
'''Base requirements:'''Java JRE/SDK</p>
  
'''SVN Repo:'''&nbsp;[https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2 https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2]
+
<ol class="instruct">
 +
<li><strong>Download Maven (Required for building)</strong>
 +
<p>Download Link: [http://maven.apache.org/download.html http://maven.apache.org/download.html]</p>
 +
*Follow installation instructions for platform.<br/>
 +
*Add &quot;&lt;MAVEN_INSTALL_PATH&gt;/bin&quot; directory to system PATH environment.<br/>
 +
</li>
 +
<li><strong>Download and install OpenAnzo</strong>
 +
<p>Download Link: [http://www.openanzo.org/downloads.html http://www.openanzo.org/downloads.html]</p>
 +
*Extract and copy to appropriate path.<br/>
 +
*Startup OpenAnzo server: &quot;&lt;OPENANZO_INSTALL_PATH&gt;/startAnzo.bat&quot;<br/>
 +
<p><i>NOTE: Anzo is not fully started until you see the message "All Currently Registered Services started."</i></p>
  
=== Build Local Higgins Development Environment  ===
+
</li>
 +
<li><strong>Download and install latest Apache Tomcat, setup configuration</strong>
  
'''Base requirements:'''&nbsp;Java JRE/SDK
+
<p>Download Link: [http://tomcat.apache.org/download-70.cgi http://tomcat.apache.org/download-70.cgi]</p>
  
#'''Download Maven (Required for building)'''
+
<strong>Change local http port to 8088</strong><br/>
#:Download Link:&nbsp;[http://maven.apache.org/download.html http://maven.apache.org/download.html]
+
*Extract Tomcat archive and copy to appropriate path.<br/>
#:Follow installation instructions for platform.
+
*Edit: &quot;&lt;TOMCAT_INSTALL_PATH&gt;/conf/server.xml&quot;<br/>
#:Add "&lt;MAVEN_INSTALL_PATH&gt;/bin" directory to system PATH environment.
+
*Update: Line #70
#'''Download and install OpenAnzo'''
+
<pre class="code">
#:Download Link:&nbsp;[http://www.openanzo.org/downloads.html http://www.openanzo.org/downloads.html]
+
ORIGINAL: &lt;Connector port=&quot;8080&quot; protocol=&quot;HTTP/1.1&quot;
#:Extract and copy to appropriate path.
+
CHANGED: &lt;Connector port=&quot;8088&quot; protocol=&quot;HTTP/1.1&quot;</pre>
#:Startup OpenAnzo server: "&lt;OPENANZO_INSTALL_PATH&gt;/startAnzo.bat"
+
#'''Download and install latest Apache Tomcat, setup configuration'''
+
#:Download Link:&nbsp;[http://tomcat.apache.org/download-70.cgi http://tomcat.apache.org/download-70.cgi]
+
#:Change local http port to 8088  
+
#:*Extract Tomcat archive and copy to appropriate path.  
+
#:*Edit: "&lt;TOMCAT_INSTALL_PATH&gt;/conf/server.xml"
+
#:*Update: Line #70
+
#:* <pre>ORIGINAL: &lt;Connector port="8080" protocol="HTTP/1.1"
+
CHANGED: &lt;Connector port="8088" protocol="HTTP/1.1"</pre>
+
#;Add local server user account
+
#:Edit: "&lt;TOMCAT_INSTALL_PATH&gt;/conf/tomcat-users.xml"
+
#:Add entry inside of &lt;tomcat-users&gt; block
+
#:''(NOTE: Change "<u>myUserName</u>" and "<u>myUserPass</u>" to whatever you want them to be)''
+
#:Example:
+
<code>&lt;user username="myUserName"
+
password="myUserPass" roles="manager-gui,manager-script,admin,admin-gui,manager,tomcat,admin-script"/&gt;
+
Start Apache Tomcat server via: "&lt;TOMCAT_INSTALL_PATH&gt;/bin/startup.bat"
+
#'''Create maven profile'''
+
  
Edit: "&lt;USER_HOME_DIRECTORY&gt;/.m2/settings.xml"<br>Make sure the following code exists within the &lt;settings&gt; block:<br>  
+
<strong>Add local server user account</strong><br/>
<pre class="code">&lt;profiles&gt;
+
*Edit: &quot;&lt;TOMCAT_INSTALL_PATH&gt;/conf/tomcat-users.xml&quot;<br/>
 +
*Add entry inside of &lt;tomcat-users&gt; block<br/>
 +
*<i>(NOTE: Change &quot;<u>myUserName</u>&quot; and &quot;<u>myUserPass</u>&quot; to whatever you want them to be)</i><br/>
 +
 
 +
<p>Example:</p>
 +
 
 +
<pre class="code">&lt;user username=&quot;myUserName&quot;
 +
      password=&quot;myUserPass&quot;
 +
      roles=&quot;manager-gui,manager-script,admin,admin-gui,manager,tomcat,admin-script&quot;/&gt;</pre>
 +
 
 +
<p>Start Apache Tomcat server via: &quot;&lt;TOMCAT_INSTALL_PATH&gt;/bin/startup.bat&quot;</p>
 +
 
 +
</li>
 +
<li><strong>Create maven profile</strong>
 +
*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/>
 +
<pre class="code">
 +
&lt;profiles&gt;
 
   &lt;profile&gt;
 
   &lt;profile&gt;
 
       &lt;id&gt;local&lt;/id&gt;
 
       &lt;id&gt;local&lt;/id&gt;
Line 55: Line 64:
 
   &lt;/profile&gt;
 
   &lt;/profile&gt;
 
&lt;/profiles&gt;</pre>
 
&lt;/profiles&gt;</pre>
''(NOTE: "myUserName" and "myUserPass" should match to the entries you entered for the line in the tomcat-users.xml file from step 3.)''<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><strong>Download Nginx and setup configuration</strong>
 +
<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>
 +
 +
<strong>Configure nginx.conf file</strong><br/>
 +
*Edit: &quot;&lt;NGINX_INSTALL_PATH&gt;/conf/nginx.conf&quot;<br/>
 +
*Inside of &quot;server&quot; section, replace the entire &quot;location /&quot; block with the following entries:<br/>
  
#'''Download Nginx and setup configuration'''
+
<pre class="code">
 +
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;
 +
}
  
Download Link:&nbsp;[http://nginx.org/en/download.html http://nginx.org/en/download.html]<br>Extract Nginx archive and copy to appropriate path.
+
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;
 +
}
  
#;Configure nginx.conf file
+
location /hdsp {
#:Edit: "&lt;NGINX_INSTALL_PATH&gt;/conf/nginx.conf"
+
access_log      off;
#:Inside of "server" section, replace the entire "location /" block with the following entries:<pre class="code">location / {
+
proxy_pass http://localhost:8088/hdsp/;
</pre>
+
proxy_set_header X-Real-IP  $remote_addr;
 +
proxy_set_header Host $host;
 +
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 +
}
  
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; }
+
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;
 +
}</pre>
  
#:Inside of "server" section, just after "listen" and "server_name" properties, add:<pre class="code">client_max_body_size 40M;
+
Inside of "server" section, just after "listen" and "server_name" properties, add:
</pre>
+
<pre class="code">
 +
client_max_body_size 40M;
 +
client_body_buffer_size 128k;</pre>
  
client_body_buffer_size 128k;
+
<p>Start nginx via &quot;&lt;NGINX_INSTALL_PATH&gt;/nginx.exe&quot;</p>
  
Start nginx via "&lt;NGINX_INSTALL_PATH&gt;/nginx.exe"
+
</li>
 +
<li><strong>Checkout Higgins H2 project</strong>
 +
<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><strong>Perform base build of PDS client</strong><br/>
 +
<p>From a shell:</p>
 +
<pre class="code">
 +
> cd &lt;HIGGINS_INSTALL_PATH&gt;/org.eclipse.higgins.pds.client
 +
> mvn clean install -P local</pre>
 +
</li>
 +
</ol>
  
#'''Checkout Higgins R2 project'''
+
==Setting up a new Project using Higgins Dependencies==
  
SVN Repo:&nbsp;[https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2 https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/H2]
+
<p>When creating a new project to utilize Higgins, please make sure that the pom.xml files contain the following entry:</p>
 +
<p><i>NOTE: You will only need to add this section to new projects you create which are based off of Higgins code. Look for examples of the pom.xml files in the root of each of the projects downloaded from the Higgins SVN.</i></p>
 +
<pre class="code">
 +
&lt;project&gt;
 +
...
 +
  &lt;repositories&gt;
  
#'''Perform base build of PDS client'''
+
      &lt;repository&gt;
#:From a shell:<pre class="code">&gt; cd &lt;HIGGINS_INSTALL_PATH&gt;/org.eclipse.higgins.pds.client
+
        &lt;id&gt;higgins-snapshots&lt;/id&gt;
 +
        &lt;name&gt;Higgins 2.0 Snapshots&lt;/name&gt;
 +
        &lt;url&gt;http://my.azigo.net/repo/content/repositories/higgins-snapshots/&lt;/url&gt;
 +
        &lt;snapshots&gt;
 +
            &lt;enabled&gt;true&lt;/enabled&gt;
 +
        &lt;/snapshots&gt;
 +
      &lt;/repository&gt;
 +
 
 +
  &lt;/repositories&gt;
 +
...
 +
&lt;/project&gt;
 
</pre>
 
</pre>
  
&gt; mvn clean install -P local
 
  
&lt;/meta&gt;
+
== Bugzilla ==
 +
 
 +
For Higgins 2.0 use Components=H2-XXXX:
 +
*[https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Higgins Enter a bug]
 +
*[https://bugs.eclipse.org/bugs/query.cgi?product=Higgins Search for Higgins bugs]
 +
 
 +
== Mailing lists ==
 +
 
 +
*[https://dev.eclipse.org/mailman/listinfo/higgins-dev higgins-dev], [http://dev.eclipse.org/mhonarc/lists/higgins-dev/maillist.html archive] - main list
 +
*[https://dev.eclipse.org/mailman/listinfo/higgins-announce higgins-announce], [http://dev.eclipse.org/mhonarc/lists/higgins-announce/maillist.html archive]
  
Misc:
+
== Misc ==
  
*[[Higgins 1.x Developer Page]] - internal committers page - archived version  
+
* [[Higgins 1.x Developer Page]] - internal committers page - archived version
*[[Related Communities]]
+
* [[Related Communities]]  
  
 
[[Category:Higgins_-_About]]
 
[[Category:Higgins_-_About]]

Latest revision as of 15:09, 15 August 2014

Higgins logo 76Wx100H.jpg

Higgins 2.0 build instructions.

Source Code

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

Build Local Higgins Development Environment

Base requirements:Java JRE/SDK</p>

  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"

    NOTE: Anzo is not fully started until you see the message "All Currently Registered Services started."

  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 H2 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

Setting up a new Project using Higgins Dependencies

When creating a new project to utilize Higgins, please make sure that the pom.xml files contain the following entry:

NOTE: You will only need to add this section to new projects you create which are based off of Higgins code. Look for examples of the pom.xml files in the root of each of the projects downloaded from the Higgins SVN.

<project>
 ...
   <repositories>

      <repository>
         <id>higgins-snapshots</id>
         <name>Higgins 2.0 Snapshots</name>
         <url>http://my.azigo.net/repo/content/repositories/higgins-snapshots/</url>
         <snapshots>
            <enabled>true</enabled>
         </snapshots>
      </repository>

   </repositories>
 ...
</project>


Bugzilla

For Higgins 2.0 use Components=H2-XXXX:

Mailing lists

Misc

Back to the top