Skip to content

Problem Maven

Featured Replies

Rixte mia matia re paidia edw prospatw na kanw compile ayto edw Me Maven ola kala mexri na kanw build me maven mou petaei ayto (Ola ta vimata opws mou ta grafi apla den katalavenw giati m petaei auto) Oi odigies ine aytes :

 

1) Install Java JDK 1.7
 
- install downloaded file:
- ATTENTION before this step:
- REMOVE any installed JRE on your machine
- DO NOT INSTALL JRE during JDK installation
- (take care of Installation Path, for latest jdk is C:\Program Files\Java\jdk1.7.0_45)
- Set JAVA_HOME System Variable properly: check guide here http://javarevisited.blogspot.it/2012/02/how-to-set-javahome-environment-in.html
 
2) Install Eclipse:
- extract Eclipse if any folder you like
- start Eclipse
 
3) Clone L2jFrozen GIT Repository:
- Window->Open Perspective->Other..->Git Repository Exploring
- Into open Perspective click on "Clone Git Repository"
- as URI specify "https://bitbucket.org/Shyla/l2jfrozen" and go Next
- as Branch use "master" and go Next
- Select Local Destination:
- it is your "Git Repository Clone folder", so it will contains your projects checkout (usually c:\Users\NAME_OF_USER\git\l2jfrozen)
- Go Next to start clone
 
3.1) If you haven't Maven installed
- Help -> Eclipse Marketplace.
- Find Marven and click Go.
- Select "Maven Integration for Eclipse" and click Install.
4) Import L2jFrozen Git Repository Maven Projects inside the Workspace
- File->Import->Maven->Existing Maven Projects
- Browse Root Directory to your "Git Repository Clone folder" (usually c:\Users\NAME_OF_USER\git\l2jfrozen)
- select all projects and finish
- wait until all bulding phase is completed..
- This will take long time, take a coffie :)
5) compile the whole Server project: *
- Right click on "l2jfrozen" Project->Maven->Maven Build..
- write or select "install" Goals and check "Skip-Tests" checkbox **
- Run it
- You can find the Compilation Outputs (for Gameserver and LoginServer inside the "game/target" and "login/target" folders))
 
IMPORTANT Notes:
* as you are going to build anything with Maven, you have to call Maven Install build over "server" project: it will produce compiled "jars" for each module that you will find inside each module "target" folder
** if you have not yet installed any Database, I suggest to start install checking the box "without tests", or building will fail due to error on database module unit test
*** If you got an error while compiling, remember to use JDK and not JRE.

 

 

Capture1.png

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.