Jump to content

[Guide]Compile with maven [without eclipse]


Recommended Posts

First of all you need jdk so download it from here and install it

Click me to download JDK

 

Part 1)Go and download maven from here (select the first mirror it gives)

Click me to download Maven

35i3bja.jpg

 

Then extract it (select extract here[!!]) and rename the folder from apache-maven-2.0.9 to maven and when you open it, it should look like the ss

width=600 height=480http://i33.tinypic.com/4h3viu.jpg[/img]

 

Then move it to your local disc (C:\ or whatever)

width=600 height=480http://i36.tinypic.com/4s1mhk.jpg[/img]

 

Ok so now go to start > run > type cmd and a window should open

width=600 height=480http://i37.tinypic.com/ve9h5c.jpg[/img]

 

In that window type C:\maven\bin\mvn install (C:\ can be replaced with D:\-E:\ or whatever your local disc is named)

It will download some updates leave it till it says built error --->this is normal

 

 

 

Part 2)Good now you installed maven..so let's go to TortoiseSVN-download it from here(IMPORTANT DON'T DOWNLOAD A NEWER VERSION!)

Click me to download TortoiseSVN

 

And then go on and install it..in the end it will show you a window and it will ask to restart press YES

width=600 height=480http://i38.tinypic.com/f03g9s.jpg[/img]

 

Good now lets install subversion..download subversion from here and install it

Click me to download subversion

 

 

 

Part 3)Lets go on with java

Right click on "My computer" --> advanced --> environment tables

Then, click on NEW at System Variables and write

 

name : JAVA_HOME
value : C:\Program Files\Java\jdk1.6.0_07

width=600 height=480http://i36.tinypic.com/rib6fl.jpg[/img]

Press ok and restart your pc for the changes to take effect!

 

 

 

Part 4)Good!Now it's time for checkout ;) go to your hard disc and create a new folder called l2jfree or whatever.Then right click and select

"checkout" and fill in like in picture where it says url this

http://svn.l2jfree.com/svn/l2j-free/archive/CT2.2/

and press ok! (currently Gracia part 2)

width=600 height=480http://i37.tinypic.com/14sjypg.jpg[/img]

 

Good it will start downloading..wait till it finishes!

width=600 height=480http://i37.tinypic.com/2uhviqh.jpg[/img]

 

 

 

Part 5)Ok so now we go again to cmd (check part 1 if you don't remember how)

Open it and type

cd C:\L2jfree\l2jfree-core

 (see the pic) and press enter

then write C:\maven\bin\mvn clean:clean

width=600 height=480http://i36.tinypic.com/11bp7pt.jpg[/img]

 

It will download some things so w8 till it says build successful ..

width=600 height=480http://i35.tinypic.com/2lub4zq.jpg[/img]

 

The type

C:\maven\bin\mvn assembly:assembly -Dmaven.test.skip=true

and press enter..

this will download again some things and compile the core! [it will take some time]

width=600 height=480http://i33.tinypic.com/23tfgbt.jpg[/img]

Thats it! When it says build successful your core has been compiled!

width=600 height=480http://i34.tinypic.com/r7osc6.jpg[/img]

 

You can find it in the folder target see pic

width=600 height=480http://i35.tinypic.com/2wqv4hz.jpg[/img]

 

->To compile the login server do the same thing!

 

PS If it gives an error like the ss and says outofmemory error add this  http://rapidshare.com/files/161782475/mvn.bat

width=640 height=400http://i38.tinypic.com/b6yr6h.jpg[/img]

 

 

 

->Credits for the guide and images go to me!

The reason i wrote this is that many people have problems compiling l2jfree without eclipse so here is the best way to do it!

 

=]

 

 

 

 

 

 

 

Link to comment
Share on other sites

+1 from me , its simple have photos to make it easier, and works

 

(i will update subversion 4 u in RS , dont worry)

 

[EDIT]

 

Add it to your post Ace

 

http://rapidshare.com/files/161592099/CollabNetSubversion-client-1.5.4-1.win32.exe

Link to comment
Share on other sites

GrisoM ;O first post updated

 

i believe this is better than eclipse in some ways..

 

btw i searched and a guide on how to apply a patch doesn't exist

so this will be my next guide

 

anyway for questions feel free to ask me

Link to comment
Share on other sites

hmmm so now if i want to fix something in java files i must use eclipse or what? oohh and i have this problem when  i try this  C:\maven\bin\mvn assembly:assembly -Dmaven.test.skip=true

 

jstkn7rq1lshsg7a56wy_thumb.jpg

Link to comment
Share on other sites

the problem is your memory see error it says-->outofmemory

 

to fix it go to your maven folder in your disc,open it,open bin and add this

 

http://rapidshare.com/files/161782475/mvn.bat

 

btw first post updated.

Link to comment
Share on other sites

ok i will try and i will tell you if it works btw thanks again :)..

 

 

it works :)..now if i want to fix some java files i must use eclipse?

 

nop!just go to the l2jfree-core folder open it,then open src->main->java->com->l2jfree and there you will find all the java files!

 

if you want to apply patch or create one (if you know how) just go to the l2jfree-core and open it,then right click and select apply or create patch (see pic)

http://i36.tinypic.com/16krwjo.jpg

 

TortoiseSVN is a very good tool with lots of uses ;)

Link to comment
Share on other sites

so this is good..but if you can post a quide how can i apply a patch ?:P..px.i want to change say2.java how can i apply it? soz for alla tha questions xexe

you want to fix the announce exploit eh? ;P

anyway it is already fixed in l2jfree so :P

 

I will post guide about applying patch tomorrow..need sleep xD

Link to comment
Share on other sites

you want to fix the announce exploit eh? ;P

anyway it is already fixed in l2jfree so :P

 

I will post guide about applying patch tomorrow..need sleep xD

are u sure for this?

if u mean for CT1++ it's fixed but if u mean for IL it's not fixed...!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock