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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock