Cicd documentation layout



Download 6.25 Mb.
Page15/39
Date15.06.2023
Size6.25 Mb.
#61535
1   ...   11   12   13   14   15   16   17   18   ...   39
CIcd
Central Repository:

  • Is a server contains all dependencies managed by the maven over internet.

  • It is available for anyone, anybody can upload their jar files into this repository

  • This jar is available via maven

  1. Local Repository:

  • It is our local machine where jar files are managed by maven.

  • For the first time maven downloads dependencies from central and next time onwards it uses local copy

  • The path of maven local repository is

/.m2/repository
From home directory, check for /.m2/
Under this many jar files are present

  1. Remote Repository:

  • Companies setup remote repositories to manage company specific dependencies.

  • Because of security reasons companies do setup their own maven repositories.

  • This repository is also used to store packages for deployment.

5.5. Blueprint diagram of Maven Build-Lifecycle:



Validation: Checks the pom.xml syntaxes. Are we using the correct tags that it is syntactically valid or not and Checks the dependencies.
Compile: Compiles all source code and converts into machine language.
Goal: mvn clean compile
Test: It executes and compiles source code using a suitable unit testing framework like Junit test cases written by developers. These tests should not require the code be packaged or deployed.
Goal: mvn test
Package: Take the compiled code and package it in its distribution format, such as a JAR/WAR.
Goal: mvn clean package
Integration-Test: Process and deploy the package if necessary, into an environment where integration tests can be run.
Verify: Run any checks or verify the package is valid and meets quality criteria. For this we have integrate maven with selenium for verification.
Goal: mvn clean verify

Download 6.25 Mb.

Share with your friends:
1   ...   11   12   13   14   15   16   17   18   ...   39




The database is protected by copyright ©ininet.org 2024
send message

    Main page