Tuesday, October 19, 2010

Encoding your passwords in Maven

If you dislike storing your passwords in clear just like me then Maven 2.1.x or 3.x can help you out.

At the Maven site the documentation is somwhat hidden, so I'll just describe the process in short and put up a link to the relevant documentation.


Thursday, October 14, 2010

Best practices for multi-module project organisation

When setting up a maven project consisting of multiple modules there are multiple ways to define the project dependencies.
  1. Use one top level directory containing only module subfolders. The parent/module-POM resides in it's own module subdirectory (e.g. project-parent)
  2. Use one top level directory containing module subfolders  and the parent/module-POM.
  3. Use one top level directory containing module subfolders and a POM file defining the modules of the project. The parent-POM resides in a submodule folder.
These are the three most common approaches to organize your project structure, each of which has it's own advantages and disadvantages.