Showing posts with label Apache Maven. Show all posts
Showing posts with label Apache Maven. Show all posts

Thursday, 4 July 2019

How does Maven work? | Apache Maven

How Does Maven Work? A Simple Guide for Beginners

🚀 Want to master Java and Maven?

Join the Ram N Java community for simplified tech tutorials!

SUBSCRIBE NOW

The Inner Workings of Apache Maven

Ever wondered what happens behind the scenes when you run a Maven command? It's like a well-oiled factory. Maven follows a specific set of rules and steps to turn your source code into a finished product, like a JAR or WAR file.

The Three Repositories

Maven doesn't just look for files on your computer. it uses a clever system of repositories to find exactly what your project needs:

  • Local Repository: This is a folder on your own machine where Maven stores everything it has downloaded before.
  • Central Repository: If Maven can't find a library locally, it goes to the "Central" hub on the internet to fetch it.
  • Remote Repository: Sometimes companies have their own private "vaults" for custom code that Maven can also access.

The Build Lifecycle

When you tell Maven to "build," it goes through a lifecycle. It starts by cleaning up old files, then compiles your code, runs tests to make sure everything works, and finally packages it up. Because this process is standardized, any developer can pick up your project and build it with a single command!

Explore More from Ram N Java

Check out these other helpful guides:

Monday, 20 July 2015

Apache Maven : Apache Maven Installation (Linux OS)


Click here to watch in Youtube :
https://www.youtube.com/watch?v=zpOX8F_vW1k&list=UUhwKlOVR041tngjerWxVccw

Click here to download Apache Maven :

http://maven.apache.org/

http://maven.apache.org/download.cgi

http://maven.apache.org/install.html


Linux Commands:
#wget http://apache.arvixe.com/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz

#tar xvf apache-maven-3.3.3-bin.tar.gz

#mvn –version

Maven Path Setup:
export M2_HOME=/opt/apache-maven-3.3.3
export M2=$M2_HOME/bin
export PATH=$M2:$PATH

Click the below Image to Enlarge
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
Apache Maven : Apache Maven Installation (Linux OS) 
See also:

  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • Apache Maven : Apache Maven Installation (Windows OS)


    Click here to watch in Youtube :
    https://www.youtube.com/watch?v=1HIURDQIoU4&list=UUhwKlOVR041tngjerWxVccw

    Click here to download Apache Maven :

    http://maven.apache.org/

    http://maven.apache.org/download.cgi

    http://maven.apache.org/install.html

    Click the below Image to Enlarge
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 
    Apache Maven : Apache Maven Installation (Windows OS) 

    See also:

  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • Tutorials