ISPN-4942 Make uber jars compatible with OSGi
ISPN-4942 Make uber jars compatible with OSGi

Work-around for http://jira.codehaus.org/browse/MNG-5539
Plugin execution order breaks when a plugin is present both in the module
and in an active profile (in this case running with -Pdistribution).
ISPN-5024 Fix build problem in IDEs
Test that replaying a prepare command doesn't acquire the lock twice