Some fixes to POM business.

• Apply modifications to POMs `install`ed as well as the published ones.
• Don't export dependencies as they are not intended for consumers.