dana-i2cat/opennaas — pull request #21 by gbehrmann (2012-02-09 00:01:52+00:00)
Title: build: Refactor Maven project files

The patch

- Moves all version numbers to distributionManagement and
pluginManangement sections. This means that a version
number of a plugin or dependency is stored in one place.
For external dependencies the version is moved to the
top level pom file.

- Moves the version number of internal dependencies to
distributionManagement sections. In contrast to the
external dependencies, these version numbers are stored
in the inner most pom that still covers all uses of
the dependency. Ie opennaas artifacts are in the top
level pom, manticore artifacts in the manticore pom,
and test artifcats in the test pom. This also nicely
ensures that we don't refer to, say, a test artifact
from outside the tests.

The internal dependencies are parameterized to use the
project version number.

- All projects are updated to inherit the version number
from the top level project.

- Use the project.version property rather than a
hardcoded value in paths.

- Removes redundant parts of the project files:

- sourceEncoding is defined once in the top level
pom and inherited

- Redudant or unused declarations are
removed (the defaults are usually fine - and Maven
is a about convention over configuration).

- Repeated repository references are removed.