Continuous integration never results in build errors

Posted by Jon on Programmers See other posts from Programmers or by Jon
Published on 2011-02-11T22:18:50Z Indexed on 2011/02/11 23:33 UTC
Read the original article Hit count: 334

Hi,

I'm working with a variety of Java EE websites which use internal libraries we've developed. For each website, we only upgrade to new versions of our internal libraries as needed, and before committing we make sure that the site compiles fine.

What this means is that when TeamCity does a build of one of our sites, the site compiles fine, but later when the site is updated to the latest version of internal libraries, there might be a compile error.

Is there a good way to handle this?

We're not using Maven yet; would using Maven mean that our websites could automatically use the latest version of internal libraries?

Thanks.

Clarification:

What we sometimes run into is this:

  1. Project A depends on a library, and is currently using library version 1.0
  2. Project B also depends on that library. I make changes to the library so that it is now version 1.5. Project B now uses 1.5.
  3. Project A and project B have both been built just fine by the CI server (TeamCity)
  4. Working on project A again, I update to 1.5 and discover that 1.5 has breaking changes in it.

Is there a way for the CI server to discover these kinds of breaking changes?

© Programmers or respective owner

Related posts about java-ee

Related posts about maven