AF
HomeTagSubmit NotesAsk AnythingLoginSubscribe Us
AF
1. Feel Free to ask and submit anything on Anyforum.in and get satisfactory answer
2. Registration is not compulsory, you can directly login via google or facebook
3. Our Experts are looking for yours ?.



java-basics: Explain the Maven?

How to install maven on windows and how to integrate with eclipse IDE.

could you plz share the website names to learn the maven.

java x 210
basics x 169
Posted On : 2016-08-23 07:48:18.0
profile MOHAMMAD SALEEM BASHA - anyforum.in MOHAMMAD SALEEM BASHA
266150
up-rate
2
down-rate

Answers


Maven is a tool that can now be used for building and managing any Java-based project. We hope that we have created something that will make the day-to-day work of Java developers easier and generally help with the comprehension of any Java-based project. Maven is a powerful project management tool that is based on POM (project object model). It is used for projects build, dependency and documentation.

Maven´s Objectives:
---------------------------------------------------
Maven´s primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time. In order to attain this goal there are several areas of concern that Maven attempts to deal with:

* Making the build process easy
* Providing a uniform build system
* Providing quality project information
* Providing guidelines for best practices development
* Allowing transparent migration to new features


install Maven on windows:
--------------------------------------------------------------
To install maven on windows, you need to perform following steps:

* Download maven and extract it
* Add MAVEN_HOME in environment variable
* Add maven path in environment variable
* Verify Maven

1) Download Maven:
-----------------------------------------------------------------
To install maven on windows, you need to download apache maven first.

Download Maven latest Maven software from http://maven.apache.org/download.cgi

For example: apache-maven-3.1.1-bin.zip

Extract it.

2) Add MAVEN_HOME in environment variable:
----------------------------------------------------------------------------------------------
Right click on MyComputer -> properties -> Advanced System Settings -> Environment variables -> click new button

Now add MAVEN_HOME in variable name and path of maven in variable value. It must be the home directory of maven i.e. outer directory of bin. For example: E:\apache-maven-3.1.1 .

Now click on OK button.

3) Add Maven Path in environment variable:
-----------------------------------------------------------------------------------
Click on new tab if path is not set, then set the path of maven. If it is set, edit the path and append the path of maven.

Here, we have installed JDK and its path is set by default, so we are going to append the path of maven.

The path of maven should be %maven home%/bin. For example, */jdk1.7.0/bin;E:\apache-maven-3.1.1\bin .

4)Verify maven:
--------------------------------------------------
To verify whether maven is installed or not, open the command prompt and write:
mvn -version
Now it will display the version of maven and jdk including the maven home and java home.

In short, If we use maven there is no need to put jar files in lib folder or reference jar files. Just keep adding dependency for specific jar files or library and build the project and run it. Here are good and easy explanation for maven: http://www.tutorialspoint.com/maven

Posted On : 2016-08-23 23:50:57
Satisfied : 1 Yes  0 No
profile Garima Gupta - anyforum.in Garima Gupta
596128622692
Reply This Thread
up-rate
4
down-rate



Post Answer
Please Login First to Post Answer: Login login with facebook - anyforum.in