Changes between Version 13 and Version 14 of OrcaDevEnvironment

Show
Ignore:
Timestamp:
10/28/09 17:54:59 (10 years ago)
Author:
varun (IP: 152.54.8.249)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OrcaDevEnvironment

    v13 v14  
    1 = Eclipse = 
    2 [wiki:"Eclipse Setup" Instructions] for installing [http://eclipse.org Eclipse] and importing the ORCA source. 
     1= Eclipse Setup = 
     2 
     3This page describes how to setup an Eclipse development environment to be used with the Orca project. 
     4 
     51. Download and install Eclipse from http://www.eclipse.org/downloads/. You can choose either    
     6''Eclipse IDE for Java EE Developers'' or ''Eclipse IDE for Java Developers''. 
     7 
     82. In addition to the standard Eclipse installation you will need the following Eclipse plug-ins: 
     9 
     10 - Subclipse (http://subclipse.tigris.org/). This plug-in integrates subversion source control into eclipse. Make sure you choose a version compatible with your subversion command line client. Version 1.4.* uses subversion 1.5.* file formats and is incompatible with subversion 1.4.* file formats. Version 1.0.* work only with subversion 1.4.*. Be careful, which version you end up installing, since version incompatibility can cause a lot of headaches later. Version 1.4.* is recommended and the update link is ''http://subclipse.tigris.org/update_1.4.x'' 
     11 
     12 - m2eclipse (http://m2eclipse.codehaus.org/). This plug-in integrates Maven into Eclipse. The update link is http://m2eclipse.sonatype.org/update/ 
     13 
     143. Before you can start editing an ORCA project, you must import it into your Eclipse workspace. You can checkout the project directly with Eclipse, with the Subversion command line client or with the [wiki:buildInstructions command line build scripts]. The instructions here assume that you have checked out the required projects using the Subversion command line client. To import an existing ORCA project into Eclipse do the following: 
     15 - Click on File\Import... 
     16 - Expand the ''General'' tab and select ''Maven Projects''. Click ''Next'' 
     17 - Use the ''Browse'' button to navigate to the directory containing the POM file (pom.xml) of the project you want to import. Click ''OK''. The dialog window should show the project(s) you have selected for import. 
     18 - Click on ''Advanced'' and make sure that both ''Resolve Workspace projects'' and ''Separate projects for modules'' are selected. Add the following to the ''Name template'' field: '[groupId].[artifactId]'. 
     19 - Click on ''Finish'' 
     20 
     21 The project should start importing and Eclipse will rebuild the workspace as needed. 
     22 
     23 
     24When installing Eclipse on a ''' CentOS 5.2 ''' machine note the following: 
     25 
     26 * Eclipse 3.2 is the only version currently supported by CentOS repositories. 
     27 * Follow the Maven (m2eclipse) installation instructions for Eclipse 3.2 closely. 
     28 * Use the [http://m2eclipse.sonatype.org/update-dev/] for maven plugin instead of the release build 
     29 
     30When installing e2eclipse in '''Ubuntu 8.10''': 
     31 * Following above notes on CentOS 
     32 * Use Sun Java JDK 1.5, instead of the default gcj 
     33   * sudo gedit /etc/eclipse/java_home 
     34   * move '/usr/lib/j2sdk1.5-sun' to be the first line 
     35 * Switch to sun 1.5 system-wide 
     36   * download and install 1.5 (from the update manager) 
     37   * see it in /usr/lib/jvm 
     38   * sudo update-alternatives --config java (javac, javadoc) 
     39   * Or change $JAVA_HOME (JAVA_HOME="/usr/lib/jvm/java-1.5.0-sun")  
     40   *  and $PATH (PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH) 
     41 
    342 
    443= MAVEN Set Up = 
    544'''Install [http://maven.apache.org/download.html Maven]''' 
    6  * export M2_HOME=/usr/local/apache-maven/apache-maven-2.0.9 
     45 * export M2_HOME=/usr/local/apache-maven/apache-maven-2.2.1 
    746 * export M2=$M2_HOME/bin 
    847 * export PATH=$M2:$PATH 
    9 '''Automatic login to the repository server using public key: (https://geni-orca.renci.org, in our case)''' 
    10  * client$ mkdir ~/.ssh 
    11  * client$ chmod 700 ~/.ssh 
    12  * client$ ssh-keygen -q -f ~/.ssh/id_rsa -t rsa 
    13  * Enter passphrase (empty for no passphrase): … 
    14  * Enter same passphrase again: … 
    15  * client$ scp ~/.ssh/id_rsa.pub geni-orc.renci.org:/home/yxin/.ssh: 
    16 # next, setup the public key on server 
    17  * server$ cd ~/.ssh 
    18  * server$ cat id_rsa.pub >> authorized_keys 
    19  * server$ chmod 600 authorized_keys 
    20  * server$ rm id_rsa.pub 
     48 
    2149'''MAVEN package, install, deploy''' 
    2250 * Modified "pom.xml" 
    2351 * $mvn clean 
    2452 * $mvn package 
    25  * $mvn deploy 
    26 == Other notes == 
    27 [wiki:GOJava Java][[BR]] 
    28 [wiki:GOAnt Ant][[BR]] 
    29 [wiki:GOTomcat Tomcat][[BR]] 
    30 [wiki:GoXen Xen][[BR]] 
    3153