nuxeo 5 installation with eclipse

Post on 17-May-2015

1.593 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Nuxeo EP 5Nuxeo EP 5

Nuxeo 5 Compilation and Nuxeo 5 Compilation and Deployment with EclipseDeployment with Eclipse

Jean Marie PASCALJean Marie PASCALjeanmarie.pascal@gmail.comjeanmarie.pascal@gmail.com

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 2

Install a development environment with EclipseInstall a development environment with Eclipse Compile Nuxeo source codesCompile Nuxeo source codes

• Goals

• Steps JVM Installation Maven Installation Ant Installation JBoss AS Installation Eclipse and its plugins Installation Nuxeo 5 source code Compilation et Deployment

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 3

Configuration UsedConfiguration Used Operating System : Operating System :

Windows XP SP2Windows XP SP2

ProcessorProcessor Intel Core 2 DuoIntel Core 2 Duo

Computer memoryComputer memory 2Gb (1Gb Minimum Required)2Gb (1Gb Minimum Required)

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 4

JVM InstallationJVM Installation

Download JDK last versionDownload JDK last versionResourceResource : : SUN websiteSUN website (Version 5 compulsory!!!!)(Version 5 compulsory!!!!)

jdk-1_5_0_14-windows-i586-pjdk-1_5_0_14-windows-i586-p

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 5

JVM InstallationJVM Installation Open the downloaded file and follow the Open the downloaded file and follow the

installation wizard steps…installation wizard steps…

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 6

JVM InstallationJVM Installation

Check the installationCheck the installationOpen the Command Prompt Open the Command Prompt

Start Menu Start Menu Run… Run…

Enter the command « java –version » Enter the command « java –version »

Check the above message is displayedCheck the above message is displayed

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 7

JVM InstallationJVM Installation Check the installation of the environment variablesCheck the installation of the environment variables

Create a new one if the environment variable doesn’t exist.

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 8

Define the environmentDefine the environmentvariables variables

Define the CLASSPATH variable: Define the CLASSPATH variable:

Define the PATH variable: Define the PATH variable:

Note : Refer to the previous slide to know how to create an Note : Refer to the previous slide to know how to create an environment variable.environment variable.

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 9

Maven InstallationMaven Installation

Download Maven last versionDownload Maven last versionResourceResource : : Maven.apache.orgMaven.apache.org

Unzip the downloaded file in the following folder Unzip the downloaded file in the following folder C:\opt\C:\opt\

Then you get MAVEN_HOME : Then you get MAVEN_HOME : C:\opt\apache-maven-2.0.8C:\opt\apache-maven-2.0.8

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 10

Define the Define the environment variablesenvironment variables

Define MAVEN_HOME variable: Define MAVEN_HOME variable:

Define MAVEN_OPTS variable: Define MAVEN_OPTS variable:

Define PATH variable:Define PATH variable:

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 11

Ant InstallationAnt Installation

Download Ant last versionDownload Ant last versionResourceResource : : ant.apache.organt.apache.org

Unzip the downloaded file in the following folderUnzip the downloaded file in the following folderC:\opt\C:\opt\

Then you get ANT_HOME : Then you get ANT_HOME : C:\opt\apache-ant-1.7.0C:\opt\apache-ant-1.7.0

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 12

Define theDefine theenvironment variablesenvironment variables

Define ANT_HOME variable: Define ANT_HOME variable:

Define ANT_OPTS variable: Define ANT_OPTS variable:

Define PATH variable:Define PATH variable:

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 13

Ant InstallationAnt Installation

Check the installationCheck the installationOpen the Command Prompt Open the Command Prompt

Start Menu Start Menu Run… Run…

Type the command « ant –version » Type the command « ant –version »

Check the above message is displayedCheck the above message is displayed

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 14

Installation de jBoss ASInstallation de jBoss AS

Télécharger la version 4.0.5Télécharger la version 4.0.5RessourceRessource : : SourceForge.netSourceForge.net

Remarque Préliminaire : Remarque Préliminaire : Le répertoire d’installation est JBOSS_HOME : Le répertoire d’installation est JBOSS_HOME : C:\opt\jbossC:\opt\jboss

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 15

jBoss AS InstallationjBoss AS Installation Open the downloaded file and follow the Open the downloaded file and follow the

installation wizard instructions…installation wizard instructions…

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 16

Eclipse Installation Eclipse Installation Download Europa version 3.3Download Europa version 3.3

ResourceResource : : Eclipse.orgEclipse.org

Unzip the downloaded file in the following folderUnzip the downloaded file in the following folderC:\opt\C:\opt\

Then you get ECLIPSE_HOME : Then you get ECLIPSE_HOME : C:\opt\eclipseC:\opt\eclipse

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 17

Eclipse Installation Eclipse Installation Create a workspaceCreate a workspace

Previous note: Previous note: Go to the following website for further Go to the following website for further

information about Eclipse configuration for information about Eclipse configuration for NuxeoNuxeo

http://svn.nuxeo.org/trac/nuxeo/browser/tools/eclipse-confighttp://svn.nuxeo.org/trac/nuxeo/browser/tools/eclipse-config

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 18

Subclipse InstallationSubclipse Installation

More information : More information : http://subclipse.tigris.org/install.htmlhttp://subclipse.tigris.org/install.html

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 19

Get the sourcesGet the sources Restart Eclipse and follow the steps Restart Eclipse and follow the steps

described belowdescribed below

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 20

Eclipse JBoss Tools Eclipse JBoss Tools plugin Installationplugin Installation

Download the last version - 2.0.0GADownload the last version - 2.0.0GAResourceResource : : labs.jboss.comlabs.jboss.com

Unzip the downloaded file in the following folderUnzip the downloaded file in the following folderC:\opt\C:\opt\

Restart Eclipse and check the new icons are Restart Eclipse and check the new icons are displayeddisplayed

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 21

In case these behaviors occur…In case these behaviors occur…

If the new icons don’t appear… Open the Command Prompt

Menu Start Run cmdGo to ECLIPSE_HOMEType the command « eclipse –clean »

If this operation doesn’t solve the problem, check if the installation done when you unzipped jbossTools file has been properly done.

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 22

Sources CompilationSources Compilation In the Explorer packageIn the Explorer package

Remove the extension « .sample » from the name Remove the extension « .sample » from the name of the « build.properties » fileof the « build.properties » file

Edit the file and define the path to the Jboss Edit the file and define the path to the Jboss server server

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 23

Using Ant for Using Ant for Nuxeo deployment Nuxeo deployment

Open the Ant viewOpen the Ant view

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 24

Using Ant for Using Ant for Nuxeo deploymentNuxeo deployment

Drag and drop the file called « build.xml » in the Ant view Then :

Double click on the patch commandAnd be patient… until it says:

Double click on the deploy commandAnd be patient…until it says:

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 25

To be aware of…To be aware of… A A ((futurefuture)) error might be raised concerning the application.xml file. error might be raised concerning the application.xml file.

When the server starts, it then notices this file is not in the following When the server starts, it then notices this file is not in the following folder:folder:

JBOSS_HOME\server\default\deploy\nuxeo.ear\META-INFJBOSS_HOME\server\default\deploy\nuxeo.ear\META-INF

To solve this problem before it occurs, you can copy the To solve this problem before it occurs, you can copy the application.xmlapplication.xml and and jboss-app.xml files jboss-app.xml files from the following folderfrom the following folder

NUXEO_HOME\server\default\deploy\nuxeo.ear\META-INFNUXEO_HOME\server\default\deploy\nuxeo.ear\META-INF(you get this folder from the basic installation) (you get this folder from the basic installation)

Paste them into the following folderPaste them into the following folder

JBOSS_HOME\server\default\deploy\nuxeo.ear\META-INFJBOSS_HOME\server\default\deploy\nuxeo.ear\META-INF

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 26

Create a server withCreate a server withJboss ToolsJboss Tools

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 27

Using Jboss Tools to Using Jboss Tools to start the serverstart the server

Open the Server viewOpen the Server view

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 28

Start the applicationStart the application Right click on the server

and select Start

Be patient again until the following message in displayed in the Console view:

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 29

Start the applicationStart the application

Open an Internet browserOpen an Internet browser Link : Link : http://localhost:8080/nuxeo/http://localhost:8080/nuxeo/

Login : AdministratorLogin : AdministratorPassword : AdministratorPassword : Administrator

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 30

Enjoy yourself !

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 31

24/02/08 http://opensourceecm.blogspot.com/search/label/Nuxeo 32

For further information…For further information…Documentation and ScreencastsDocumentation and Screencasts

http://www.nuxeo.org/sections/documentation/http://www.nuxeo.org/sections/documentation/

More about installationMore about installation http://doc.nuxeo.org/current/reference/html/nuxeo-book.htmlhttp://doc.nuxeo.org/current/reference/html/nuxeo-book.html

WebSite WebSite http://www.nuxeo.org/http://www.nuxeo.org/ http://www.nuxeo.com/http://www.nuxeo.com/

top related