Jump to content

Recommended Posts

Posted

Well hello guys because many users dont know how to compile with maven and switch from l2jfree to another team i made this guide

exactly for them

 

This guide has 3 parts

 

         

            Part 1 

            Download and run maven

 

First go to http://maven.apache.org/download.htmland download maven.I suggest you to download with zip and not with other tools

Second when you download it extract it in C: So the location of the programm will be C:\Maven 2.0.7

Then rename Maven 2.0.0.7 to maven.So its location will be C:\maven

Finaly go to to l2jfree source that you download with eclipse.Open the cmd and type C:\maven\bin\mvn assembly:assembly

And it will start toi run maven.Wait it until it finish.

 

              Part 2

              Configure Eclipse

 

Go in the location that you have eclipse(not 3.1 but newer.I prefer 3.3)Start eclipse and select:window/preferences\java/Build Path/Classpath Variables

click "NEW"

and write in "Name"field M2_REPO

And in "Path"filed locate the m2 directory.It will be in C:\Documents and Settings\YOURUSERNAME

Now refresh your workspace and you are set

 

                Part 3

                Install Eclipse Maven plugin

Open eclipse and select help\software updates\find and install\Select new features to install and press the option "New Remote site"

and add:

 

[table][tr][td]Name:m2 plugin

Url:http://m2eclipse.codehaus.org[/table]

 

Press ok and finsh.Then it will download maven plugin when it finish press "Install all"and then when eclipse ask you to restart press "yes"

At the end go to run\external tools\open external tools dialog and select m2 build.And press the option "New lanch configuration"

When you click on "New lanch configuration" option it will pop up a new menu with 2 options.(Base Directory and Goals)

 

In base direcotry select "Browze workspace" and you will see all eclipse projects that you have.Select l2jfree but click on the arrow that it will show you trunk,tags,branches.Select trunk(if you want to complie interlude version)and select gameserver for example.

In "Goals option add the goal assembly:assembly and press run

 

And the gameserver will be compiled.If you want to compiled the loginserver just select login server

 

                          Frequently asked questions

                          I paste them from l2jfree forum

 

I got this error in my console (windows command line)

Code:

 

[table][tr][td]ERROR: JAVA_HOME not found in your environment.

Please set the JAVA_HOME variable in your environment to match the

location of your Java installation[/table]

 

 

You just have to set JAVA_HOME in your environment variable.

workspace => right click => properties => advanced => environment variable

Add new variable JAVA_HOME that target your installation path of JDK (ant not your JRE)

 

Diagnosis: Invalid task 'jar': you must specify a valid lifecycle phase, or a goal

 

The good command is :

mvn assembly:assembly to build your project

 

You can add

-Dmaven.test.skip=true to skip the test

-U to force the download of new maven plugin versions

-o to keep offline

 

mvn clean to clean your build

 

I have an error message, CHECKSUM FAILED

This is just a warning, not an error. The build will continue.

 

Plug-in org.maven.ide.eclipse was unable to load class org.maven.ide.eclipse.preferences.Maven2PreferencePage.

 

 

Eclipse 3.2

plugin < Maveen 2.0 integration 0.0.9 >

 

 

The problem is not with the plugin. What you need to keep in mind is that the plugin is built on top on Maven. So you need to install Maven first and run it at least one time from the command line so that the "Documents and Settings/<username>/.m2" directory is created. Once that is done, go back in Eclipse and everything will be ok.

 

   

                    Usefull tips

 

when you ready to compile  open your cmd and go to the main folder of your workspace project(such c:, cd workspace, cd l2_gamesever_il). When u get on its folder only type ur path to maven and the mvn inside bin folder (u'll be on ur l2_gamesever_il folder, you type c:\maven\bin\mvn assembly:assembly)

 

And Thats it. its takes bout 1~2 mins

 

Have fun...

I hope i help with this guide.Any problems post it here!

  • 3 months later...
  • 1 year later...
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



  • Posts

    • From Salvation onwards I think you need a patched nwindow.dll that allows such modifications, try to see if you get what you need here: https://drive.google.com/drive/u/1/folders/1LLbQFGf8KlR-O0Iv5umfF-pwZgrDh9bd
    • hello everyone! I am wanting to save the files (Ini. - Data - ) of the EP5 Client: Salvation... But they generate the error "corrupt files"... I tried several versions of L2FileEditor without good results. I need help! Thank you!
    • Opening December 6th at 19:00 (GMT +3)! Open Beta Test from November 30th!   https://l2soe.com/   🌟 Introducing L2 Saga of Eternia: A Revolution in Lineage 2 High Five! 🌟   Dear Lineage 2 enthusiasts, Prepare to witness the future of private servers! L2 Saga of Eternia is not just another High Five project—it’s a game-changing experience designed to compete with the giants of the Lineage 2 private server scene. Built for the community, by the community, we’re here to raise the bar in quality, innovation, and longevity. What Sets Us Apart? 💎 No Wipes, Ever Say goodbye to the fear of losing your progress. Our server is built to last and will never close. Stability and consistency are our promises to you. ⚔️ Weekly New Content Our dedicated development team ensures fresh challenges, events, and updates every week. From custom quests to exclusive features, there will always be something exciting to explore. 💰 No Pay-to-Win Skill and strategy matter most here. Enjoy a balanced gameplay environment where your achievements come from effort, not your wallet. 🌍 A Massive Community With 2000+ players expected, join a vibrant and active community of like-minded adventurers ready to conquer the world of Aden. 🏆 Fair and Competitive Gameplay Our systems are designed to promote healthy competition while avoiding abusive mechanics and exploits. 🔧 Professional Development From advanced bug fixes to carefully curated content, we pride ourselves on smooth performance, no lag, and unparalleled server quality. Key Features Chronicle: High Five with unique interface Rate: Dynamic x10 rates Class Balance: Carefully fine-tuned for a fair experience PvP Focused: PvP Ranking & aura display effect for 3 Top PvPers every week Custom Events: Seasonal and permanent events to keep you engaged Additional Features:   Custom Endgame Content: Introduce unique dungeons, raids, or zones unavailable in other servers. Player-Driven Economy: Implement a strong market system and avoid overinflated drops or rewards. Epic Siege Battles: Announce special large-scale sieges and PvP events. Incentives for Streamers and Clans: Attract influencers and big clans to boost server publicity. Roadmap Transparency: Share a public roadmap of planned updates to build trust and excitemen   Here you can read all the features: https://l2soe.com/features   Video preview: Join the Revolution! This is your chance to be part of something legendary. L2 Saga of Eternia is not just a server; it’s a movement to redefine what Lineage 2 can be. Whether you’re a seasoned veteran or a newcomer to the world of Aden, we invite you to experience Lineage 2 at its finest.   Official Launch Date: December 6th 2024 Website: https://l2soe.com/ Facebook: https://www.facebook.com/l2soe Discord: https://discord.com/invite/l2eternia   Let’s build the ultimate Lineage 2 experience together. See you in-game! 🎮
    • That's like a tutorial on how to run l2 on MacOS Xd but good job for the investigation. 
  • Topics

×
×
  • Create New...