Tag Archives: build systems

The State of Java Build Systems

Most people eventually get it that building release artifacts using their IDEs is not the way to nirvana. Builds have to stay stable and reproducible between IDE revisions, and being able to execute them in a command line environment or … Continue reading

Posted in java | Tagged , , , , | 26 Comments

Generating DDL Scripts from JPA Annotations with Maven

A while ago I posted an article that showed how to generate a database schema from JPA annotations. Since I didn’t get the hibernate3 maven plugin working back then I used the antrun plugin as a workaround. Thanks to the … Continue reading

Posted in java | Tagged , , | 24 Comments

Creating a Minimal Enterprise Application with Maven

Setting up a Java EE application is no trivial task. Dependency management, building, and deployment can get pretty complex and require a thorough understanding of deployment descriptors, jars, ears and other artifacts. In this article, I’m going to present a … Continue reading

Posted in java | Tagged , , | 2 Comments

Using the Maven Source Plugin

When using an ordinary jar library, IDEs like Eclipse’s JDE don’t have enough information to display inline javadocs for referenced classes. You have to manually direct Eclipse to the library’s source code to take advantage of inline documentation. Maven’s source … Continue reading

Posted in java | Tagged , , | 9 Comments

Generating DDL Scripts with Maven

Java’s persistence API (JPA) makes object-relational mapping very convenient. Using Hibernate, tables and sequences are generated automatically which speeds up development significantly. However, in production systems automatic schema creation isn’t desired. In many cases you would want to tune the … Continue reading

Posted in java | Tagged , , | 9 Comments

Building RPMs Without Root Access

This week at work I had the opportunity to build an RPM for some third-party software package. My previous experiences with RPM date back to SuSE 5 almost ten years ago and I haven’t touched it ever since. Packaging for … Continue reading

Posted in tools | Tagged , , , | 1 Comment

Quick Java Project Setup Using Maven

Java projects, especially when it comes to web or EJB applications, tend to get pretty complex. Setting up such a project is a non-trivial task because of the many conventions you have to follow to make your application deployable. The … Continue reading

Posted in java | Tagged , , | Leave a comment

Testing C++ Applications using CppUnit

Unit testing is hip these days and every programming language has its own JUnit clone that mimics the original more or less closely. For C++, there’s the excellent CppUnit package that I’ve been using extensively lately. Unfortunately, C++ is less … Continue reading

Posted in c/c++ | Tagged , , , | 3 Comments