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 9254079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:22:38+00:00 2026-06-18T11:22:38+00:00

I have the following Maven project setup in SCM: A B (depends on A)

  • 0

I have the following Maven project setup in SCM:

  • A
  • B (depends on A)
  • C (depends on A and B, builds an archive containing artifacts from A and B)

I have organized Jenkins so there are sets of jobs where A runs, then B, then C. For example, I have a set of builds triggered by SCM commit (mvn clean install), a set of builds which run reports (mvn clean site), and sets of builds which deploy to our development/test/production servers (mvn clean install + run some plugins to deploy).

Problems happen when the jobs run concurrently. For instance:

  1. If the C commit job is building the same time as the A commit job, the the C commit job often has trouble reading from the local m2 repo since the A commit job may be writing to the local m2 repo.
  2. If the Commit jobs are running the same time as the Deploy jobs, then I am concerned that they are writing to and reading from the same local m2 repo.

Ideally I want to keep the ability to run these sets of jobs concurrently.

  1. Currently I am blocking downstream jobs from running when an upstream job is building. That has prevented some issues. However, I still have an issue where C is in the middle of building and then A starts to build. Are there any known issues with enabling both “Block build when upstream project is building” and “Block build when downstream project is building”?
  2. Can I configure Jenkins such that a set of jobs use the same Maven repository? For instance, I would like the commit triggered jobs to use one repository and use another repository for the development deploy jobs. Is this the correct solution for what I want or is there another way?
  • 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-18T11:22:39+00:00Added an answer on June 18, 2026 at 11:22 am

    To answer the first part of your question –

    You should be able to use both “Block build when upstream project is building“
    and “Block build when downstream project is building” in the same job-configuration.

    This will prevent Job-A from starting when Job-B or Job-C are already running,
    and will prevent Job-C from starting when Job-A or Job-B are already running.

    Cheers

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

Sidebar

Related Questions

I have the following maven-setup: parent-project |- libraries |- utilities |- core |- component1
I have integrated in Hudson a maven 3 project calling following sequence: clean tomcat:redeploy
In my Maven project, I have the following code in the main method: FileInputStream
I have following situation: I have a Maven war project in NetBeans 6.7 I
We have a multi module maven project with the following layout project - common
I have setup Maven project locally without eclipse, it is completed succefully. Now i
I have a multimodule maven setup for my project, made of 5 modules, which
I have a hierarchical maven project, from which I am trying to build a
We have the following project setup: Root (pom) | +-- s1: Service 1 (war)
Suppose I have the following directory layout in a Maven project: src/ |-- main

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.