Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8489733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:54:37+00:00 2026-06-10T21:54:37+00:00

I have what seems to be a simple question regarding how to setup Jenkins

  • 0

I have what seems to be a simple question regarding how to setup Jenkins and maven 3.

For the sake of simplicity lets say that we have four projects:

Model which has no dependencies
Commons which depends on Model
Server which depends on Common and Model
Frontend which depends on Model

What I want to achieve is that a success build on Model triggers new build on all projects which in its pom has a dependency on Model (here Common, Server and Frontend)

If Common fails then there is no need to build Server.

In the above case it seems that I can fix this by manually setting up dependent projects on Model and Commons but this information can already be found in the pom files for each project (Server and Frontend) which makes me conclude/wish that Jenkins should be able to figure this out by it self.

Can Jenkins deduce the dependency tree by parsing the pom on each project defined in Jenkins and do some kind of optimal build order / dependency handling automatically or do I have to setup “Block build when upstream project is building” and “Build after other projects are built [List of dependent projects]” as described above ?

I am using Jenkins version 1.473 and Maven 3.
Our maven project pom’s do not use the parent or module tag.

/Benjamin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:54:38+00:00Added an answer on June 10, 2026 at 9:54 pm

    The best solution for such thing is to create a multi-module build which results in the following structure:

    root (pom.xml)
      +--- model (pom.xml)
      +--- commons (pom.xml)
      +--- server (pom.xml)
      +--- frontend (pom.xml)
    

    In each module for example in commons you define a dependency to the model module etc.
    The build order will be automatically done by maven.

    With such kind of project you can simply go to the root and do:

    mvn clean package
    

    You can also use:

    mvn --pl --am server
    

    which will build server but also all depending modules automatically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a what seems to be a simple question but for the life
I have a simple question whose answer seems not to be in the official
This seems like such a simple question. I have several Edit boxes on my
I have a fairly simple question, however the answer seems to elude me. If
I have a relatively simple question that I cannot seem to find the answer
I have a simple question regarding Entity declaration in JPA. I have an entity
Greetings all... I have a simple, yet annoying question regarding Spring Web MVC. I
I have what seems like what could be a simple question but might be
I have a question regarding the correct way of splitting objects. Say I have
My original question regarding Consuming Custom Request Methods with Android seems to have garnered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.