Jump to content

Recommended Posts

Posted

SVN Guide,

 

What do you need?

- Java jdk 1.4 and or higher Java

- Eclipse 3.1 or better Eclipse

- maven 2.0.6 or better Maven

 

And now what ¿?

 

1) Install Java

2) unpack Eclipse

2.1) download and unpack maven.

 

 

3)- Run eclipse

 

4)- Press on help----> software updates---> Search new features to install, click on New Remote Site and enter:

 

Code:

Name:subeclipse

URL:http://subclipse.tigris.org/update

 

6)- press ok and finish, check subeclipse to install and press next, accept the terms, next and finish.

 

7)- now eclipse is downloading subeclipse, be patient, when it finishes press on install all and then on yes when it ask you to restart eclipse.

 

8)- now subeclipse (the svn module for eclipse) is installed. ok. close eclipse.

 

first part completed congrats biggrin.gif

-----------------------------------------------------

seconf part now we need to setup maven.

 

start.....> control panel.....> system ........>advanced.........> environment variables ....>

 

new: JAVA_HOME

value: you java installation folder (including bin)

exemple: E:\Arquivos de programas\Java\jdk1.6.0\bin

 

ok close....

 

start........... run............ cmd

 

(on cm screen) lead cmd to folder where you unpacked maven and enter bin folder

 

exemple: cd c:/maven-2.0.7/bin

 

(when cmd be on bin folder type "mvn" without the " ".

 

now you will get a message "build failure" .. all ok thats normal close cmd.

 

 

second part finished. congratz again tongue.gif

--------------------------------------------------------

open eclipse again.....

 

1)- Press on help----> software updates---> Search new features to install, click on New Remote Site and enter:

 

Code:

Name:m2plugin

URL:http://m2eclipse.codehaus.org

 

accept terms wait til update finish (this step will install maven plugin on your eclipse).

 

ok.... after finish show view--- other----- svn repository.

 

rigth click on svn repository widow:

 

new---> repository location:

 

 

2)- rigth Click on gameserver/loginserver/datapack and select "Check out"

select check out as project to start downloading the sourcecode

 

 

3)- When this finishes (be patient, this will take some time) you will see a new project with the latest svn sourcecode of l2emu project.

 

ok third part finished biggrin.gif

--------------------------------

 

 

now we need to setup eclipse for maven.

 

1) window ------> preferences ------- installed JREs ( you must point to eclipse where you installed

yor JDK and not JRE ) click "search" and select the folder where is your java installation, eclipse will automatically detect jdk after you do this. mark the "v" on the jdk ok. close.

 

2) rigth click on gameseverver/loginserver on maven option, choose "enable".

 

2) window --- preferences --- > java -- > build path ---> classpath variables

 

 

new ...........>

 

name: M2_REPO

path: your path to maven ( this is the place where maven created repository folder after that "mvn" on enable command).

 

exemple:

E:/Documents and Settings/Rayan RPG/.m2/repository

 

at this time some download will occur just wait.

 

 

third part finished.

 

--------------------

 

fourty party (last one )

 

 

now we need to create configurations for you build your gs/ls withg maven.

 

ok lets go.......... click run .....> external tools .........> open external tools dialog...

 

on m2 build ......> rigth click --- new ...

 

name: L2Emu LoginServer Eclipse

base directory : ${workspace_loc:/L2Emu_LoginServer_IL}

goals: eclipse:clean eclipse:eclipse

apply ok...

 

run......

refresh your workspace on loginserver.....

 

new m2 build again

 

name:L2Emu GameServer Eclipse

base directory : ${workspace_loc:/L2Emu_GameServer_IL}

goals: eclipse:clean eclipse:eclipse

apply ok...

 

run......

refresh your workspace on gameserver.....

 

new m2 build again

 

name: L2Emu LoginServer Build

base directory : ${workspace_loc:/L2Emu_LoginServer_IL}

goals: assembly:assembly

 

 

click "add"

name: maven.test.skip

value: true

apply ok.

 

 

new m2 build again

 

name:L2Emu GameServer Build

base directory : ${workspace_loc:/L2Emu_GameServer_IL}

goals: assembly:assembly

 

 

click "add"

name: maven.test.skip

value: true

apply ok.

 

 

now we have 4 builds:

 

ls eclipse

ls build

gs build

gs eclise

 

run ls build/ gs build/ to compile ls and gameserver,

 

where is the server? on target folder.

 

 

for datapack just rigth click on build.xml and select "run as ant build" and pack will be inm build folder.

 

All Credits to L2Emu

 

Vrika bug pano se ayton ton guide

start.....> control panel.....> system ........>advanced.........> environment variables ....>

pate sto Java_Home kai sviste to Bin..meta pate path kai valte ayto

C:\Program Files\Java\jdk1.6.0_04;C:\maven\bin

to maven valteto  ton fakelo panta ston C:\ kai metanomasteto se maven!

elpizo na doulepsei

 

Posted

Nice Guide .. alla me liges eikones 8a htan pio katanohto pistebw!

Exeis dikio File vent00za...eixa ena prob me to eclipse m sintoma tha valw eikones

  • 1 year later...
Posted

Oreo topic man .alla iparxoun kai kalitera kai me photo ..an evazes photo tha htan kalo :D

260 post k akoma na ma8eis oti dn postaroume se palia topiCs? Diabase tous kanones....!!!! last warning

 

LockeD!

Guest
This topic is now closed to further replies.
×
×
  • Create New...