Changes between Version 45 and Version 46 of buildInstructions

Show
Ignore:
Timestamp:
01/28/10 13:42:19 (9 years ago)
Author:
ibaldin (IP: 152.54.9.131)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • buildInstructions

    v45 v46  
    32323. Soft link to the build.xml file. 
    3333 
    34   ''ln -s build-all/build.xml build.xml'' 
     34{{{ 
     35$ ln -s build-all/build.xml build.xml 
     36}}} 
    3537 
    36384. Use ant to get the source. 
    37   ''ant get.all'' 
     39{{{ 
     40$ ant get.all 
     41}}} 
    3842 
    3943  '''NOTE:''' You may get an error message about the --trust-server-cert option. Edit build-all/helper.sh file (look for the option and remove it). 
     
    5155If you do not require sudo to modify your installation's keystore use the following command: 
    5256 
    53   "ant get.certificate" 
    54  
     57{{{ 
     58$ ant get.certificate 
     59}}} 
    5560If this fails with permission denied errors, please try the following: 
    56    
    57   "ant get.certificate.sudo" 
    58  
     61{{{ 
     62$ ant get.certificate.sudo 
     63}}} 
    59646. Prepare the source tree for building 
    60     
    61   ''ant prepare.build'' 
     65{{{ 
     66$ ant prepare.build 
     67}}} 
    6268 
    6369Note: maven will download a large number of files. If some of the downloads fail, please retry the command. You need to be connected to the Internet 
     
    66727. Build the whole tree and install all artifacts to the local repository (the resulting jars end up in ~/.m2/repository/) 
    6773 
    68   ''mvn install'' 
     74{{{ 
     75$ mvn install 
     76}}} 
    6977 
    7078'''NOTE 1''': maven will download a large number of files. If some of the downloads fail, please retry the command. You need to be connected to the Internet 
     
    7280 
    7381'''NOTE 2''': if maven fails due to a unit test in one of the modules, you can install without running unit tests like so:  
    74 "mvn install -!DskipTests" 
     82{{{ 
     83$ mvn install -!DskipTests 
     84}}} 
    7585 
    7686'''NOTE 3:''' ''ant up'' will do incremental updates of the source tree. 
     
    8696supports symbolic links, simply use the provided ant task: 
    8797 
    88    "ant prepare.use" 
     98{{{ 
     99$ ant prepare.use 
     100}}} 
    89101 
    90102This task will generate the admin security configuration and place links to it in the relevant directories. It will also initialize and link other directories 
     
    94106 
    951071. Create the security configuration by going to tools/config and running 
    96   ''ant security.create.admin.config'' 
     108{{{ 
     109$ cd tools/config 
     110$ ant security.create.admin.config 
     111}}} 
    97112 
    98113'''NOTE:''' Make sure there is no existing runtime directory before you run this command unless you know what you are doing. 
     
    105120use the system. These have to do with generating a certificate and a keystore and linking/copying them in the right place. Note that starting from  
    106121release 1.2 ORCA '''no longer packages config/ or runtime/ directories into the webapp'''. 
    107  
    108   ''cd tools/config'' 
    109  
    110   ''ant security.create.admin.config'' 
    111  
     122{{{ 
     123$ cd tools/config 
     124$ ant security.create.admin.config 
     125}}} 
    112126Define $ORCA_HOME (e.g. export ORCA_HOME=/opt/orca) 
    113   ''cp -r runtime/ $ORCA_HOME'' 
    114  
    115   ''cp -r scripts/ $ORCA_HOME'' 
     127{{{ 
     128$ cp -r runtime/ $ORCA_HOME 
     129$ cp -r scripts/ $ORCA_HOME 
     130}}} 
    116131 
    117132Edit the configuration files (container.properties etc.) under webapp/ and similarly copy it under the $ORCA_HOME 
    118   ''cd ../../webapp'' 
    119   ''vi config/container.properties'' 
    120   ''cp -r config/ $ORCA_HOME'' 
    121  
     133{{{ 
     134$ cd ../../webapp 
     135$ vi config/container.properties 
     136$ cp -r config/ $ORCA_HOME 
     137}}} 
    122138Edit the tomcat startup script start.sh by adding statement 
    123   ''export ORCA_HOME=/opt/orca'' 
     139{{{ 
     140export ORCA_HOME=/opt/orca 
     141}}} 
    124142to it.