TestingDocs.com
    Software Testing website
    • Automation
      • Selenium
      • JBehave Framework
    • Tutorials
      • MySQL Tutorials
      • Testlink
      • Maven
      • Git
    • IDEs
      • IntelliJ IDEA
      • Eclipse
    • Flowcharts
      • Flowgorithm
      • Raptor
    • About

    Jenkins

    Build a Maven project using Jenkins

    Jenkins

    Overview

    In this post, we will create and build a Maven project using Jenkins. Jenkins can be used to create a pipeline that can be used for continuous deployment, continuous testing , continuous delivery etc.

    Let’s first create a Maven project in Eclipse.

    Create Maven project

    To create the project

    File >> New >> Project >> Maven Project

    Click on Next button

    Select an archetype for the project.Lets select simple quickstart archetype.

    For example: maven-archetype-quickstart

    Click on Next button.

    In the next screen define properties for your project.

    Define property groupId: com.triangle

    Define property artifactId: triangle-demo

    Define property version: 1.0-SNAPSHOT

    Hit the Finish button. Eclipse would create the project for you to work on. This step may take some time depending on your computer speed.

    Create sample Java file and test code for the class.

    Build

    Go to Jenkins Dashboard -> New Item -> Choose name for the Maven Project for example TriangleExample

    Select Maven project and click on the OK button.

    In the configuration page , you can set and configure the build.

    In the Build section of the page

    Goals and options specify  clean compile test

    Click on Advanced… button to configure the workspace.

    Check the option Resolve Dependencies during Pom parsing

    In the Use custom workspace specify the project directory containing the pom.xml of the project.

     

    Click on the Save button to save the changes made to the build.

     

    You can build the job by clicking on the Build Now link in the project page.To modify the configuration settings, you can click on the Configure link.

    More Jenkins Tutorials

    Related Posts

    Jenkins Cloud Options

    Jenkins /

    Jenkins Cloud Deployment Offering

    Blue Ocean Jenkins Plugin

    Jenkins /

    Blue Ocean Jenkins Plugin

    CiCD pipeline

    Jenkins /

    Continuous Integration Tools

    Jenkins releases

    Jenkins /

    Jenkins Release lines

    Calculator Tests Jenkins

    Jenkins /

    Run Calculator JUnit tests using Jenkins

    ‹ Jenkins Configuration› Maven Surefire Plugin Jenkins

    Recent Posts

    • ChatGPT Plans Free and PlusChatGPT Subscription Plans
    • Stellar Converter for Database ToolStellar Converter for Database
    • Stellar MySQL Log AnalyzerStellar Log Analyzer for MySQL
    • Stellar Repair for MySQLStellar Repair for MySQL
    • ChatGPT IntroductionChatGPT Capabilities
    • How to secure your SQL Database: Tips and Tricks
    • ChatGPT4 Conversational AI FeaturesChatGPT4 Conversational AI Features
    • Trends in Software EngineeringShaping the Future of Development: Exploring Key Trends in Software Engineering
    • Java PerformanceImproving Java Performance with Multithreading
    • QDrant Vector DatabaseOpen-source Vector Databases
    • Difference between PHP and JavaScript?
    • Bing AI Browser Web ContentBing Conversation Styles
    • ChatGPT PreviewChatGPT Introduction
    • Open Source AI Frameworks TensorFlowOpen Source AI Frameworks
    • Artificial Intelligence Tools

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com