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 javaWe don't need a photo for this, just a common installer.
3rd Step: Installing Eclipse and subeclipse/Main guideFirst, 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.
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.
Now we select Search new features to install
Then we use New remote side
Now we check the subeclipse and press Finish
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
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
We select SVN Repository
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.
We add these info for L2Emu Repository : http://tools.assembla.com/svn/L2Emuproject
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...
After that, select checkout as project in the workspace and select finish.
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
Now we Start the Maven Setup :
right click on "My Computer", Advanced , environment variables..
Then, click on NEW at System Variables and Write as the Screen :
- 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
then Press ENTER and after you pressed it write : mvn
and wait ...
you will recieve an error..
then try to write : mvn install
then you will recieve the "FAIL Build" we are looking for (after some downloads)
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 -->
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"
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
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
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 )
Wait again Untill it finish
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.....>
on m2 build ......> rigth click --- new ...
then Write :
name: L2Emu LoginServer Eclipse
base directory : ${workspace_loc:/L2Emu-Login}
goals: eclipse:clean eclipse:eclipse
apply ...Run and wait a lil bit
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
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
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
now we have 4 builds:
ls eclipse
ls build
gs build
gs eclipse
run ls build/ gs build/ to compile ls and gameserver,
How ? click on the Button showed in the Screenshot =>
Do the same for Login and Gameserver (by right-clicking on them separately)
where is the server? on target folder.
the login for example :
for datapack just rigth click on build.xml and select "run as ant build" and pack will be in build folder.
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