L2J Bully
Would you like to react to this message? Create an account in a few clicks or log in to continue.


L2j Bully Forum
 
HomeLatest imagesSearchRegisterLog in

 

 [GUIDE] How to Compile L2J Packs with MAVEN ! (+Images)

Go down 
AuthorMessage
Admin
Admin
Admin


Number of posts : 19
Registration date : 2008-11-22

[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) Empty
PostSubject: [GUIDE] How to Compile L2J Packs with MAVEN ! (+Images)   [GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) I_icon_minitimeSat Nov 22, 2008 8:48 pm

Note that my photos are for illustrative purposes only, and are taken from vista ultimate windows.

1st Step: What do i need?

See the end of this page for links.

We need eclipse, and java jdk se. For vista windows, search for the compatible versions of this software (as i provide for XP but i have vista).

2nd Step: Installing java

We don't need a photo for this, just a common installer.

3rd Step: Installing Eclipse and subeclipse/Main guide

First, we download eclipse, and we extract it to any folder. Now, we run eclipse.exe and we select our workspace (whatever you wish) and we press ok.

[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 1DTTt84z
For me, i choose C:\Documents and Settings\EkoIce\workspace

Now we are in the welcome screen. Press that X button on its tab, i don't like it Nice, we go on. Now, go to help (upper right corner of the program's screen) then to software updates and finally to Find and Install.

[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 2ovEb65T
Now we select Search new features to install

[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 3NbYSn
Then we use New remote side

[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 58x7dSU
Now we check the subeclipse and press Finish

[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 63PSyzX
And now we type the following
Code:

Name:subeclipse
URL:http://subclipse.tigris.org/update
As you can understand, we are installing SubEclipse. We need it.

Now we go on and press Finish, and wait for some time until it finish search. Now we check subeclipse and press next

[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 7QcuAY
Now we select: Accept the terms of the license agreements, we press next, and finally finish for one more time.
We have to wait for some time now... The download can take some seconds or minutes (Depending on your internet connection).
Now, after our download ends, we select install all and then we have to accept the restart of our eclipse. Wait, it will start again by itself.
We select again our workspace and we go on...
Now we go to window (upper right corner of program's screen) then to show view and then other.asa
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 8OWJC44B

We select SVN Repository
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 9u6FxAK0G

Now we enter the svn repository location (we first use right click on the new tab on the white space, then new and finally Repository location.
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 10YJBGui5

We add these info for L2Emu Repository : http://tools.assembla.com/svn/L2Emuproject
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 11gd5zGkc6

Now there is a new SVN in our screen. Click on that cross (in order to expand it), then trunk and right click on (By Order or as you like to ) : L2Emu-Login or L2Emu-Gameserver or L2Emu-Datapack and then check out...
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 12h1B3fcEt

After that, select checkout as project in the workspace and select finish.
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 13WNyhEKP

Now wait, it will take some time, it's about 8mb download... When it finish, go on to the next step.

Now we have to configure java. Go to window (upper right corner of program's screen) and then preferences. Check that cross on java (in order to expand that box) and then click on Installed JREs. Select jdk and unselect jre (if you have both of them installed). Press ok. (Remember that if it can't find it, you have to add the path manually using the add button... for me the path is: C:\Program Files\Java\jdk1.6.0_06
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 14NLIgK
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 15lxrOKD

Now we Start the Maven Setup :

right click on "My Computer", Advanced , environment variables..
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 1QuiJl

Then, click on NEW at System Variables and Write as the Screen :
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 2cyZm9
Code:
new: JAVA_HOME
value : C:\Program Files\Java\jdk1.6.0_06
then download Maven (Search on google.com) and Unrar it in the C:\ Directory, like the Screen.
then => Start, Run , cmd and Write as showed in the screen : cd C:\maven-2.0.8\bin
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 3IZBnu

then Press ENTER and after you pressed it write : mvn
and wait ...
you will recieve an error..
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 5CG81p

then try to write : mvn install
then you will recieve the "FAIL Build" we are looking for (after some downloads) Razz
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 6CuSCy2V6

well done..Close the Cmd Promt and lets open again Eclipse to configure the Maven Plugin...

Press on help----> software updates---> find and Install --> * Search for new features to install, click on New Remote Site and enter:

Code:
Name:m2plugin
URL:http://m2eclipse.sonatype.org/update/

click finish -->
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 7V7qIbP5J
put option Maven Integration With "v" (you will see optional componets witchs is uneeded dont use it.)
-->> next --> accept terms --> next --> finish . (wait til update finish , now eclipse will downloading and install m2plugin sources.. wait be patient).

again press "install all " eclipse will ask to restart click "yes".

Now lets Do the M2_REPO SETUP

press on window --> preferencies --> java--> build path -- classpath variables--> click "new"
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 8FUKC9G

name : M2_REPO

click "folder"
Path: (the path where m2 created the repository ), normally it is

PATH : System Drive:/Documents and Settings/user/.m2/repository
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 9NjfFDW6B


Now Lets Download the LIbraries

rigth click on L2Emu-Login folder ---- > maven2-- > enable dependency management ( wait now if you didi all correct eclipse will download all libraries and dependencies )and wait a lil bit Very Happy
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 1nIyTB

Then..
rigth click on L2Emu-Gameserver folder ---- > maven2-- > enable dependency management ( wait now if you didi all correct eclipse will download all libraries and dependencies )
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 2YuSAQA
Wait again Untill it finish Razz

After it finish, we need to create configurations for you build your gs/ls with maven.
right click on gameserver...run as..Open run dialog.....>
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 1mqE1o4

on m2 build ......> rigth click --- new ...
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 2ibVJD

then Write :
name: L2Emu LoginServer Eclipse
base directory : ${workspace_loc:/L2Emu-Login}
goals: eclipse:clean eclipse:eclipse
apply ...Run and wait a lil bit
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 3rjxQNBA

After that again do
new m2 build again

name:L2Emu GameServer Eclipse
base directory : ${workspace_loc:/L2Emu-Gameserver}
goals: eclipse:clean eclipse:eclipse
apply...Run and wait a lil bit
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 5XbDNJHJy

After that again do
new m2 build again

name: L2Emu LoginServer Build
base directory : ${workspace_loc:/L2Emu-Login}
goals: assembly:assembly


click "add"
name: maven.test.skip
value: true
apply ... Run
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 6uJomUiL

Do the same for the last time...
After that again do
new m2 build again

name: L2Emu Gameserver Build
base directory : ${workspace_loc:/L2Emu-Gameserver}
goals: assembly:assembly


click "add"
name: maven.test.skip
value: true
apply ... Run
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 77MxWlx7

now we have 4 builds:

ls eclipse
ls build
gs build
gs eclipse
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 8xk4ZF6

run ls build/ gs build/ to compile ls and gameserver,
How ? click on the Button showed in the Screenshot =>
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 11ckF6LhXk
Do the same for Login and Gameserver (by right-clicking on them separately)


where is the server? on target folder.
the login for example :
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 1jHKNkiG


for datapack just rigth click on build.xml and select "run as ant build" and pack will be in build folder.
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 2fC8bgSq
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images) 3g3NyN

I Have posted those Screens to Help ALL the New Members who choose to compile with Eclipse the L2Emu Packs.
I hope this topic will be Usefull, as Usefull was for me the first guide made by Rayan (respect).
This guide basically shows you ALL , Step by Step, HOW TO COMPILE L2EMU PACKS WITH MAVEN.

the Sofwares needed for a Nice and Sucsessfull Compilation are :

Java jdk 1.6 update 6 => Download to : http://www.sun.com
- Eclipse 3.3.2 SDK CLASSIC => Download to : http://www.eclipse.org/downloads/
- Maven 2.0.8 (zip) or better http://www.apache.org

Glad to Help out, Yours SeiferRealm
Back to top Go down
http://l2jturkey.yetkinforum.com
 
[GUIDE] How to Compile L2J Packs with MAVEN ! (+Images)
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
L2J Bully :: Lineage II Development English-Turkish Section :: [General] Lineage II Develop [L2J] English-
Jump to: