Initial copy
Move mavenLocal logic to a separate file that can be included via —init-scripts when needed.