Ubuntu Pastebin

Paste from Pavel Sayekat | Pavlushka at Mon, 6 Feb 2017 11:38:08 +0000

Download as text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
=====================================================================
OpenERP - An Open Source Enterprise Resource Planning Written in Java
=====================================================================

This document describes the installation of OpenERP from the source code
distribution. Out of the box, OpenERP 1.0 requires the following tools:

- Virtual Machine (JDK 5.0 or later)
- IDE (Eclipse 3.1.0 or later)
- UML Modeling (Magic Draw 9.5)
- Build Tool (Maven 1.0.2)
- Database (PostgreSQL, Oracle or another JDBC Compliant)
- Application Server (Apache Tomcat 5.5.12 or later)

========================
Installing OpenERP Tools
========================

(1) Download and Install the J2SE Development Kit (JDK)

(1.1) Download the Java 2 Standard Edition Development Kit (JDK) release
      version 5.0 or later, from http://java.sun.com/j2se/1.5.0/download.jsp.
(1.2) Install the JDK according to the instructions included with the release.
(1.3) Set an environment variable named JAVA_HOME to the pathname of the 
      directory into which you installed the JDK, e.g. /usr/java/jdk1.5.0_06.
    
(2) Download and Install the IDE

(2.1) Download the Eclipse SDK release version 3.1.0 or later, from
      http://www.eclipse.org/downloads.
(2.2) Install the Eclipse SDK according to the instructions included with the
      release.
(2.3) Eclipse can be run by executing the following command:
      
      /usr/local/eclipse/eclipse
    
(3) Download and Install the UML Modeling

(3.1) Download the MagicDraw UML Community Edition release version 8.0 or later,
      from http://www.magicdraw.com.
(3.2) Install the MagicDraw UML Community Edition according to the instructions
      included with the release.

(4) Download and Install the Build Tool

(4.1) Download the Maven release version 1.0.2, from
      http://maven.apache.org/maven-1.x/start/download.html.
(4.2) Install the Maven according to the instructions included with the release.
(4.3) Set an environment variable named MAVEN_HOME to the pathname of the 
      directory into which you installed the Maven, e.g. /usr/local/maven.

(5) Download and Install the Application Server

(5.1) Download the Apache Tomcat release version 5.5.12, from
      http://tomcat.apache.org/download-55.cgi.
(5.2) Install the Apache Tomcat according to the instructions included with the
      release.
(5.3) Apache Tomcat can be run by executing the following commands (the symbolic name 
      "$CATALINA_HOME" is used to refer to the full pathname of the release directory):

      $CATALINA_HOME/bin/startup.sh     (start)
      $CATALINA_HOME/bin/shutdown.sh    (stop)
          
===================
Configuring OpenERP
===================

(1) Initials Configurations

(1.1) Unpack the openerp source code by executing:

      tar -zxf openerp-src-1.0.tar.gz

(1.2) Move the openerp dir to the workspace dir from Elipse.
(1.3) Go into the openerp dir and execute the following command to set the libraries
      of the project:

      maven eclipse

(2) Configuring the Database

(2.1) Execute the following command at the application directory: 
      
      maven base:builddb

(3) Configuring the IDE

(3.1) Create a Java Project called openerp.
(3.2) In Java Build Path properties change the source folder to openerp/src/java and
      target/srcGenerated/java and the output folder to openerp/target.


================
Building OpenERP
================

To build the OpenERP you need use the Maven. The goals are listed below with their own
functions:

- base:clean         - Removes the application and create the final directories.
- base:builddb       - Drop the database and create a new database, export the openerp
		       schema and create the tables and set the initial values.
- base:build         - Build the entire application: clean, generate sources and create the
		       war file.
- base:deploy        - Build the entire application and deploy to tomcat directory.
- base:deploy-only   - Only deploy the war to tomcar directory.
- base:war-deploy    - Create war (compiling java classes) and deploy to tomcat directory.
- base:jsp-deploy    - Deploy web content without compile java classes.
Download as text