Questions tagged [build-process]

The sequence of actions required to construct a software product or executable application, or the system which performs such actions.

Building applications is a critical part of software development. The build-process is the series of steps involved in assembling everything necessary to run your application and turning into something that can be natively executed. A build process might look like this:

  1. Create an output directory.
  2. Get latest version of source code from source control software. Also get latest version of any related files like images.
  3. Perform a full build/compilation of the source code.
  4. Create an install package.
  5. Copy install package to output directory.
  6. Logging every step.
  7. Alert developers when done.

Each individual step can be very involved. Two steps of the Joel Test are about the build-process:

Can you make a build in one step?
Do you make daily builds?

Builds are frequently automated; one of the steps of the Joel Test is the ability to perform a one-click build. Doing manual builds risks errors and has a high cost in developer sanity. Daily builds are important because they help catch errors that were checked into source control. There are many tools that can facilitate setting up automated builds like ANT/NANT.

2302 questions
87
votes
3 answers

Running multiple TeamCity Agents on the same computer?

We have several build machines, each running a single TeamCity build agent. Each machine is very strong, and we'd like to run several build agents on the same machine. Is this possible, without using virtualization? Are there quality alternatives to…
ripper234
  • 222,824
  • 274
  • 634
  • 905
86
votes
6 answers

Building a runnable jar with Maven 2

I'm relatively new to the Maven mantra, but I'm trying to build a command-line runnable jar with Maven. I've setup my dependencies, but when I run mvn install and attempt to run the jar, two things happen. First, no main class is found, which is…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
82
votes
5 answers

Execute Maven plugin goal on parent module, but not on children

We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin to increment a build number and then check it into source control. If I define the plugin in the parent pom.xml it executes for all the child builds as…
Dougnukem
  • 14,709
  • 24
  • 89
  • 130
81
votes
10 answers

Why is there no need for Maven in .NET?

I have the impression, that in the .NET-world, there is no real need for a Maven-like tool. I am aware that there is Byldan and NMaven (is it still alive?), but I have not yet seen a real-world project that uses them. Also in most .NET projects I…
jbandi
  • 17,499
  • 9
  • 69
  • 81
81
votes
3 answers

Overriding a default option(...) value in CMake from a parent CMakeLists.txt

I am trying to include several third-party libraries in my source tree with minimal changes to their build system for ease of upgrading. They all use CMake, as do I, so in my own CMakeLists.txt I can use add_subdirectory(extern/foo) for libfoo. But…
user79758
79
votes
6 answers

Skipping tests in some modules in Maven

I would like my Maven builds to run most unit tests. But there are unit tests in one project which are slower and I'd like to generally exclude them; and occasionally turn them on. Question: How do I do this? I know about -Dmaven.test.skip=true,…
Joshua Fox
  • 18,704
  • 23
  • 87
  • 147
78
votes
6 answers

How do I get Maven to use the correct repositories?

I have just checked out some projects and need to build them, however I installed Maven quite some time ago (6 months maybe?) and really haven't used it since - the pom.xml for the project I have doesn't have this "http://repo1.maven.org/myurlhere"…
user284163
  • 791
  • 1
  • 7
  • 4
76
votes
5 answers

In Visual Studio, what does the "Clean" command do?

You know, the one that outputs this=> ------ Clean started: Project: Foo.Bar, Configuration: Debug Any CPU ------ ========== Clean: 1 succeeded, 0 failed, 0 skipped ========== What it is cleaning?
Arnis Lapsa
  • 45,880
  • 29
  • 115
  • 195
76
votes
10 answers

Timeout on a Build Step of Jenkins

In Jenkins, is there a way to give different timeouts to each or selected build step? Build-time plugin out gives functionality of timeout "Abort the build if it's stuck" on complete project, what I need is to give different timeouts for each step.…
rohits
  • 974
  • 1
  • 8
  • 12
74
votes
8 answers

Can I add maven repositories in the command line?

I'm aware I can add maven repositories for fetching dependencies in ~/.m2/settings.xml. But is it possible to add a repository using command line, something like: mvn install -Dmaven.repository=http://example.com/maven2 The reason I want to do this…
Sindri Traustason
  • 5,445
  • 6
  • 48
  • 66
74
votes
6 answers

.o files vs .a files

What is the difference between these two file types. I see that my C++ app links against both types during the construction of the executable. How to build .a files? links, references, and especially examples, are highly appreciated.
Sasha
74
votes
4 answers

Running CMake on Windows

I am currently trying to get CMake to run on my Windows 7 (64-bit) system. I want to compile TagLib for later use with a Qt application I am working on. I would like to compile it with MinGW (not Visual C++ as in this other question). I download the…
Joel Verhagen
  • 5,110
  • 4
  • 38
  • 47
73
votes
10 answers

Is there a Maven alternative or port for the .NET world?

Is there a Maven alternative or port for the .NET world? I would love to use a good dependency management system that the Java world has, but I don't find anything comparable for .NET projects...
Georg Wächter
  • 970
  • 1
  • 8
  • 13
72
votes
5 answers

ld linker question: the --whole-archive option

The only real use of the --whole-archive linker option that I have seen is in creating shared libraries from static ones. Recently I came across Makefile(s) which always use this option when linking with in house static libraries. This of course…
jasmeet
68
votes
2 answers

How do I convert an Autotools project to a CMake project?

So there seems to be a lot of writing on the subject of Autotools vs. CMake, but for the life of me I can't seem to find a good tutorial on how to convert a project from Autotools (Makefile.am and configure.ac files) to CMake (CMakeLists.txt files).…
Kurtis Nusbaum
  • 30,445
  • 13
  • 78
  • 102