Skip to main content

Maven Build Automation Tool

Maven Build Automation Tool
Build Automation Tool


Maven Build Automation Tool



Maven is a build automation tool. The distributed Apache Software Foundation. It is used for java projects. It makes build consistent with another project.




Maven is also used to manage the dependencies. It works a very number of Jar files with different versions.






What is a build tool?






Build tool use to setup everything. Which need to run java code. This can apply to entire java project. It generates source code, compiling code, packaging code to a jar. Maven provides a common platform to perform these activities. This makes programmer’s life easier while handling the huge project.




The Maven provides pom.xml which is the core of any project. This is the configuration file where all required information’s are kept. Many of the IDEs are available which makes it easy to use. IDEs are available for tools like Eclipse, NetBeans, and IntelliJ etc.




Maven stores all project jars. Library jar is in the place called repository. This could be a central, local or remote repository. Maven downloads the dependency jar from the central repository.




Downloaded libraries stored in the local repository called m2. The Maven uses the libraries available in the m2 folder. If new dependency added then maven downloads from the central repository to local repository. The libraries are not available in the central repository. Then maven looks for the remote repository. To configure the remote repository in pom.xml to download from the remote repository.






General Phrases used in Maven:


 
  • groupId:

      Generally groupId refers to domain id. For best practices company name use as groupId. It identifies the project.
  • artifactId:

     It is the name of the Jar without version.
  • version:

     This tag use to create a version of the project.
  • Local repository:

     the required dependencies and stores in the local repository called m2. More details on the same would share in the next topic.





Build Life Cycle:



  •   clean:

                       deletes all artifacts and targets create already.



  • compile:

                    It is used to compile the source code of the project.



  •   test:

              The compiled code and these tests do not need to package or deploy.



  •   package:

                    It uses to convert your project into a jar or war etc.


  •   install:

                 The package into the local repository for use of another project.

Comments

Post a Comment

Popular posts from this blog

Introduction of TestNG framework - Advantages of TestNG over Junit framework

 Introduction of TestNG framework - Advantages of TestNG over Junit framework In Selenium Web Driver training run Selenium scripts using JUnit framework. Until now we have executed seleniumtests but we have not generated reports in JUnit. We are introducing the powerful new testing framework called TestNG . The TestNG framework means Next Generation testing framework. So we are seeing all next generation features available in TestNG. I will talk about advantages of TestNG Framework TrainingIn Hyderabad over Junit. TestNG Framework Training In Hyderabad TestNG is popular JUnit framework used for the Java programming language. The TestNG framework introduced to overcome the limitations of JUnit framework. Most of the automation users are using this framework. Its advantages & more supported features. Until we have executed selenium test script but not even generated test reports. So using this TestNG framework learns to generate test reports. Features of ...

Web Driver Architecture​ | Best Selenium Online Training in Hyderabad

Best Selenium Online Training In Hyderabad Introduction​ Selenium WebDriver is one of the most powerful and popular tools of Selenium toolkit. WebDriver extended version to Selenium RC. WebDriver extends its support to many latest browsers and platforms, unlike Selenium IDE . WebDriver also doesn’t need Selenium server to start before execution of the Selenium RC . Selenium RC in aggregation with WebDriver API is Selenium 2.0 . Selenium was so developed to support dynamic web pages and Ajax calls . It also supports various drivers to exercise web-based mobile testing. Architecture​ WebDriver is a web-based testing tool with Selenium RC . The tool built on the fundamental where isolated clients create for each of the web browsers. WebDriver makes direct calls to the Web browser . The entire test script executes in this fashion. WebDriver uses the browsers support and capabilities to automation. Seleni...

AutoIt in Selenium Webdriver

    AutoIt in Selenium Web driver Selenium is an open source tool. That designed to automate web-based applications on different browsers. But to handle window GUI and non-HTML popups in the application. AutoIt required as these window based activity are not handled by Selenium . What is AutoIt? AutoIt v3 is a freeware scripting language designed for automating. the Windows GUI and general scripting. the combination of keystrokes, mouse movement and window/control manipulation to automate tasks. It is way not possible or reliable with other languages. AutoIt is very small, self-contained and run on all versions of Windows. The face with no annoying “runtimes” required. In layman’s term, AutoIt is another automation tool. Selenium used for Desktop Automation rather Web Automation. It is a powerful tool. It does not automate desktop windows, button & for. it automates mouse movements & keystrokes too. Selenium IDE recording capability generat...