Jump to content
  • 0

Problem Maven


Question

Posted

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

1 answer to this question

Recommended Posts

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
Answer this question...

×   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...