Maybe to put this pom in resources or scala-object in different file and refer from both projects. Imho, this is more like a code-noise here. Makes harder to read the Code.