Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
376

Maven is not just a build tool. It is also a project management tool. It does the following things for you,

  • Compilation
  • Packaging
  • Deploying

Installing Maven is very easy.

  1. Download a stable Maven binary from http://maven.apache.org
  2. Extract the files. (Lets say C:\ in Windows)
  3. Set/Append the following Environment Variables.
    • M2_HOME     C:\apache-maven-3.1.1
    • PATH            %M2_HOME%\bin; (or) C:\apache-maven-3.1.1\bin;
  4. Now Navigate to the conf folder of the installation and copy "settings.xml"
  5. Create a folder ".m2" in "C:\Users\<Username>\" and keep the "settings.xml" inside it.
  6. (Optional) If your computer is under a proxy, open "settings.xml" in the ".m2" folder and specify your proxy similar to this.

          <proxies>

          <proxy>

               <active>true</active>

               <protocol>http</protocol>

               <host>proxy</host>

               <port>8080</port>

          </proxy>

     </proxies>

That's all.

Now open command prompt and issue "mvn -v". You should be able to see version information.