Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

L2J Best Guide for compile with maven!

u3x

Initiate Mage
Joined
Apr 17, 2009
Messages
1
Reaction score
0
Re: [Share]Best Guide for compile with maven!

Hi there,

Ok, first of all I have latest version of maven, and been trying to make him compile all morning, still no results. My problem lies to that, maven cant communicate with svn, but thats my more opinion, than a fact.
I run on ubuntu 8.10, and maven 2.0.9-2. My subversion is 1.5.1.
While searching, i found, that maven communicates with svnkit, but, couldnt bring them together.
Although i didn't try of using the eclipse/maven plugin, bet will do when i have more time.
So writing here is my part one of "giving up", becouse i couldnt make things work :)

oh, and yeah,

$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - l2jfree:l2j-gameserver:jar:1.0.0
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: default}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot get the revision information from the scm repository :
svn: This client is too old to work with working copy '/home/marka/Desktop/interlude/faction/l2j-free/archive'; please get a newer Subversion client

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Apr 22 10:21:27 EEST 2009
[INFO] Final Memory: 8M/117M
[INFO] ------------------------------------------------------------------------


U3,
Cheers

-- Edit

Oh and yeah, um, I didn't find anywhere this kind of problem, so I posted it.

-- Edit2
Ok, ill try to emulate windows, and compile there. I think this should help, but still wondering, how to compile in linux :?
 
Last edited:
Elite Diviner
Joined
Dec 23, 2006
Messages
492
Reaction score
0
Re: [Share]Best Guide for compile with maven!

In these days i will make a guide how to compile with maven in linux with eclipse.....(As base i will use debian distro)
 
Initiate Mage
Joined
Feb 11, 2009
Messages
2
Reaction score
0
Re: [Share]Best Guide for compile with maven!

Hi, thanks god, compiling is successfull. But compiled stuff doesn't want to work! :( There is error message from my console when i starting gameserver on windows:

Starting l2jfree

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

at com.l2jfree.gameserver.GameServer.main(GameServer.java:457)

Server terminated abnormaly


server terminated

Press any key to continue . . .

BTW, nice guide.
 
Initiate Mage
Joined
Dec 24, 2007
Messages
1
Reaction score
0
Re: [Share]Best Guide for compile with maven!

Ready to compile?
Open cmd again (I assume you are located at C:/Documents and Settings/YourUserName) and type
"cd Server"
"cd trunk" (again,this is your checked out project's name)
"cd l2_loginserver_il" (it can be l2_gameserver_il or l2_datapack_il)(and again without the "" 's)
then
"C:/maven/bin/mvn"
and it will compile.

This is for L2jFree compiling.
You must be joking??:ehh: Where is the command to compile this project? Or maybe should compile by itself ?:scared:
 
Newbie Spellweaver
Joined
Jun 2, 2007
Messages
15
Reaction score
0
Re: [Share]Best Guide for compile with maven!

Ive been trying the whole day and i keep getting this error :( Can anyone help?
I tried the turtorial over and over and i keep getting this error.
-----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'org.codehaus.mojo:ma
ven-buildnumber-plugin:0.9.5:create': Unable to load the mojo 'org.codehaus.mojo
:maven-buildnumber-plugin:0.9.5:create' in the plugin 'org.codehaus.mojo:maven-b
uildnumber-plugin'. A required class is missing: org/apache/maven/scm/ScmResult
org.apache.maven.scm.ScmResult
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Sep 25 18:12:39 CEST 2009
[INFO] Final Memory: 6M/11M
[INFO] ------------------------------------------------------------------------
D:\L2JFree\tags\Core Version 1.1.4>
 
Last edited:
Newbie Spellweaver
Joined
Nov 15, 2005
Messages
46
Reaction score
0
Re: [Share]Best Guide for compile with maven!

I got this error when i try to compile from L2Jfree trunk

Code:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building l2jfree-core-1.4.0-SNAPSHOT
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: default}]
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: D:\L2Jfree\l2jfree-core
[INFO] Storing buildNumber: 8609 at timestamp: 1277062032436
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: D:\L2Jfree\l2jfree-core
[INFO] Storing buildScmBranch: trunk
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] snapshot l2jfree:l2j-commons:1.4.0-SNAPSHOT: checking for updates from l2
jfree
[INFO] snapshot l2jfree:l2j-mmocore:1.4.0-SNAPSHOT: checking for updates from l2
jfree
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 1681 source files to D:\L2Jfree\l2jfree-core\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\model\actor\i
nstance\L2DefenderInstance.java:[106,44] cannot find symbol
symbol  : method isActive()
location: class com.l2jfree.gameserver.model.zone.L2Zone

[ERROR] \L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\model\actor\i
nstance\L2DefenderInstance.java:[109,40] cannot find symbol
symbol  : method isActive()
location: class com.l2jfree.gameserver.model.zone.L2Zone

[ERROR] \L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\model\actor\i
nstance\L2DefenderInstance.java:[124,14] cannot find symbol
symbol  : method isRegisteredOnThisSiegeField(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

[ERROR] \L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\model\actor\i
nstance\L2DefenderInstance.java:[139,13] cannot find symbol
symbol  : method isRegisteredOnThisSiegeField(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

[ERROR] \L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\network\clien
tpackets\EnterWorld.java:[293,15] cannot find symbol
symbol  : method setSiegeSide(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

[ERROR] \L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\network\clien
tpackets\EnterWorld.java:[298,15] cannot find symbol
symbol  : method setSiegeSide(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

[ERROR] \L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\network\clien
tpackets\EnterWorld.java:[309,15] cannot find symbol
symbol  : method setSiegeSide(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

[ERROR] \L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\network\clien
tpackets\EnterWorld.java:[314,15] cannot find symbol
symbol  : method setSiegeSide(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

[INFO] 8 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

\L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\model\actor\instance\
L2DefenderInstance.java:[106,44] cannot find symbol
symbol  : method isActive()
location: class com.l2jfree.gameserver.model.zone.L2Zone

\L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\model\actor\instance\
L2DefenderInstance.java:[109,40] cannot find symbol
symbol  : method isActive()
location: class com.l2jfree.gameserver.model.zone.L2Zone

\L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\model\actor\instance\
L2DefenderInstance.java:[124,14] cannot find symbol
symbol  : method isRegisteredOnThisSiegeField(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

\L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\model\actor\instance\
L2DefenderInstance.java:[139,13] cannot find symbol
symbol  : method isRegisteredOnThisSiegeField(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

\L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\network\clientpackets
\EnterWorld.java:[293,15] cannot find symbol
symbol  : method setSiegeSide(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

\L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\network\clientpackets
\EnterWorld.java:[298,15] cannot find symbol
symbol  : method setSiegeSide(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

\L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\network\clientpackets
\EnterWorld.java:[309,15] cannot find symbol
symbol  : method setSiegeSide(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance

\L2Jfree\l2jfree-core\src\main\java\com\l2jfree\gameserver\network\clientpackets
\EnterWorld.java:[314,15] cannot find symbol
symbol  : method setSiegeSide(int)
location: class com.l2jfree.gameserver.model.actor.instance.L2PcInstance


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33 seconds
[INFO] Finished at: Sun Jun 20 19:27:41 GMT 2010
[INFO] Final Memory: 26M/198M
[INFO] ------------------------------------------------------------------------

Any solution?
 
Newbie Spellweaver
Joined
Nov 15, 2005
Messages
46
Reaction score
0
Re: [Share]Best Guide for compile with maven!

Would you tell me how to add it? im still learning and there are a lot of things that i dont know how to do yet :p
 
Joined
Oct 5, 2006
Messages
4,293
Reaction score
103
Re: [Share]Best Guide for compile with maven!

i am not using l2jfree. but search with eclipse about method isActive(). maybe you must import an other java file so isActive() method will be acceptable
 
Newbie Spellweaver
Joined
Sep 17, 2008
Messages
5
Reaction score
0
Re: [Share]Best Guide for compile with maven!

Hey, im trying to compile with maven, but after first step:
Code:
Run Maven

open cmd (Start -> run -> cmd)
go to your l2jfree directory (lets say you created a workspace named Server,then type cd server , cd (the project's name,assuming you have already checked out from your repository)
Now type "cd .." until it says only C:/ or D:/ etc etc.Then "cd maven" "cd bin" (without the "") and then "mvn eclipse:eclipse"
im getting error with JAVA_HOME
but my java is set up allright.
maybe someone could help me via teamviewer?
 
Initiate Mage
Joined
Mar 3, 2012
Messages
1
Reaction score
0
Re: [Share]Best Guide for compile with maven!

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] l2j-commons-1.4.0-SNAPSHOT
[INFO] l2j-mmocore-1.4.0-SNAPSHOT
[INFO] l2jfree-core-1.4.0-SNAPSHOT
[INFO] l2jfree-login-1.4.0-SNAPSHOT
[INFO] l2jfree-datapack-1.4.0-SNAPSHOT
[INFO] l2jfree-main-1.4.0-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building l2j-commons-1.4.0-SNAPSHOT 1.4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.0-beta-4:create (default) @ l2j-commons ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: C:\workspace\L2jFree-Trunk\l2j-commons
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
Provider message:
The svn command failed.
Command output:
'svn' ›?¤ ?¤??¤ΰ¨ε??«?  ΰ? ?©ΰ«?¨ ΅γ γ ?¥ΰ«?¨ ΅γ ?¤«¦Άγ,
?΅«?Άβ© £¦ §¨ζ?¨?££? γ ?¨®?ε¦ ›β©£?? ?¤?¨?? ι¤.

[INFO] l2j-commons-1.4.0-SNAPSHOT ........................ FAILURE [2:37.235s]
[INFO] l2j-mmocore-1.4.0-SNAPSHOT ........................ SKIPPED
[INFO] l2jfree-core-1.4.0-SNAPSHOT ....................... SKIPPED
[INFO] l2jfree-login-1.4.0-SNAPSHOT ...................... SKIPPED
[INFO] l2jfree-datapack-1.4.0-SNAPSHOT ................... SKIPPED
[INFO] l2jfree-main-1.4.0-SNAPSHOT ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:42.328s
[INFO] Finished at: Sat Mar 03 15:55:13 EET 2012
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create (default) on project l2j-commons: Cannot get the revision information from the scm repository :
[ERROR] Error!
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]



+++++++Helpppppppppppppppppppppp++++++++++++++
 
Custom Title Activated
Loyal Member
Joined
Apr 6, 2007
Messages
1,806
Reaction score
483
Re: [Share]Best Guide for compile with maven!

DarkAngel that post you quote from jFree ain't help....im getting
"failed to execute goal" referring to "l2jfree.com/maven" directories....i think something may be "gone/moved" by jfree's team at "maven" subdirectory.....any clues?
 
Joined
Oct 5, 2006
Messages
4,293
Reaction score
103
Re: [Share]Best Guide for compile with maven!

i really do not know. l2jfree is too old and as i remember after an update i couldn't use maven to compile their files. i used maven a few times, i prefer the build files.
 
Back
Top