Best Guide for compile with maven!

Page 5 of 5 FirstFirst 12345
Results 61 to 75 of 75
  1. #61
    Novice u3x is offline
    MemberRank
    Apr 2009 Join Date
    1Posts

    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 by u3x; 22-04-09 at 09:33 PM.

  2. #62
    Account Upgraded | Title Enabled! EzEraL is offline
    MemberRank
    Dec 2006 Join Date
    Greece,AthensLocation
    606Posts

    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)

  3. #63
    Novice desp is offline
    MemberRank
    Feb 2009 Join Date
    2Posts

    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.

  4. #64
    Novice visiones is offline
    MemberRank
    Dec 2007 Join Date
    1Posts

    Re: [Share]Best Guide for compile with maven!

    Quote Originally Posted by Lian View Post
    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?? Where is the command to compile this project? Or maybe should compile by itself ?

  5. #65
    Apprentice xoiten is offline
    MemberRank
    Jun 2007 Join Date
    16Posts

    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 by xoiten; 25-09-09 at 06:19 PM.

  6. #66
    Member slatis is offline
    MemberRank
    Nov 2005 Join Date
    BogotaLocation
    65Posts

    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?

  7. #67
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: [Share]Best Guide for compile with maven!

    methos isActive need to be added. check l2jfree's source

  8. #68
    Member slatis is offline
    MemberRank
    Nov 2005 Join Date
    BogotaLocation
    65Posts

    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

  9. #69
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    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

  10. #70
    Apprentice mantuska is offline
    MemberRank
    Sep 2008 Join Date
    5Posts

    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?

  11. #71
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: [Share]Best Guide for compile with maven!

    did you add java_home to your computer settings? it needs a configuration for that

  12. #72
    Novice lastWarrior is offline
    MemberRank
    Mar 2012 Join Date
    1Posts

    sad 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] http://cwiki.apache.org/confluence/d...utionException



    +++++++Helpppppppppppppppppppppp++++++++++++++

  13. #73
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: [Share]Best Guide for compile with maven!


  14. #74
    Alpha Member ianvalls90 is offline
    MemberRank
    Apr 2007 Join Date
    ArgentinaLocation
    1,829Posts

    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?

  15. #75
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    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.



Page 5 of 5 FirstFirst 12345

Advertisement